mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
mac80211: Disable SMPS for the monitor interface
All antennas should be operational when monitoring to maximize reception. Signed-off-by: Ido Yariv <idox.yariv@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
115b943a6e
commit
7b8a9cdd1f
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue