mac80211: fix scan completed tracing
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 07:37:54 +0000 (09:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 14:46:16 +0000 (16:46 +0200)
Passing the 'info' pointer where a 'info->aborted' is expected will
always lead to tracing to erroneously record that the scan was aborted,
fix that by passing the correct info->aborted. The remaining data will
be collected in cfg80211, so I haven't duplicated it here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c

index 070b40f..23d8ac8 100644 (file)
@@ -420,7 +420,7 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw,
 {
        struct ieee80211_local *local = hw_to_local(hw);
 
-       trace_api_scan_completed(local, info);
+       trace_api_scan_completed(local, info->aborted);
 
        set_bit(SCAN_COMPLETED, &local->scanning);
        if (info->aborted)