The distro/version is CentOS 5.9. For wpa_supplicant I followed instructions from here:
masrust.web.id/2011/07/24/linux-connect-to-wi-fi-from-command-line/
and here is the output
# lspci | grep -i net
03:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11abgn ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate=300 Mb/s Tx-Power:24 dBm
Retry min limit:7 RTS thr
ff Fragment thr
ff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-256 dBm Noise level=-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sit0 no wireless extensions.
# ip link set eth1 up
# iwlist eth1 scanning
Cell 05 - Address: 20:AA:4BA:5D:AE
ESSID:"blade"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:5/5 Signal level:-47 dBm Noise level:-85 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 18960
Group Cipher : Proprietary
Pairwise Ciphers (6 : Encryption key
n
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
# iwconfig eth1 essid blade key s:************
Error for wireless request "Set Encode" (8B2A) :
SET failed on device eth1 ; Invalid argument.
# wpa_passphrase blade ************ > /etc/wpa_supplicant/wpa_supplicant.conf
# wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
(wext) Device eth1 kernel driver name: wl.
Device eth1 kernel driver name: wl.
# iwconfig eth1
eth1 IEEE 802.11abgn ESSID:""
Mode:Managed Frequency:5.6 GHz Access Point: Not-Associated
Bit Rate=300 Mb/s Tx-Power:24 dBm
Retry min limit:7 RTS thr
ff Fragment thr
ff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-256 dBm Noise level=-90 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# dhcpcd eth1
bash: dhcpcd: command not found
I checked /etc/wpa_supplicant/wpa_supplicant.conf and it has the correct essid and key. What is going wrong?