* [PATCH] mac80211: Disable SMPS for the monitor interface
@ 2014-03-24 7:55 Emmanuel Grumbach
2014-03-28 8:30 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Grumbach @ 2014-03-24 7:55 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Ido Yariv, Ido Yariv
From: Ido Yariv <ido@wizery.com>
All antennas should be operational when monitoring to maximize
reception.
Signed-off-by: Ido Yariv <idox.yariv@intel.com>
---
net/mac80211/chan.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
index 57b8ab1..be677e0 100644
--- a/net/mac80211/chan.c
+++ b/net/mac80211/chan.c
@@ -522,6 +522,13 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local,
rx_chains_static = max(rx_chains_static, needed_static);
rx_chains_dynamic = max(rx_chains_dynamic, needed_dynamic);
}
+
+ /* Disable SMPS for the monitor interface */
+ sdata = rcu_dereference(local->monitor_sdata);
+ if (sdata &&
+ rcu_access_pointer(sdata->vif.chanctx_conf) == &chanctx->conf)
+ rx_chains_dynamic = rx_chains_static = local->rx_chains;
+
rcu_read_unlock();
if (!local->use_chanctx) {
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: Disable SMPS for the monitor interface
2014-03-24 7:55 [PATCH] mac80211: Disable SMPS for the monitor interface Emmanuel Grumbach
@ 2014-03-28 8:30 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2014-03-28 8:30 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: linux-wireless, Ido Yariv, Ido Yariv
On Mon, 2014-03-24 at 09:55 +0200, Emmanuel Grumbach wrote:
> From: Ido Yariv <ido@wizery.com>
>
> All antennas should be operational when monitoring to maximize
> reception.
Applied.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-28 8:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 7:55 [PATCH] mac80211: Disable SMPS for the monitor interface Emmanuel Grumbach
2014-03-28 8:30 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).