NetworkManager cannot connect to WPA network at first boot, (usb device: 0ace:1211)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.20 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
zd1211 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
EDIT: I previously thought that the zd1211rw-mac80211 module solved my problem, but I was incorrect.
System: Intel Pentium II, 192mb RAM, Ubuntu Feisty w/latest updates
I have a USB wireless card branded as "Canyon CN-WF518 Wireless Network Interface USB 2.0 Adapter IEEE 802.11b/802.11g", using zd1211rw driver. When plugged in, Feisty correctly recognises the card and loads the zd1211rw module successfully. NetworkManager can correctly scan wireless networks, but when I try to connect to my home network using WPA/WPA2-PSK, the connection can never establish correctly the first time. I have installed libpam-keyring and added "@include common-pamkeyring" to /etc/pam.d/gdm.
Steps to reproduce:
1. Boot computer with USB wireless card connected
2. Log in to GNOME
3. Wait for NetworkManager to establish connection to wireless network (preconfigured previously).
4. After waiting for network to connect (the two spheres remain grey), NetworkManager gives up and disconnects.
5. Click on the NetworkManager applet, then click on my wireless network (43OGR)
6. The spheres will turn green and the connection will establish correctly.
This behaviour occurs at every boot, and the network will always connect successfully on the second (manual) attempt. Below is my kernel version and lsusb output, and I attached system logs. However, I am not sure what logs are useful to troubleshoot this issue, so please let me know what you need.
conn@compaq:
Bus 001 Device 003: ID 413c:3200 Dell Computer Corp.
Bus 001 Device 002: ID 0ace:1211 ZyDAS 802.11b/g USB2 WiFi
Bus 001 Device 001: ID 0000:0000
conn@compaq:
Linux compaq 2.6.20-14-generic #2 SMP Mon Apr 2 20:37:49 UTC 2007 i686 GNU/Linux
description: | updated |
Changed in linux-source-2.6.20: | |
importance: | Critical → Medium |
Changed in linux-source-2.6.20: | |
assignee: | timg-tpi → ubuntu-kernel-team |
status: | In Progress → Fix Released |
Changed in zd1211 (Ubuntu): | |
status: | Incomplete → Won't Fix |
I whipped up a script that essentially fixes the problem, but it's working around what I suspect to be a driver or NetworkManager issue.
/etc/network/ if.pre- up.d/hackwirele ss:
#!/bin/sh
iwconfig eth1 essid MYESSID
sleep 2
Replace your network interface name (eth1) and your wireless network's ESSID (MYESSID), and chmod +x the file. From now on, NetworkManager connects to my wireless network flawlessly every time. I tried simpler things such as "iwconfig eth1 rate 11M" or "ifconfig eth1 up", but it seems that setting your wireless ESSID manually before NetworkManager kicks in is the only way to fix the issue. Setting a dummy ESSID also doesn't help, it has to be your real ESSID.
What logs do you need to troubleshoot this issue?