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)
commit7f813ce1bd103a28e2333bd97cc6782c8e2fc8a9
treef5da521daa26a9d2780b8c6b269e480ced0c5bc0
parentf8f118ceaa562d5b49252ecbfd7fe1f704f4e076
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