aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/wlcore.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-11-28 11:42:42 +0200
committerLuciano Coelho <coelho@ti.com>2012-12-11 12:25:37 +0200
commit9a1009684df5295883ba2eb85066a23ed3c3f6a6 (patch)
treeaf2f60d5022702b47b0577d985c8692ecacaa503 /drivers/net/wireless/ti/wlcore/wlcore.h
parentwl18xx: limit Tx for the AP single-STA-in-PSM case (diff)
downloadlinux-dev-9a1009684df5295883ba2eb85066a23ed3c3f6a6.tar.xz
linux-dev-9a1009684df5295883ba2eb85066a23ed3c3f6a6.zip
wlcore: use link count for single-STA-PSM optimization
Only allow a PSM STA to congest FW memory when it is the single active link. Being a single STA doesn't imply a single link - there might be other links on other roles. [Changed WARN_ON to WARN_ON_ONCE -- Luca] Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/wlcore.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/wlcore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore.h b/drivers/net/wireless/ti/wlcore/wlcore.h
index 58e52505ec17..22347e864f51 100644
--- a/drivers/net/wireless/ti/wlcore/wlcore.h
+++ b/drivers/net/wireless/ti/wlcore/wlcore.h
@@ -369,6 +369,9 @@ struct wl1271 {
*/
struct wl1271_link links[WL12XX_MAX_LINKS];
+ /* number of currently active links */
+ int active_link_count;
+
/* Fast/slow links bitmap according to FW */
u32 fw_fast_lnk_map;