[Ndiswrapper-general] cannot work with ndiswrapper and wpa_supplicant
Status: Beta
Brought to you by:
pgiri
From: Martin K. <mar...@gm...> - 2006-05-03 17:19:11
|
Hi there! Please Cc me, I'm not on your list. Sorry for this reall long post, this comes because I really have investigated many time for finding a solution to my problem: I have read many and I used google a lot, but I cannot figure out whats happening here. The configuration is public, see website http://www.uni-salzburg.at/portal/page?_pageid=565,255839&_dad=portal&_schema=PORTAL. (Essid: Plus, psk: ITServices06), the essid is not broadcasted. My Card is a DWL-G650+ (D-Link AirPlus G+). But I cannot connect. My wpa_supplicant.conf: ----------- ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=1 network={ ssid="Plus" # psk="ITServices06" psk=c62903a45816de75871eb5a674f6ac3d0d0fb8e0e1ee4efb99e8ecf5d904ce4b proto=WPA key_mgmt=WPA-PSK priority=5 } ----------- # iwconfig wlan0 wlan0 IEEE 802.11g ESSID:"Plus" Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated Bit Rate:54 Mb/s Tx-Power:10 dBm Sensitivity=0/3 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 # iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 00:15:62:27:80:70 ESSID:"" Protocol:IEEE 802.11b Mode:Managed Frequency:2.412 GHz (Channel 1) Quality:0/100 Signal level:-67 dBm Noise level:-256 dBm Encryption key:on Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100 Extra:atim=0 Extra:wpa_ie=dd180050f20101000050f20501000050f20201000050f2022800 The essid on the AP will be visibile, when I do "iwconfig mode auto essid Plus". I have to do this because otherwise wpa_supplicant cannot find the AP. # ifconfig wlan0 up # wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' 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=1 Line: 13 - start of a new network block ssid - hexdump_ascii(len=4): 50 6c 75 73 Plus PSK - hexdump(len=32): [REMOVED] proto: 0x1 key_mgmt: 0x2 priority=5 (0x5) Priority group 5 id=0 ssid='Plus' Initializing interface (2) 'wlan0' 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 EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0x5 capabilities: key_mgmt 0x5 enc 0x7 Own MAC address: 00:11:95:6e:06:83 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 Setting scan request: 0 sec 100000 usec Added interface wlan0 Wireless event: cmd=0x8b06 len=8 RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added 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 576 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 5 0: 00:15:62:52:84:70 ssid='Plus' wpa_ie_len=26 rsn_ie_len=0 caps=0x11 selected based on WPA IE Trying to associate with 00:15:62:52:84:70 (SSID='Plus' freq=2412 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 4 pairwise 8 key_mgmt 2 WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 05 01 00 00 50 f2 02 01 00 00 50 f2 02 28 00 WPA: clearing AP RSN IE WPA: using GTK WEP104 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 05 01 00 00 50 f2 02 01 00 00 50 f2 02 No keys have been configured - skip key clearing wpa_driver_wext_set_drop_unencrypted State: SCANNING -> ASSOCIATING wpa_driver_wext_associate Setting authentication timeout: 10 sec 0 usec EAPOL: External notification - EAP success=0 EAPOL: External notification - EAP fail=0 EAPOL: External notification - portControl=Auto Wireless event: cmd=0x8b06 len=8 Wireless event: cmd=0x8b04 len=12 Wireless event: cmd=0x8b1a len=12 Authentication with 00:00:00:00:00:00 timed out. Added BSSID 00:00:00:00:00:00 into blacklist State: ASSOCIATING -> DISCONNECTED No keys have been configured - skip key clearing EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 Setting scan request: 0 sec 0 usec State: DISCONNECTED -> SCANNING Starting AP scan (broadcast SSID) Scan timeout - try to get results Received 576 bytes of scan results (2 BSSes) Scan results: 2 Selecting BSS from priority group 5 0: 00:15:62:52:84:70 ssid='Plus' wpa_ie_len=26 rsn_ie_len=0 caps=0x11 selected based on WPA IE Trying to associate with 00:15:62:52:84:70 (SSID='Plus' freq=2412 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 WPA: using IEEE 802.11i/D3.0 WPA: Selected cipher suites: group 4 pairwise 8 key_mgmt 2 WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 05 01 00 00 50 f2 02 01 00 00 50 f2 02 28 00 WPA: clearing AP RSN IE WPA: using GTK WEP104 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 05 01 00 00 50 f2 02 01 00 00 50 f2 02 No keys have been configured - skip key clearing wpa_driver_wext_set_drop_unencrypted State: SCANNING -> ASSOCIATING wpa_driver_wext_associate Setting authentication timeout: 10 sec 0 usec EAPOL: External notification - EAP success=0 EAPOL: External notification - EAP fail=0 EAPOL: External notification - portControl=Auto Wireless event: cmd=0x8b06 len=8 Wireless event: cmd=0x8b04 len=12 Wireless event: cmd=0x8b1a len=12 CTRL-EVENT-TERMINATING - signal 2 received Removing interface wlan0 State: ASSOCIATING -> DISCONNECTED No keys have been configured - skip key clearing EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 wpa_driver_wext_set_wpa wpa_driver_wext_set_drop_unencrypted wpa_driver_wext_set_countermeasures No keys have been configured - skip key clearing Removed BSSID 00:00:00:00:00:00 from blacklist (clear) Cancelling scan request ( I pressed Ctrl-C ) This is reported but the solutions which work there do not work here. I use ndiswrapper, and I have the same with wpa_supplicants -Dwext or -Dndiswrapper, the website told me to use -Dwext: notebook ~ # ndiswrapper -v utils version: 1.8 driver version: 1.14 vermagic: 2.6.16-gentoo-r3 SMP preempt K7 gcc-3.4 notebook ~ # ndiswrapper -l Installed drivers: gplus driver installed, hardware present On pluggin in the card i get trough dmesg: pccard: CardBus card inserted into slot 0 ndiswrapper: driver gplus (D-Link,04/09/2004,6.0.0.18) loaded PCI: Enabling device 0000:02:00.0 (0000 -> 0002) ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 19 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:02:00.0 to 64 ndiswrapper: using irq 16 APIC error on CPU0: 40(40) wlan0: vendor: 'TNET1130' wlan0: ndiswrapper ethernet device 00:11:95:6e:06:83 using driver gplus, 104C:9066:1186:3B05.5.conf wlan0: encryption modes supported: WEP; TKIP with WPA APIC error on CPU0: 40(40) APIC error on CPU0: 40(40) It seems that the APIC error is only there when the card is plugged in. This error repeats and repeats all the time, I could have pasted this pagewise. I can only stop this message by removing the card from the pcmcia slot. When I plug it in, the message goes on. I figured out to do a noapic flag to the kernel, but if I do so, the card cannot be found anymore, the same is for acpi=noirq (demsg): cs: pcmcia_socket0: cardbus cards are not supported. So now this seems to be an interupt issue? notebook ~ # cat /proc/interrupts CPU0 0: 224796 IO-APIC-edge timer 1: 3971 IO-APIC-edge i8042 11: 4695 IO-APIC-level acpi 12: 44938 IO-APIC-edge i8042 14: 18476 IO-APIC-edge ide0 15: 2639 IO-APIC-edge ide1 16: 2099 IO-APIC-level yenta, ndiswrapper 17: 0 IO-APIC-level SiS SI7012 19: 0 IO-APIC-level ehci_hcd:usb1 20: 0 IO-APIC-level ohci_hcd:usb2 21: 0 IO-APIC-level ohci_hcd:usb3 NMI: 0 LOC: 224734 ERR: 151 MIS: 0 The yenta seems to be my pcmcia driver, lshw tells me: *-pcmcia description: CardBus bridge product: PCI1410 PC card Cardbus Controller vendor: Texas Instruments physical id: 6 bus info: pci@00:06.0 version: 02 width: 32 bits clock: 33MHz capabilities: pcmcia bus_master cap_list configuration: driver=yenta_cardbus resources: iomemory:34020000-34020fff irq:16 and *-network description: Wireless interface product: ACX 111 54Mbps Wireless Interface vendor: Texas Instruments physical id: 6 bus info: pci@02:00.0 logical name: wlan0 version: 00 serial: 00:11:95:6e:06:83 width: 32 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=ndiswrapper link=no multicast=yes wireless=IEEE 802.11g resources: iomemory:32020000-32021fff iomemory:32000000-3201ffff irq:16 lines 329-365/365 (END) Ok, both have the same irq: 16. But is this wrong? I have only one pcmcia place for one card. Can the bus have the same irq or not? What else can I try? Thanks for your help. Martin PS. I also posted this to wpa_supplicant, because I'm not sure where it belongs too. |