diff options
author | Eliad Peller <eliad@wizery.com> | 2011-09-15 06:00:01 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-09-23 07:38:49 -0400 |
commit | c6930b07b3d0a8c529e1d9287bd5994319cf447d (patch) | |
tree | cc9ce9e593092f26892ec47a57d0d8d3d23420e8 /drivers/net | |
parent | 26b4bf2e0f0dbafa4dd575b03ffcb12710ef5611 (diff) |
wl12xx: send all pending packets on channel change
There is a race condition between wl1271_tx_work() and the
channel switch, so make sure all the pending packets are
being sent before switching channel.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index a8728ae2bb02..62118b7988bd 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -2355,6 +2355,8 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed) | |||
2355 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL && | 2355 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL && |
2356 | ((wl->band != conf->channel->band) || | 2356 | ((wl->band != conf->channel->band) || |
2357 | (wl->channel != channel))) { | 2357 | (wl->channel != channel))) { |
2358 | /* send all pending packets */ | ||
2359 | wl1271_tx_work_locked(wl); | ||
2358 | wl->band = conf->channel->band; | 2360 | wl->band = conf->channel->band; |
2359 | wl->channel = channel; | 2361 | wl->channel = channel; |
2360 | 2362 | ||