]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211_hwsim: use per-interface power level
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2017 08:31:16 +0000 (10:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2017 11:41:40 +0000 (13:41 +0200)
commit1d5e9f80ab021e3e1f9436627a4ad07a143ccb2c
treefc2290c4243050c2f30f7beaa72dc36cb67c61eb
parent65f1d6007e999f3a3dda1ba5f264447529247697
mac80211_hwsim: use per-interface power level

When channel contexts are used, there's no global power level
(the power_level is always 0). Use the per-interface TX power
in mac80211_hwsim to have a proper setting for both cases.

This fixes the bgscan_simple and bgscan_learn test cases when
the number of channels advertised by hwsim is >1 by default.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c