Ndiswrapper And Wpa In Suse 9.1
Arne Biastoch
abiastoch
Fri Oct 8 01:41:18 PDT 2004
Hi,
in SuSE Linux 9.1 Pro I got my Centrino Broadcom Crad running with
ndiswrapper (0.10). Authentification works fine with WEP, now I would
like to use WPA.
Following the den instructions found in the ndiswrapper wiki I have
installed wpa_suppicant (0.25). This seems to start correctly and also
seems to communicate with the router. Authentification does not seem to
be the problem. BUT: WPA and network configuration cannot cooperate.
Only in one out of 10 cases an IP can be gained from the DHCP server
(see below). But even then the route is incorrect, there is no
connection possible. In most cases the computer does not get any IP from
the DHCP-server.
- Does anyone know how ifcfg-wlan0 and WPA-configuration have to look
like, so that WPA is recognized by the network configuration for
authentification?
- What is the correct order (and how? ifup, dhcpcd?) do wlan0 and
wpa_supplicant have to be started?
- And: Where would one integrate wpa_supplicant to automatically start
in SuSE?
Thanks for any suggestions,,
Arne
/etc/sysconfig/network/ifcfg-wlan0:
-----------------------------------
BOOTPROTO='dhcp'
DHCLIENT_PRIMARY_DEVICE='yes'
MTU=''
REMOTE_IPADDR=''
STARTMODE='onboot'
WIRELESS_AP=''
WIRELESS_BITRATE='auto'
WIRELESS_CHANNEL=''
WIRELESS_ESSID='xxxxxxxx' <--- Router ESSID
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_POWER='yes'
_nm_name='static-0'
WIRELESS_FREQUENCY=''
/etc/wpa_supplicant.conf:
------------------------
ctrl_interface=/var/run/wpa_supplicant # for wpa_cli support
network={
scan_ssid=0
ssid="xxxxxxxx" <--- Router ESSID
psk="xxxxxxxxxxxxxxxxxxx" <--- WPA Passphrase
key_mgmt=WPA-PSK (ASCII or HEX)
proto=WPA
}
Starting wpa:
---------------
# wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -d -w
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
id=0 ssid='xxxxxxxx'
Setting scan request: 0 sec 100000 usec
l2_packet_receive - recv: Network is down
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 316 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:04:0e:18:de:ff ssid='xxxxxxxx' wpa_ie_len=24 rsn_ie_len=0
selected
Trying to associate with 00:04:0e:18:de:ff (SSID='xxxxxxxx' freq=2437 MHz)
Cancelling scan request
WPA: using IEEE 802.11i/D3.0
WPA: Own 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
Setting authentication timeout: 5 sec 0 usec
Wireless event: cmd=0x8c02 len=159
Custom wireless event:
'ASSOCINFO(ReqIEs=000862696173746f6368010882848b962430486c32040c121860dd06004096010100dd050010180100dd1600
RespIEs=010882848b962430486c32040c121860)'
Association info event
req_ies - hexdump(len=44): 00 08 62 69 61 73 74 6f 63 68 01 08 82 84 8b
96 24 30 48 6c 32 04 0c 12 18 60 dd 06 00 40 96 01 01 00 dd 05 00 10 18
01 00 dd 16 00
Truncated IE in assoc_info - hexdump(len=3): dd 16 00
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:04:0e:18:de:ff
Association event - clear replay counter
Associated to a new BSS: BSSID=00:04:0e:18:de:ff
Setting authentication timeout: 10 sec 0 usec
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b1a len=20
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RX EAPOL from 00:04:0e:18:de:ff
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
EAPOL-Key type=254
WPA: RX message 1 of 4-Way Handshake from 00:04:0e:18:de:ff (ver=1)
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: Renewed SNonce - hexdump(len=32): 59 c3 f6 8b 45 fb ea c2 8c 5c 89
eb 1d 9a 37 54 30 3f 7c 67 a3 48 fb 7b bc 4e 05 8b 38 96 e6 56
WPA: PMK - hexdump(len=32): 57 8b 7a 6f 1d 15 86 51 62 53 c7 f8 3c 87 85
b8 d6 0c 0f 69 9d 14 56 65 87 37 ec bc 67 ce 55 c2
WPA: PTK - hexdump(len=64): b3 ad 01 f3 c5 39 1c c8 9b 23 19 86 a0 3e bb
a5 38 6c 0d d1 6e c5 3e f9 ba 21 ca 2d 8c 3e 57 e5 1d b1 d6 51 ba dd 98
f4 ad 6a b2 86 e2 f7 53 c9 37 21 41 c1 35 dc a8 af 24 8f 3a c5 d5 a8 c6 7c
WPA: EAPOL-Key MIC - hexdump(len=16): 33 7e 0f bd 9e d3 dc 14 0b 21 3b
7a fa b7 88 6f
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:04:0e:18:de:ff
IEEE 802.1X RX: version=1 type=3 length=119
EAPOL-Key type=254
WPA: RX message 3 of 4-Way Handshake from 00:04:0e:18:de:ff (ver=1)
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
RX EAPOL from 00:04:0e:18:de:ff
IEEE 802.1X RX: version=1 type=3 length=127
EAPOL-Key type=254
WPA: RX message 1 of Group Key Handshake from 00:04:0e:18:de:ff (ver=1)
WPA: Group Key - hexdump(len=32): 4b 61 08 06 19 b3 41 64 e2 28 9e 53 1a
c6 18 81 80 6b 85 d8 a2 c6 7c d7 51 94 19 58 80 9d 30 c0
WPA: Installing GTK to the driver (keyidx=1 tx=0).
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with 00:04:0e:18:de:ff
Cancelling authentication timeout
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b2a len=12
Wireless event: cmd=0x8b2a len=12
meanwhile:
-------------
agulhas:~ # ifup wlan0
wlan0
Starting DHCP Client Daemon on wlan0... . . . . . IP/Netmask:
192.168.178.21 / 255.255.255.0 ('agulhas')agulhas:~ #
agulhas:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 wlan0
where does the second entry come from???
agulhas:~ # ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4700 (4.5 Kb) TX bytes:4700 (4.5 Kb)
wlan0 Link encap:Ethernet HWaddr 00:90:4B:1A:DF:D5
inet addr:192.168.178.21 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::290:4bff:fe1a:dfd5/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6167 (6.0 Kb) TX bytes:164696 (160.8 Kb)
Interrupt:5 Memory:e0210000-e0211fff
--
Arne Biastoch
abiastoch at ifm-geomar.de
More information about the Hostap
mailing list