diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-09-24 21:59:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-28 15:47:55 -0400 |
commit | 8d4780eb1ece4e8109b4f6b2e5e61f7fc593c3f4 (patch) | |
tree | 4d68c0dea0d852cddc64e0d65a2d303c918c0e6d /net | |
parent | d99bf6e707444af4df294f54a679f679018d7ec3 (diff) |
mac80211: fix offchannel assumption upon association
Association is dealt with as an atomic offchannel operation,
we do this because we don't know we are associated until we
get the associatin response from the AP. When we do get the
associatin response though we were never clearing the offchannel
state. This has a few implications, we told drivers we were
still offchannel, and the first configured TX power for the
channel does not take into account any power constraints.
For ath9k this meant ANI calibration would not start upon
association, and we'd have to wait until the first bgscan
to be triggered. There may be other issues this resolves
but I'm too lazy to comb the code to check.
Cc: stable@kernel.org
Cc: Amod Bodas <amod.bodas@atheros.com>
Cc: Vasanth Thiagarajan <vasanth.thiagarajan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 7c8542627351..e24fa5be4264 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -110,7 +110,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) | |||
110 | chan = scan_chan; | 110 | chan = scan_chan; |
111 | channel_type = NL80211_CHAN_NO_HT; | 111 | channel_type = NL80211_CHAN_NO_HT; |
112 | local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; | 112 | local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; |
113 | } else if (local->tmp_channel) { | 113 | } else if (local->tmp_channel && |
114 | local->oper_channel != local->tmp_channel) { | ||
114 | chan = scan_chan = local->tmp_channel; | 115 | chan = scan_chan = local->tmp_channel; |
115 | channel_type = local->tmp_channel_type; | 116 | channel_type = local->tmp_channel_type; |
116 | local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; | 117 | local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; |