diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-08-14 13:17:20 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-08-22 12:35:27 +0300 |
commit | 712e9bf750c5d0db63040c5695dacf38aed4f42c (patch) | |
tree | 78f168fabd8576675a31121b1911d4d9c526ad9e /drivers/net/wireless/wl12xx/main.c | |
parent | 3be4112cb2c53fcda85fb408aea9a6f94075683b (diff) | |
download | blackbird-op-linux-712e9bf750c5d0db63040c5695dacf38aed4f42c.tar.gz blackbird-op-linux-712e9bf750c5d0db63040c5695dacf38aed4f42c.zip |
wl12xx: fix session counter
Increment the session counter on every
wl12xx_cmd_role_start_sta() command.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 1774a6672314..157c46237d9f 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -2187,11 +2187,6 @@ static int wl1271_sta_handle_idle(struct wl1271 *wl, bool idle) goto out; set_bit(WL1271_FLAG_IDLE, &wl->flags); } else { - /* increment the session counter */ - wl->session_counter++; - if (wl->session_counter >= SESSION_COUNTER_MAX) - wl->session_counter = 0; - /* The current firmware only supports sched_scan in idle */ if (wl->sched_scanning) { wl1271_scan_sched_scan_stop(wl); @@ -4453,6 +4448,7 @@ struct ieee80211_hw *wl1271_alloc_hw(void) wl->sta_hlid = WL12XX_INVALID_LINK_ID; wl->dev_role_id = WL12XX_INVALID_ROLE_ID; wl->dev_hlid = WL12XX_INVALID_LINK_ID; + wl->session_counter = 0; setup_timer(&wl->rx_streaming_timer, wl1271_rx_streaming_timer, (unsigned long) wl); wl->fwlog_size = 0; |