[root@marktop mark]# iwconfig wlan0 essid hrfamnet-101 [root@marktop mark]# iwconfig wlan0 enc XXXXXXXXXX [not really...] [root@marktop mark]# iwconfig wlan0 wlan0 IEEE 802.11bg ESSID:"hrfamnet-101" Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm RTS thr:off Fragment thr:off Encryption key:XXXXXXXXXX Power Management:off
[root@marktop mark]# ifup wlan0
Determining IP information for wlan0... failed. [root@marktop mark]# iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 00:1C:F0:58:9A:31 Channel:6 Frequency:2.437 GHz (Channel 6) Quality=47/70 Signal level=-63 dBm Encryption key:on ESSID:"hrfamnet-101" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 12 Mb/s; 24 Mb/s; 36 Mb/s Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=00000073d81085b2 Extra: Last beacon: 468ms ago IE: Unknown: 000C687266616D6E65742D313031 IE: Unknown: 010882848B960C183048 IE: Unknown: 030106 IE: Unknown: 2A0102 IE: Unknown: 32041224606C IE: WPA Version 1
I believe you need to use wpa_supplicant to connect to a wpa protected network .. using ifconfig with enc as you have I believe only works for WEP, but I could be wrong.
Barry