projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115b943
)
mac80211: Disable SMPS for the monitor interface
author
Ido Yariv
<
[email protected]
>
Mon, 24 Mar 2014 07:55:45 +0000
(09:55 +0200)
committer
Johannes Berg
<
[email protected]
>
Wed, 9 Apr 2014 08:47:58 +0000
(10:47 +0200)
All antennas should be operational when monitoring to maximize
reception.
Signed-off-by: Ido Yariv <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
net/mac80211/chan.c
patch
|
blob
|
history
diff --git
a/net/mac80211/chan.c
b/net/mac80211/chan.c
index bd1fd8ea5105fead274e09b7bcd093ba97081a97..68bee813dfad08b2307beda53158b4352d00fb2c 100644
(file)
--- a/
net/mac80211/chan.c
+++ b/
net/mac80211/chan.c
@@
-492,6
+492,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) {