OSDN Git Service

mac80211_hwsim: use per-interface power level
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Apr 2017 08:31:16 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:52 +0000 (09:17 +0100)
commit6335d2350f4273c5ed4ff82929958ebf8b635aa2
tree8c849fd4a986937862e6b754685cf8646174c451
parentb7ac7e479ae38810bc06fb662fe6e7e1ac7df3cf
mac80211_hwsim: use per-interface power level

[ Upstream commit 1d5e9f80ab021e3e1f9436627a4ad07a143ccb2c ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mac80211_hwsim.c