]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: report survey data for scanned channels
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Nov 2013 09:37:34 +0000 (10:37 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Mar 2017 12:31:29 +0000 (13:31 +0100)
commitea6206692e7807dbc1400e774ea534177ecd1b2d
treef5da521daa26a9d2780b8c6b269e480ced0c5bc0
parent0909165908a71f32f2243cb8d3b40ce6aa957bed
mac80211_hwsim: report survey data for scanned channels

Currently, hwsim is reporting survey data (only a fake noise floor)
for the current channel. This breaks when the multi-channel support
is enabled since then there's no current channel.

Make the dummy implementation closer to a real one and only report
data while scanning, for all the scanned channels. At other times,
no survey data might be available (in real hardware) due to power-
save for example.

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