]> git.baikalelectronics.ru Git - kernel.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)
commit4d0b2abdcce76de849d28a0e2815c39bfabd7249
treefc2290c4243050c2f30f7beaa72dc36cb67c61eb
parent0b36cd3aa15b73a08543c58eedf25df2c7f86e76
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