From: Curtis Larsen Date: Tue, 23 Mar 2010 23:54:26 -0600 Subject: [ath9k-devel] AR9280 Force 5ghz or disable 2.4ghz? In-Reply-To: <54422b041003221619s5e7e921cm61340a8794bc1d83@mail.gmail.com> References: <54422b041003201419w47cf9f8fkf3c29a1eea2e2885@mail.gmail.com> <1269186067.32598.6.camel@jm-laptop> <54422b041003210922y1e199d27q39bf1c938658b38@mail.gmail.com> <1269192508.1261.26.camel@jm-laptop> <54422b041003221619s5e7e921cm61340a8794bc1d83@mail.gmail.com> Message-ID: <54422b041003232254g7f945052o168309cdbeea77ac@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 On Mon, Mar 22, 2010 at 5:19 PM, Curtis Larsen wrote: > > >> >> All you need to do is to add scan_freq into the network configuration >> block in wpa_supplicant.conf (and not have any other network >> configuration blocks enabled that would trigger scan for every channel). >> You will need to manually figure out which channels the APs you are >> interested in are using and then add them to the list (e.g., >> scan_freq=5180 5200 5220 5240). Please note that this requires >> wpa_supplicant 0.7.x and use of nl80211 (-Dnl80211) to work. > > wpa_supplicant that comes with ubuntu 9.04 is 0.6.6-2.? How do I upgrade to > 0.7.x?? Also, does the nl80211 driver work only with Atheros chips?? I have > an Intel 5100 with the same problem.? Let me know. > I now have the new wpa_supplicant-0.7.1 working with the nl80211 driver, but still cannot force 5ghz. Here is my wpa_supplicant.conf file: network={ ssid="WIFI" proto=WPA key_mgmt=WPA-PSK psk="mysecretpass" scan_freq=5825 } I have setup the same SSID named "WIFI" at home on both 5ghz and 2.4ghz bands of a dual radio AP. My laptop will still only connect to 2.4ghz. It appears to me that the scan_freq=5825 parameter has no effect. Here are results from iwlist scanning: Cell 05 - Address: 00:20:A6:49:A5:CB Channel:11 Frequency:2.462 GHz (Channel 11) Quality=64/70 Signal level=-46 dBm Encryption key:on ESSID:"WIFI" 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=0000000083144037 Extra: Last beacon: 6650ms ago IE: Unknown: 000457494649 IE: Unknown: 010882848B960C183048 IE: Unknown: 03010B IE: Unknown: 2A0100 IE: Unknown: 32041224606C IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK Cell 11 - Address: 00:20:A6:49:A5:CA Channel:165 Frequency:5.825 GHz Quality=48/70 Signal level=-62 dBm Encryption key:on ESSID:"WIFI" Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s 36 Mb/s; 48 Mb/s; 54 Mb/s Mode:Master Extra:tsf=000000008aaf2e43 Extra: Last beacon: 80ms ago IE: Unknown: 000457494649 IE: Unknown: 01088C129824B048606C IE: Unknown: 0301A5 IE: WPA Version 1 Group Cipher : TKIP Pairwise Ciphers (1) : TKIP Authentication Suites (1) : PSK Here is the command I used and the output that I get: clarsen at system76-pc:~/Desktop/wpa_sup/wpa_supplicant-0.7.1/wpa_supplicant$ sudo ./wpa_supplicant -c /etc/wpa_supplicant/WIFI.conf -i wlan0 -D nl80211 -d Initializing interface 'wlan0' conf '/etc/wpa_supplicant/WIFI.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant/WIFI.conf' -> '/etc/wpa_supplicant/WIFI.conf' Reading configuration file '/etc/wpa_supplicant/WIFI.conf' Priority group 0 id=0 ssid='WIFI' netlink: Operstate: linkmode=1, operstate=5 Own MAC address: 00:22:fa:58:49:f2 wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x448ff8 key_idx=0 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x448ff8 key_idx=1 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x448ff8 key_idx=2 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x448ff8 key_idx=3 set_tx=0 seq_len=0 key_len=0 RSN: flushing PMKID list in the driver Setting scan request: 0 sec 100000 usec EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED EAPOL: Supplicant port status: Unauthorized EAPOL: Supplicant port status: Unauthorized Added interface wlan0 RTM_NEWLINK: operstate=0 ifi_flags=0x1002 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Ignore event for foreign ifindex 3 Ignore event for foreign ifindex 3 RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Trying to get current scan results first without requesting a new scan to speed up initial association Received scan results (0 BSSes) BSS: Start scan result update 1 Cached scan results are empty - not posting Selecting BSS from priority group 0 Try to find WPA-enabled AP Try to find non-WPA AP No suitable network found Setting scan request: 0 sec 0 usec State: DISCONNECTED -> SCANNING Starting AP scan for wildcard SSID Scan requested (ret=0) - scan timeout 10 seconds EAPOL: disable timer tick EAPOL: Supplicant port status: Unauthorized nl80211: Event message available nl80211: New scan results available Received scan results (10 BSSes) BSS: Start scan result update 2 BSS: Add new id 0 BSSID 00:20:a6:49:a5:cb SSID 'WIFI' BSS: Add new id 1 BSSID 00:25:9c:19:95:99 SSID 'metanoeo-ing-dragon' BSS: Add new id 2 BSSID 00:24:7b:f3:1d:ac SSID 'chesterdog' BSS: Add new id 3 BSSID 00:20:a6:49:a5:ca SSID 'WIFI' BSS: Add new id 4 BSSID 62:24:7b:f4:0a:dd SSID 'croucher' BSS: Add new id 5 BSSID 00:24:7b:f4:6e:94 SSID 'myqwest2310' BSS: Add new id 6 BSSID 00:22:b0:b2:d4:ec SSID 'Stewlander' BSS: Add new id 7 BSSID 00:15:05:0c:2e:d1 SSID 'ACTIONTEC' BSS: Add new id 8 BSSID 00:24:7b:f7:48:f0 SSID 'Mosleys10' BSS: Add new id 9 BSSID 00:24:7b:f4:0a:dc SSID 'myqwest1554' New scan results available Selecting BSS from priority group 0 Try to find WPA-enabled AP 0: 00:20:a6:49:a5:cb ssid='WIFI' wpa_ie_len=22 rsn_ie_len=0 caps=0x431 selected based on WPA IE selected WPA AP 00:20:a6:49:a5:cb ssid='WIFI' Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1 WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: clearing AP RSN IE WPA: using GTK TKIP WPA: using PTK TKIP WPA: using KEY_MGMT WPA-PSK WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 Cancelling scan request Trying to authenticate with 00:20:a6:49:a5:cb (SSID='WIFI' freq=2462 MHz) No keys have been configured - skip key clearing State: SCANNING -> AUTHENTICATING EAPOL: External notification - EAP success=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP fail=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portControl=Auto EAPOL: Supplicant port status: Unauthorized nl80211: Authenticate (ifindex=4) * bssid=00:20:a6:49:a5:cb * freq=2462 * SSID - hexdump_ascii(len=4): 57 49 46 49 WIFI * IEs - hexdump(len=0): [NULL] * Auth Type 0 nl80211: Authentication request send successfully RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added nl80211: Event message available nl80211: MLME event 37 SME: Authentication response: peer=00:20:a6:49:a5:cb auth_type=0 status_code=0 Trying to associate with 00:20:a6:49:a5:cb (SSID='WIFI' freq=2462 MHz) State: AUTHENTICATING -> ASSOCIATING wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT) netlink: Operstate: linkmode=-1, operstate=5 nl80211: Associate (ifindex=4) * bssid=00:20:a6:49:a5:cb * freq=2462 * SSID - hexdump_ascii(len=4): 57 49 46 49 WIFI * IEs - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 nl80211: Association request send successfully RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added nl80211: Event message available nl80211: MLME event 38 Association info event resp_ies - hexdump(len=16): 01 08 82 84 8b 96 0c 18 30 48 32 04 12 24 60 6c freq=2462 MHz State: ASSOCIATING -> ASSOCIATED wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT) netlink: Operstate: linkmode=-1, operstate=5 Associated to a new BSS: BSSID=00:20:a6:49:a5:cb No keys have been configured - skip key clearing Associated with 00:20:a6:49:a5:cb WPA: Association event - clear replay counter WPA: Clear old PTK EAPOL: External notification - portEnabled=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portValid=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP success=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portEnabled=1 EAPOL: SUPP_PAE entering state CONNECTING EAPOL: enable timer tick EAPOL: SUPP_BE entering state IDLE Setting authentication timeout: 10 sec 0 usec Cancelling scan request RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added RX EAPOL from 00:20:a6:49:a5:cb Setting authentication timeout: 10 sec 0 usec IEEE 802.1X RX: version=1 type=3 length=95 EAPOL-Key type=254 key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack) key_length=32 key_data_length=0 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02 key_nonce - hexdump(len=32): 6a 8f e7 1c f1 1a 59 f5 e9 37 41 dd df 5b 9f db 2d c3 5b 28 40 d8 ad 10 11 c5 e3 42 6f 6f ba 8c key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 State: ASSOCIATED -> 4WAY_HANDSHAKE WPA: RX message 1 of 4-Way Handshake from 00:20:a6:49:a5:cb (ver=1) WPA: Renewed SNonce - hexdump(len=32): 6f 2f 1c 02 a1 97 e5 6f 70 56 6f ec 80 50 f9 41 09 c4 93 22 0a 69 77 15 4f 31 f8 12 0a ae 03 9f WPA: PTK derivation - A1=00:22:fa:58:49:f2 A2=00:20:a6:49:a5:cb WPA: PMK - hexdump(len=32): [REMOVED] WPA: PTK - hexdump(len=64): [REMOVED] WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: Sending EAPOL-Key 2/4 RX EAPOL from 00:20:a6:49:a5:cb IEEE 802.1X RX: version=1 type=3 length=119 EAPOL-Key type=254 key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC) key_length=32 key_data_length=24 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03 key_nonce - hexdump(len=32): 6a 8f e7 1c f1 1a 59 f5 e9 37 41 dd df 5b 9f db 2d c3 5b 28 40 d8 ad 10 11 c5 e3 42 6f 6f ba 8c key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): 5c 7b d7 8b 98 84 13 78 93 9e 55 4d b0 14 88 f2 State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE WPA: RX message 3 of 4-Way Handshake from 00:20:a6:49:a5:cb (ver=1) WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 WPA: Sending EAPOL-Key 4/4 WPA: Installing PTK to the driver. WPA: RSC - hexdump(len=6): 00 00 00 00 00 00 wpa_driver_nl80211_set_key: ifindex=4 alg=2 addr=0xe737f0 key_idx=0 set_tx=1 seq_len=6 key_len=32 addr=00:20:a6:49:a5:cb State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE RX EAPOL from 00:20:a6:49:a5:cb IEEE 802.1X RX: version=1 type=3 length=127 EAPOL-Key type=254 key_info 0x3a1 (ver=1 keyidx=2 rsvd=0 Group Ack MIC Secure) key_length=32 key_data_length=32 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 04 key_nonce - hexdump(len=32): 6a 8f e7 1c f1 1a 59 f5 e9 37 41 dd df 5b 9f db 2d c3 5b 28 40 d8 ad 10 11 c5 e3 42 6f 6f ba 8b key_iv - hexdump(len=16): 6a 8f e7 1c f1 1a 59 f5 e9 37 41 dd df 5b 9f db key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): fb 98 b0 9a e1 bc 17 1f 02 c3 5b ba e6 67 db 41 WPA: RX message 1 of Group Key Handshake from 00:20:a6:49:a5:cb (ver=1) State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE WPA: Group Key - hexdump(len=32): [REMOVED] WPA: Installing GTK to the driver (keyidx=2 tx=0 len=32). WPA: RSC - hexdump(len=6): 00 00 00 00 00 00 wpa_driver_nl80211_set_key: ifindex=4 alg=2 addr=0x448ff8 key_idx=2 set_tx=0 seq_len=6 key_len=32 WPA: Sending EAPOL-Key 2/2 WPA: Key negotiation completed with 00:20:a6:49:a5:cb [PTK=TKIP GTK=TKIP] Cancelling authentication timeout State: GROUP_HANDSHAKE -> COMPLETED CTRL-EVENT-CONNECTED - Connection to 00:20:a6:49:a5:cb completed (auth) [id=0 id_str=] wpa_driver_nl80211_set_operstate: operstate 0->1 (UP) netlink: Operstate: linkmode=-1, operstate=6 EAPOL: External notification - portValid=1 EAPOL: External notification - EAP success=1 EAPOL: SUPP_PAE entering state AUTHENTICATING EAPOL: SUPP_BE entering state SUCCESS EAP: EAP entering state DISABLED EAPOL: SUPP_PAE entering state AUTHENTICATED EAPOL: Supplicant port status: Authorized EAPOL: SUPP_BE entering state IDLE EAPOL authentication completed successfully RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added EAPOL: startWhen --> 0 EAPOL: disable timer tick What do I have to do to make it so that my client will only connect to "WIFI" on the 5.825Ghz radio? Thanks, Curtis