diff options
author | Eliad Peller <eliad@wizery.com> | 2013-09-09 09:24:34 (GMT) |
---|---|---|
committer | Luciano Coelho <luciano.coelho@intel.com> | 2013-10-23 06:47:39 (GMT) |
commit | 71e996bef90b23919f627a38367b9e8b44b77d37 (patch) | |
tree | 740d3e7b576e5141fe236041e99f172d5e753b41 /drivers/net/wireless/ti/wlcore/main.c | |
parent | bbd74557e5711e3d5f4d94d050ae05987c4fd0be (diff) | |
download | linux-71e996bef90b23919f627a38367b9e8b44b77d37.tar.xz |
wlcore: add ap_event_mask
Add new ap_event_mask field, to indicate events that
should be unmasked only when there's an ap interface.
This is done in order to avoid spurious wakeups
when we don't care about the incoming event anyway.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/main.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index bbdd106..3147665 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -2623,6 +2623,12 @@ deinit: !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) goto unlock; + if (wl->ap_count == 0 && is_ap) { + /* mask ap events */ + wl->event_mask &= ~wl->ap_event_mask; + wl1271_event_unmask(wl); + } + if (wl->ap_count == 0 && is_ap && wl->sta_count) { u8 sta_auth = wl->conf.conn.sta_sleep_auth; /* Configure for power according to debugfs */ |