OpenWrt Forum Archive

Topic: Configuring WPA on WRT54GL

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everybody,

After roaming on the wiki and the forum the whole day, I'm trying to change my WEP acces-point to WPA.

I used this howto to be sure that my fields are ok : http://forum.openwrt.org/viewtopic.php?id=12216

In psk2 mode : the clients got an error and cannot determine the network
In psk1 : you can enter the password but the acces point dont answer

I have added :
ipkg install nas
ipkg install hostpad

If i check with ps -aux, nas is running but nothing about hostapd

Should i configure something for hostapd ?

Here my config files :

/etc/config/network

#### VLAN configuration
config switch eth0
        option vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
        option network  lan

#### WAN configuration
config interface        wan
        option ifname  "eth0.1"
        option proto    dhcp

/etc/config/wireless

config wifi-device  wl0
        option type     broadcom
        option channel  6

        # REMOVE THIS LINE TO ENABLE WIFI:
        #option disabled 1

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     'collocs-test'
        option hidden   0
        option encryption psk2       #or psk
        option key      '12345678'

thank you for your help in advance wink

(Last edited by linky on 21 Sep 2007, 21:37)

linky wrote:

In psk2 mode : the clients got an error and cannot determine the network

Your client probably does not support WPA2-CCMP, make sure your wireless card supports WPA2. If you are running Windows XP, it requires a hotfix (from Microsoft) to support WPA2, might want to make sure that is installed.  Other operating systems require some form of WPA supplicant. *nix has wpa_supplicant, OS X has it's own supplicant. 

linky wrote:

In psk1 : you can enter the password but the acces point dont answer

"the access point dont answer" is a very vague description, there is no way to help unless you can provide more information.

linky wrote:

I have added :
ipkg install nas
ipkg install hostpad

If i check with ps -aux, nas is running but nothing about hostapd

Should i configure something for hostapd ?

hostapd does not work when using Broadcom wireless.  Only the wl driver and the nas authenticator are needed, (both should be installed by default on Kamikaze.)  Your config look correct also; the key '12345678' should work, but I assume that is not your real key.  Verify that your proper key is 8 to 63 printable ASCII characters.
Note: The key "has to be a single string and is formatted exactly like a parameter for a shell function. The same rules for Quoting and special characters also apply, as it is parsed by the shell. " (from the Kamikaze docs)

Thank you Bartman007 for your fast answer wink

The psk2 mode doesn't work because of windows, you are right. Automatic update is on but it seems that you need to go on windows update to have it...

The psk1 mode is working ! It was because of the wireless card. i changed it and everything is fine. That's why i got the 'Waiting network ...' message.

Thx again for everyrthing !

The discussion might have continued from here.