No wifi0 after bootup

Andreas Nolda andreas.nolda
Fri Mar 10 00:58:23 PST 2006


Hi everybody,

I have the following issue. After bootup I have a wlan0 interface, 
but no wifi0 interface; pinging the AP does not work. Reloading the 
hostap modules manually, however, fixes the problem: I get both 
interfaces and can ping the AP.

I am running Kubuntu Breezy on a Thinkpad T23 with an IBM High Rate 
Wireless LAN mini-PCI card. My /etc/network/interfaces file contains:

auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

mapping hotplug
	script grep
	map wlan0

iface eth0 inet static
address 141.20.148.224
netmask 255.255.254.0

iface wlan0 inet static
address 192.168.0.2
netmask 255.255.255.0
wireless-mode managed
wireless-essid XXXXXXXX
wireless-key restricted XXXXXXXXXXXXXXXXXXXXXXXXXX
gateway 192.168.0.1

orinoco_pci being blacklisted in /etc/hotplug/blacklist.d/local, the 
following hostap modules have been loaded after bootup:

hostap
hostap_pci
hostap_crypt_wep

The output of ifconfig lists a wlan0 interface, but no wifi0 
interface:

irda0     Link encap:IrLAP  HWaddr 00:00:00:00  
          UP RUNNING NOARP  MTU:2048  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:8 
          RX bytes:0 (0.0 b)  TX bytes:3988 (3.8 KiB)

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:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:868 (868.0 b)  TX bytes:868 (868.0 b)

wlan0     Link encap:UNSPEC  HWaddr 
00-20-E0-89-93-DE-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.0.2  Bcast:192.168.0.255  
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:24 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Memory:d8ac2000-d8ac3000 

And iwconfig outputs both a wlan0 and a wlan1 interface:

wlan0     IEEE 802.11b  ESSID:"XXXXXXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 
00:03:C9:8B:C3:B9   
          Bit Rate:2 Mb/s   Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security 
mode:restricted
          Power Management:off
          
wlan1     IEEE 802.11b  ESSID:"XXXXXXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 
00:03:C9:8B:C3:B9   
          Bit Rate:2 Mb/s   Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security 
mode:restricted
          Power Management:off
          Link Quality=46/70  Signal level=-49 dBm  Noise level=-96 
dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:61   Missed beacon:0

So pinging the AP does not work.

The relevant syslog part is:

Mar 10 08:56:43 localhost kernel: [4294704.105000] hostap_crypt: 
registered algorithm 'NULL'
Mar 10 08:56:43 localhost kernel: [4294704.132000] hostap_pci: 0.4.1 - 
2005-05-22 (Jouni Malinen <jkmaline at cc.hut.fi>)
Mar 10 08:56:43 localhost kernel: [4294704.139000] ACPI: PCI Interrupt 
0000:02:02.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
Mar 10 08:56:43 localhost kernel: [4294704.146000] hostap_pci: 
Registered netdevice wifi0
Mar 10 08:56:43 localhost kernel: [4294704.146000] wifi0: Original COR 
value: 0x21
Mar 10 08:56:43 localhost kernel: [4294704.345000] prism2_hw_init: 
initialized in 195 ms
Mar 10 08:56:43 localhost kernel: [4294704.346000] wifi0: NIC: 
id=0x8013 v1.0.0
Mar 10 08:56:43 localhost kernel: [4294704.346000] wifi0: PRI: id=0x15 
v1.1.1
Mar 10 08:56:43 localhost kernel: [4294704.346000] wifi0: STA: id=0x1f 
v1.7.4
Mar 10 08:56:43 localhost kernel: [4294704.350000] wifi0: Intersil 
Prism2.5 PCI: mem=0xec000000, irq=11
Mar 10 08:56:43 localhost kernel: [4294704.356000] wifi0: registered 
netdevice wlan0
[...]
Mar 10 08:56:43 localhost kernel: [4294706.690000] irda_init()
Mar 10 08:56:43 localhost kernel: [4294706.690000] NET: Registered 
protocol family 23
Mar 10 08:56:43 localhost kernel: [4294707.546000] ip_tables: (C) 
2000-2002 Netfilter core team
Mar 10 08:56:43 localhost kernel: [4294707.587000] ip_conntrack 
version 2.1 (3067 buckets, 24536 max) - 248 bytes per conntrack
Mar 10 08:56:43 localhost kernel: [4294709.278000] prism2: wlan0: 
operating mode changed 3 -> 2
Mar 10 08:56:43 localhost kernel: [4294709.309000] hostap_crypt: 
registered algorithm 'WEP'
Mar 10 08:56:43 localhost kernel: [4294709.782000] wlan0: LinkStatus=1 
(Connected)
Mar 10 08:56:43 localhost kernel: [4294709.782000] wlan0: LinkStatus: 
BSSID=00:03:c9:8b:c3:b9
Mar 10 08:56:43 localhost kernel: [4294710.582000] pnp: Device 00:0b 
disabled.
Mar 10 08:56:43 localhost kernel: [4294710.583000] pnp: Device 00:0b 
activated.
[...]
Mar 10 08:56:58 localhost kernel: [4294729.749000] wlan0: invalid 
skb->cb magic (0x00000000, expected 0xf08a36a2)

After reloading the hostap modules, however, everything is fine. Now 
the output of ifconfig is:

irda0     Link encap:IrLAP  HWaddr 00:00:00:00  
          UP RUNNING NOARP  MTU:2048  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:494 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:8 
          RX bytes:0 (0.0 b)  TX bytes:15800 (15.4 KiB)

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:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1599 (1.5 KiB)  TX bytes:1599 (1.5 KiB)

wifi0     Link encap:UNSPEC  HWaddr 
00-20-E0-89-93-DE-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1083 (1.0 KiB)  TX bytes:1351 (1.3 KiB)
          Interrupt:11 Memory:d8b2c000-d8b2d000 

wlan0     Link encap:Ethernet  HWaddr 00:20:E0:89:93:DE  
          inet addr:192.168.0.2  Bcast:192.168.0.255  
Mask:255.255.255.0
          inet6 addr: fe80::220:e0ff:fe89:93de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:921 (921.0 b)  TX bytes:1351 (1.3 KiB)
          Interrupt:11 Memory:d8b2c000-d8b2d000 

And iwconfig outputs:

wifi0     IEEE 802.11b  ESSID:"XXXXXXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 
00:03:C9:8B:C3:B9   
          Bit Rate:11 Mb/s   Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security 
mode:restricted
          Power Management:off
          
wlan0     IEEE 802.11b  ESSID:"XXXXXXXX"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 
00:03:C9:8B:C3:B9   
          Bit Rate:11 Mb/s   Sensitivity=1/3  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security 
mode:restricted
          Power Management:off
          Link Quality=48/70  Signal level=-47 dBm  Noise level=-96 
dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:11   Missed beacon:0

The corresponding syslog part is:

Mar 10 08:58:45 localhost kernel: [4294836.578000] wlan0: LinkStatus=1 
(Connected)
Mar 10 08:58:45 localhost kernel: [4294836.579000] wlan0: LinkStatus: 
BSSID=00:03:c9:8b:c3:b9
[...]
Mar 10 08:58:50 localhost kernel: [4294842.144000] wlan0: invalid 
skb->cb magic (0x00000000, expected 0xf08a36a2)
[...]
Mar 10 08:59:40 localhost kernel: [4294891.346000] wlan0: Original COR 
value: 0x21
Mar 10 08:59:40 localhost kernel: [4294891.369000] ACPI: PCI interrupt 
for device 0000:02:02.0 disabled
Mar 10 08:59:40 localhost kernel: [4294891.372000] hostap_pci: Driver 
unloaded
Mar 10 08:59:48 localhost kernel: [4294899.295000] hostap_crypt: 
unregistered algorithm 'WEP'
Mar 10 08:59:48 localhost kernel: [4294899.305000] hostap_crypt: 
unregistered algorithm 'NULL' (deinit)
Mar 10 08:59:56 localhost kernel: [4294907.597000] hostap_crypt: 
registered algorithm 'NULL'
Mar 10 08:59:56 localhost kernel: [4294907.613000] hostap_pci: 0.4.1 - 
2005-05-22 (Jouni Malinen <jkmaline at cc.hut.fi>)
Mar 10 08:59:56 localhost kernel: [4294907.622000] ACPI: PCI Interrupt 
0000:02:02.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
Mar 10 08:59:56 localhost kernel: [4294907.630000] hostap_pci: 
Registered netdevice wifi0
Mar 10 08:59:56 localhost kernel: [4294907.630000] wifi0: Original COR 
value: 0x0
Mar 10 08:59:56 localhost kernel: [4294907.829000] prism2_hw_init: 
initialized in 195 ms
Mar 10 08:59:56 localhost kernel: [4294907.830000] wifi0: NIC: 
id=0x8013 v1.0.0
Mar 10 08:59:56 localhost kernel: [4294907.831000] wifi0: PRI: id=0x15 
v1.1.1
Mar 10 08:59:56 localhost kernel: [4294907.831000] wifi0: STA: id=0x1f 
v1.7.4
Mar 10 08:59:56 localhost kernel: [4294907.835000] wifi0: Intersil 
Prism2.5 PCI: mem=0xec000000, irq=11
Mar 10 08:59:56 localhost kernel: [4294907.843000] wifi0: registered 
netdevice wlan0
Mar 10 08:59:56 localhost kernel: [4294907.989000] prism2: wlan0: 
operating mode changed 3 -> 2
Mar 10 08:59:56 localhost kernel: [4294908.008000] hostap_crypt: 
registered algorithm 'WEP'
Mar 10 08:59:56 localhost kernel: [4294908.052000] wifi0: TXEXC - 
status=0x0004 ([Discon]) tx_control=000c
Mar 10 08:59:56 localhost kernel: [4294908.052000]    retry_count=0 
tx_rate=0 fc=0x4108 (Data::0 ToDS)
Mar 10 08:59:56 localhost kernel: [4294908.052000]    
A1=00:00:00:00:00:00 A2=00:20:e0:89:93:de A3=33:33:00:00:00:16 
A4=00:00:00:00:00:00
Mar 10 08:59:57 localhost kernel: [4294908.624000] wifi0: LinkStatus=1 
(Connected)
Mar 10 08:59:57 localhost kernel: [4294908.624000] wifi0: LinkStatus: 
BSSID=00:03:c9:8b:c3:b9

Any ideas?

Andreas Nolda




More information about the Hostap mailing list