From: takuan Date: Fri, 6 Feb 2009 10:33:02 +0900 Subject: [ath9k-devel] How to get WPA working? In-Reply-To: <1233817890.7052.1.camel@jm-desktop> References: <73f5bba10902042117x8243925pf8bdbdada568248b@mail.gmail.com> <1233817890.7052.1.camel@jm-desktop> Message-ID: <73f5bba10902051733k4b0ca0afw668c87ea893afb98@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Jouni, Thanks for the reply, however I have tried ap_scan=1 and ap_scan=0 with no luck. When I set it to 1 it just goes in an infinite loop scanning for APs although the SSID of my AP is not being broadcast so it probably will not find it. Before I run the command I manually set the SSID with iwconfig ath8 essid "ssidname" ifconfig ath8 up wpa_supplicant -d -D wext -i ath8 -c /etc/wpa_supplicant/wpa_supplicant.conf Initializing interface 'ath8' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' eapol_version=1 ap_scan=1 fast_reauth=1 Priority group 0 id=0 ssid='ssidname' Initializing interface (2) 'ath8' SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf capabilities: key_mgmt 0xf enc 0xf flags 0x0 WEXT: Operstate: linkmode=1, operstate=5 Own MAC address: 00:xx:63:xx:37:cc wpa_driver_wext_set_wpa wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_countermeasures wpa_driver_wext_set_drop_unencrypted RSN: flushing PMKID list in the driver Setting scan request: 0 sec 100000 usec EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED Added interface ath8 State: DISCONNECTED -> SCANNING Starting AP scan (broadcast SSID) Trying to get current scan results first without requesting a new scan to speed up initial association Received 0 bytes of scan results (0 BSSes) CTRL-EVENT-SCAN-RESULTS Selecting BSS from priority group 0 Try to find WPA-enabled AP Try to find non-WPA AP No suitable AP found. Setting scan request: 0 sec 0 usec RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'ath8' added Wireless event: cmd=0x8b06 len=8 Starting AP scan (broadcast SSID) Scan requested (ret=0) - scan timeout 5 seconds EAPOL: disable timer tick RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'ath8' added Wireless event: cmd=0x8b19 len=8 Received 4005 bytes of scan results (12 BSSes) CTRL-EVENT-SCAN-RESULTS Selecting BSS from priority group 0 Try to find WPA-enabled AP 0: 00:0d:0b:88:5e:52 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 1: 00:0d:0b:88:5c:4e ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 2: 00:0d:0b:88:5e:ec ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 3: 00:0d:0b:70:12:f3 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 4: 00:0d:0b:88:5c:51 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 5: 00:0d:0b:92:e1:a6 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 6: 00:0d:0b:88:76:d1 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 7: 00:0d:0b:92:e1:90 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 8: 00:19:56:3b:47:d0 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - no WPA/RSN IE 9: 00:0d:02:33:xx:xx ssid='WARPSTAR' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - no WPA/RSN IE 10: 00:90:4b:xx:xx:73 ssid='Motorola' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - no WPA/RSN IE 11: 00:07:40:f2:27:4b ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - no WPA/RSN IE Try to find non-WPA AP 0: 00:0d:0b:88:5e:52 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 1: 00:0d:0b:88:5c:4e ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 2: 00:0d:0b:88:5e:ec ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 3: 00:0d:0b:70:12:f3 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 4: 00:0d:0b:88:5c:51 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 5: 00:0d:0b:92:e1:a6 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 6: 00:0d:0b:88:76:d1 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 7: 00:0d:0b:92:e1:90 ssid='' wpa_ie_len=22 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 8: 00:19:56:3b:47:d0 ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 9: 00:0d:02:33:xx:xx ssid='WARPSTAR-F' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 10: 00:90:4b:85:5c:73 ssid='Motorola' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - SSID mismatch 11: 00:07:40:f2:27:4b ssid='' wpa_ie_len=0 rsn_ie_len=0 caps=0x11 skip - SSID mismatch No suitable AP found. Setting scan request: 5 sec 0 usec I had this script working fine with the madwifi-ng drivers using the exact same commands except for using the madwifi driver with wpa_supplicant in replace of wext with ath9k. (Although, the my connection would always crash after 10 or so minutes of use with WPA+madwifi which is one of the reasons I want to switch to ath9k if it is stable.) So I am not sure why it won't connect. Any other things I could try? On Thu, Feb 5, 2009 at 4:11 PM, Jouni Malinen wrote: > On Wed, 2009-02-04 at 21:17 -0800, takuan wrote: > > Sorry for the simple question but I have looked all over and could not > > find much information about how to get WPA working with ath9k. > > > wpa_supplicant.conf: > > ap_scan=2 > > Change that to ap_scan=1 > > - Jouni > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090206/9ca734c8/attachment.htm