Skip to contentSkip to conversation

iwl3945: disassociating from current AP on rescan with kernels > 3.0

DISCUSSION Mike Edenfield 3 participants 5 messages Dec 30, 2011 – Jan 18, 2012

lore
Share & tools
lore
#0 lore raw

After upgrading to a v3.0 kernel, my Intel wireless adapter stopped working when used with any UI-based wpa_supplicant front-end that does periodic scans, such as NetworkManager and wicd. Whenever the software asks for an AP scan, the device disconnects from its current AP and blacklists it, making it impossible to reconnect until I kill wpa_supplicant. If I manually configure wpa_supplicant and launch it directly, the adapter stays associated with the AP properly.

I was able to reproduct this behavior with kernel version 3.0.4, 3.1.4, and 3.1.5, but downgrading to 2.6.39 or lower solves the problem. I haven't seen any other reports of this problem specific to 3.x -- did I miss some other step I need to do when upgrading?

#1 lore raw
Quoted 8 lines · Mike Edenfield

After upgrading to a v3.0 kernel, my Intel wireless adapter stopped working when used with any UI-based wpa_supplicant front-end that does periodic scans, such as NetworkManager and wicd. Whenever the software asks for an AP scan, the device disconnects from its current AP and blacklists it, making it impossible to reconnect until I kill wpa_supplicant. If I manually configure wpa_supplicant and launch it directly, the adapter stays associated with the AP properly.

Quoted 4 lines

I was able to reproduct this behavior with kernel version 3.0.4, 3.1.4, and 3.1.5, but downgrading to 2.6.39 or lower solves the problem. I haven't seen any other reports of this problem specific to 3.x -- did I miss some other step I need to do when upgrading?

There shouldn't be any; the driver should be ensuring that the current association stays valid across scans as long as the AP is still in range. This sounds like a driver or mac80211 bug.

Dan

#2 lore raw
In reply to Mike Edenfield
Quoted 8 lines · Mike Edenfield

After upgrading to a v3.0 kernel, my Intel wireless adapter stopped working when used with any UI-based wpa_supplicant front-end that does periodic scans, such as NetworkManager and wicd. Whenever the software asks for an AP scan, the device disconnects from its current AP and blacklists it, making it impossible to reconnect until I kill wpa_supplicant. If I manually configure wpa_supplicant and launch it directly, the adapter stays associated with the AP properly.

Quoted 4 lines

I was able to reproduct this behavior with kernel version 3.0.4, 3.1.4, and 3.1.5, but downgrading to 2.6.39 or lower solves the problem. I haven't seen any other reports of this problem specific to 3.x -- did I miss some other step I need to do when upgrading?

Are you sure this is 2.6.39 -> 3.0 regression. There are not many changes in iwlegacy driver between these

$ git log v2.6.39..v3.0 --oneline --no-merges -- drivers/net/wireless/iwlegacy/
51e6525 iwlegacy: fix channel switch locking
51892db iwl4965: set tx power after rxon_assoc
dfe2158 iwl4965: correctly validate temperature value
aac11c1 iwl4965: fix 5GHz operation
8220ba3 iwlegacy: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
2245090 iwlegacy: remove sync_cmd_mutex
28a6e57 iwlegacy: more priv->mutex serialization
81e6326 iwlegacy: fix enqueue hcmd race conditions
93fd74e iwlegacy: comment typo fix diable -> disable
7a55237 iwlegacy: remove scan_tx_antennas
5855c7d iwlegacy: remove unneeded __packed
8eb0ac7 iwlegacy: remove unneeded disable_hw_scan check
3e41de8 iwlegacy: simplify init geos
a078a1f iwlegacy: enable only rfkill interrupt when device is down
ab42b40 iwlegacy: remove duplicate initialization in iwl4956_down()
85ee7a1 treewide: cleanup continuations and remove logging message whitespace
0477ad7 iwlegacy: use pci_dev->revision
a22e93f iwl4965: drop a lone pr_err()

and none of it looks suspicious.

Problem looks more like software scanning issue, which we enable by default on 2.6.39. Can you check if disable_hw_scan=0 module parameter helps?

Thanks
Stanislaw

#3 lore raw
Quoted 3 lines

Problem looks more like software scanning issue, which we enable by default on 2.6.39. Can you check if disable_hw_scan=0 module parameter helps?

Wow, this appears to have fixed my problem, at least so far. I'm a little worried because I had the module parameter set /on/ (disable_hw_scan=1) from way back when I first built this laptop and couldn't stay connected to our work LAN. I didn't realize that was on by default. I've switched it to be off now and hopefully it won't be a problem.

Thanks for the heads up!

--Mike

#4 lore raw
Quoted 9 lines · Mike Edenfield
Quoted 3 lines

Problem looks more like software scanning issue, which we enable by default on 2.6.39. Can you check if disable_hw_scan=0 module parameter helps?

Wow, this appears to have fixed my problem, at least so far. I'm a little worried because I had the module parameter set /on/ (disable_hw_scan=1) from way back when I first built this laptop and couldn't stay connected to our work LAN. I didn't realize that was on by default. I've switched it to be off now and hopefully it won't be a problem.

So on one AP you have to do disable_hw_scan=1 to make things work, and on other one you have to do disable_hw_scan=0 ? Ehh bugger. Since bugzilla.kernel.org is back again, please report these problem there. Once you'll open the bug reports, I'll ask you for more info. Before opening bug reports, please check if by chance problems are not fixed in the latest kernel version i.e. 3.3-rc1

Thanks
Stanislaw