rtl8187 cant connect using WPA2-PSK, AES encryption

Post Reply
Message
Author
mamas6667
Posts: 5
Joined: Mon 05 Nov 2007, 18:00

rtl8187 cant connect using WPA2-PSK, AES encryption

#1 Post by mamas6667 »

Computer: Easynote XS
Puppy version: puppy-4.1beta-408-k2.6.25.16-seamonkey
Install type: Frugal

Code: Select all

# puppy-4.1beta-408-k2.6.25.16-seamonkey
title Puppy Linux 408
rootnoverify (hd0,0)
kernel /puppy408/vmlinuz root=/dev/ram0 PMEDIA=idehd psubdir=puppy408 apm=off acpi=force
initrd /puppy408/initrd.gz
------------------------------------------------------------------------------------
This computer has a integrated usb wifi(rtl8187) and it works with windows XP.(the rtl8187 only gets recognised in this beta version of puppy, none earlier)
The router is using WPA2-PSK, with AES encryption, unhiddenSSID
Tried connecting using the network wizard, and failed.
noticed this error in /var/log7messages

Sep 14 02:03:26 (none) local0.err dhcpcd[22574]: wlan0: dhcpcd not running

I tried using a fixed IP and same results.

So i went the commandline manual way
------------------------------------------------------------------------------------
# checked necessary modules for WPA2/AES, one by one
arc4
ecb
crypto_blkcipher
aes_generic (aes in older Puppies)
crc32c

Code: Select all

lsmod | grep aes_generic
load the 2 missing modules
aes_generic
crc32c

Using "Menu"- ’"Setup"- "Wizard Wizard"- ’"Configure startup of Puppy"
- ’"Click here to add a new module"

As they dont get autoloaded, you must edit /etc/rc.d/rc.local
add these lines:

Code: Select all

# autoload missing modules for WPA2/AES
modprobe aes_generic
modprobe crc32c
-----------------------------------------------------------------------------
# First load your driver if Puppy has not automatically done so already

Code: Select all

modprobe rtl8187
# It's often necessary to "bring up" the interface unconfigured

Code: Select all

ifconfig wlan0 up
# Now here are the critical WPA configuation commands:

Code: Select all

iwconfig wlan0 mode managed

Code: Select all

iwpriv wlan0 set AuthMode=WPAPSK
wlan0  no private ioctls
# test iwpriv

Code: Select all

iwpriv
eth0      no private ioctls.

wmaster0  no private ioctls.

wlan0     no private ioctls.
# All code bleow this line i did not try as the above failed
iwpriv wlan0 set EncrypType=AES
iwconfig wlan0 essid "MySSID"
iwpriv wlan0 set WPAPSK="FAKEaSSID475874afb63f8a10abb8dd3b49036569af592ae32010ef034685932"
iwconfig wlan0 essid "MySSID"
-------------------------------------------------------------------------------------
THKS 4 ur time. :-)
PLS help me connect this subnotebook, so I can make Puppylinux the default OS, and I dont have to reinstall Windows XP everytime people get infected with virus, while checking their email.

Post Reply