Connection Issues with MadWifi driver
--[UxBoD]--
uxbod
Sat Apr 29 10:17:17 PDT 2006
Hi,
i have compiled both the SVN/CVS WPA_Supplicant and MadWifi code successfully and the modules have loaded fine :-
ath_pci 84592 0
ath_rate_sample 12928 1 ath_pci
wlan 172720 7 wlan_scan_ap,wlan_tkip,wlan_scan_sta,wlan_wep,ath_pci,ath_rate_sample
ath_hal 214832 3 ath_pci,ath_rate_sample
ath_pci 84592 0
ath_rate_sample 12928 1 ath_pci
wlan 172720 7 wlan_scan_ap,wlan_tkip,wlan_scan_sta,wlan_wep,ath_pci,ath_rate_sample
ath_hal 214832 3 ath_pci,ath_rate_sample
ath_pci 84592 0
ath_rate_sample 12928 1 ath_pci
wlan 172720 7 wlan_scan_ap,wlan_tkip,wlan_scan_sta,wlan_wep,ath_pci,ath_rate_sample
ath_hal 214832 3 ath_pci,ath_rate_sample
and /var/log/messages reports all okay :-
Apr 29 13:41:36 cyborg ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Apr 29 13:41:36 cyborg wlan: 0.8.4.2 (svn 1531)
Apr 29 13:41:36 cyborg ath_rate_sample: 1.2 (svn 1531)
Apr 29 13:41:36 cyborg ath_pci: 0.9.4.5 (svn 1531)
Apr 29 13:41:36 cyborg ACPI: PCI Interrupt 0000:09:04.0[A] -> GSI 24 (level, low) -> IRQ 58
Apr 29 13:41:37 cyborg wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Apr 29 13:41:37 cyborg wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Apr 29 13:41:37 cyborg wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Apr 29 13:41:37 cyborg wifi0: H/W encryption support: WEP AES AES_CCM TKIP
Apr 29 13:41:37 cyborg wifi0: mac 7.9 phy 4.5 radio 5.6
Apr 29 13:41:37 cyborg wifi0: Use hw queue 1 for WME_AC_BE traffic
Apr 29 13:41:37 cyborg wifi0: Use hw queue 0 for WME_AC_BK traffic
Apr 29 13:41:37 cyborg wifi0: Use hw queue 2 for WME_AC_VI traffic
Apr 29 13:41:37 cyborg wifi0: Use hw queue 3 for WME_AC_VO traffic
Apr 29 13:41:37 cyborg wifi0: Use hw queue 8 for CAB traffic
Apr 29 13:41:37 cyborg wifi0: Use hw queue 9 for beacons
Apr 29 13:41:37 cyborg wifi0: Atheros 5212: mem=0xd0100000, irq=58
If I scan for my AP I can find it no problem at all :-
ath0 Scan completed :
Cell 01 - Address: 00:11:09:0D:7E:53
ESSID:"stanford"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=46/94 Signal level=-49 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 54 Mb/s; 9 Mb/s; 18 Mb/s
36 Mb/s; 48 Mb/s
Extra:bcn_int=100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
But when I try and connect using :-
wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -d
I get the following and it just fails :-
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
ap_scan=2
Priority group 0
id=0 ssid='stanford'
Initializing interface (2) 'ath0'
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:11:95:91:5b:12
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Trying to associate with SSID 'stanford'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 24 pairwise 24 key_mgmt 2
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_madwifi_associate
Setting authentication timeout: 60 sec 0 usec
Wireless event: cmd=0x8b1a len=25
Wireless event: cmd=0x8b19 len=16
Received 313 bytes of scan results (1 BSSes)
Scan results: 1
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface ath0
State: ASSOCIATING -> DISCONNECTED
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
WEXT: Operstate: linkmode=0, operstate=6
Cancelling scan request
Within my configuration file I have the following :-
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=2
network={
ssid="stanford"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=secret
}
Is there anything else I should be doing ? I have tried changing the ap_scan mode after destroying the interface first, but still no joy. Systems
specs as follows :-
Linux cyborg 2.6.17-rc2 #1 SMP Sat Apr 29 13:58:59 GMT 2006 x86_64 AMD Opteron(tm) Processor 250 GNU/Linux
09:04.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
Subsystem: D-Link System Inc D-Link AirPlus DWL-G520 Wireless PCI Adapter(rev.B)
Flags: bus master, medium devsel, latency 168, IRQ 50
Memory at d0100000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
I hope you are able to help, fed up of cable running across my room :D
Thanks,
More information about the Hostap
mailing list