WiFi card is poking me in the eye with a stick!
While not a new Linux user I am at a loss for what I'm missing here. I am unable to get my wireless connectivity up on my Debian (squeeze) box running AMD64. Rather than rant through what I've done, let me share what the system is telling me:
Output of lspci
Code:
john@KUNGFOOSERV:~$ lspci | grep net
01:05.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335 [Libertas] 802.11b/g Wireless (rev 03)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
john@KUNGFOOSERV:~$
Output of ifconfig:
Code:
john@KUNGFOOSERV:~$ sudo ifconfig
eth0 Link encap:Ethernet HWaddr 01:89:56:87:f3:r3
inet addr:192.168.1.131 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe16:f3d5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13289 errors:0 dropped:0 overruns:0 frame:0
TX packets:22342 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1106519 (1.0 MiB) TX bytes:1703034 (1.6 MiB)
Interrupt:16
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:7158 errors:0 dropped:0 overruns:0 frame:0
TX packets:7158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:969942 (947.2 KiB) TX bytes:969942 (947.2 KiB)
wlan0 Link encap:Ethernet HWaddr 02:h2:2c:55:14:se
inet addr:192.168.1.230 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:6cff:fe73:95de/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60916 errors:0 dropped:0 overruns:0 frame:0
TX packets:5982 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:59698121 (56.9 MiB) TX bytes:439043 (428.7 KiB)
Interrupt:16 Memory:fdfd0000-fdfe0000
Output of iwconfig:
Code:
john@KUNGFOOSERV:~$ sudo iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:"FooNet"
Mode:Managed Frequency:2.437 GHz Access Point: 01:34:2C:77:1D:08
Bit Rate=54 Mb/s Sensitivity=-200 dBm
RTS thr=2346 B Fragment thr=2346 B
Encryption key:C0C9-B3DD-7941-77F5-800A-198E-2EFB-EBE7 Security mode:restricted
Power Management:off
Link Quality:81/100 Signal level:-44 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:274 Invalid misc:943677 Missed beacon:0
View of my Interfaces file
Code:
john@KUNGFOOSERV:~$ sudo less /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.131
netmask 255.255.255.0
gateway 192.168.1.1
#Wireless Connection
auto wlan0
iface wlan0 inet static
wpa-ssid FooNet
wpa-psk mypasswordkey1
address 192.168.1.230
netmask 255.255.255.0
gateway 192.168.1.1
wpa-key-mgmt WPA-PSK
Output of Ndiswrapper:
Code:
john@KUNGFOOSERV:~$ sudo ndiswrapper -l
wg311v3 : driver installed
device (11AB:1FAA) present
john@KUNGFOOSERV:~$
Now here is the weird part. When I connect my hard-line (eth0) to the computer I have full network access to the device (SSH) and the system has internet access. When I pull the hard-line from the system I lose all connectivity to the system. "Ok" I say to myself, the wlan0 is clearly not working correctly. So I reconnect the eth0 so I can remotely SSH into the box (this system has no monitor) and then I execute a ping command through the wlan0 interface to test its connetivity...thinking that it should be down:
Output of Ping test to Internet:
Code:
john@KUNGFOOSERV:~$ ping -c4 -A -I wlan0 www.google.com
PING www.l.google.com (173.194.64.99) from 192.168.1.230 wlan0: 56(84) bytes of data.
64 bytes from 173.194.64.99: icmp_req=1 ttl=48 time=81.4 ms
64 bytes from 173.194.64.99: icmp_req=2 ttl=48 time=65.5 ms
64 bytes from 173.194.64.99: icmp_req=3 ttl=48 time=64.6 ms
64 bytes from 173.194.64.99: icmp_req=4 ttl=48 time=78.0 ms
--- www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3430ms
rtt min/avg/max/mdev = 64.603/72.431/81.481/7.463 ms, ipg/ewma 1143.518/77.686 ms
john@KUNGFOOSERV:~$
"Ok", now this is really weird I say to myself...I used the "I" switch to select the wlan0 interface...traffic passes the moment eth0 is reconnected...huh? As soon as I pull eth0 I loose connectivity via SSH to my laptop and the machine is dead to the network. Either I am using the "I" switch incorrectly with the ping command or somehow traffic is routing through eth0.
View of route table:
Code:
john@KUNGFOOSERV:/etc/ndiswrapper/wg311v3$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Output of dmesg
Code:
john@KUNGFOOSERV:~$ dmesg | grep wlan0
[ 6.804713] wlan0: ethernet device 00:14:6c:73:95:de using NDIS driver: wg311v3, version: 0x3020007, NDIS version: 0x501, vendor: 'NDIS Network Adapter', 11AB:1FAA.5.conf
[ 6.804734] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
[ 8.074857] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 11.649960] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 22.544012] wlan0: no IPv6 routers present
[ 4273.390777] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 4282.908491] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 4293.424012] wlan0: no IPv6 routers present
Output of ps
Code:
john@KUNGFOOSERV:~$ sudo ps -e | grep wpa
2127 ? 00:00:00 wpa_supplicant
So after all of this, here is what I know:
- My adapter is seen by the system (as shown through lspci)
- Both eth0 and wlan0 are available intefaces as shown through ifconfig
- The adapter can see my broadcast SSID, has locked onto a channel, and even shows an encryption key. (as shown by iwconfig)
- The driver is loaded in ndiswrapper (as shown through ndiswrapper -l )
- dmesg appears to indicate that my interface is not ready but I can't seem to see why)
- It appears that I can ping through wlan0 but only when my eth0 is connected which makes absolutely no sense to me.
The driver I am using is said to be the correct AMD64 driver for the Netgear card which is based on the Marvell 8335 [Libertas] chipset. I'm starting to lean towards the driver as the problem but wanted to see if anyone has gotten this card to work on linux/debian squeeze.