mac80211: fix beacon loss detection after scan
Review void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) · line 306
Quoted 11 lines · Kalle Valo
(quoted diff) +7
-0@@ -297,6 +297,13 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) local->last_scan_completed = jiffies; + if (local->scan_sdata->vif.type == NL80211_IFTYPE_STATION) + /* + * Need to update last_beacon to avoid beacon loss + * test to trigger. + */ + local->scan_sdata->u.mgd.last_beacon = jiffies; +
A little lower is a hook function for the MLME -- it would be good to put this in there, see ieee80211_mlme_notify_scan_completed()
johannes
Quoted 10 lines · Johannes Berg
Review
Quoted 7 lines
(quoted diff) +7
-0+ if (local->scan_sdata->vif.type == NL80211_IFTYPE_STATION) + /* + * Need to update last_beacon to avoid beacon loss + * test to trigger. + */ + local->scan_sdata->u.mgd.last_beacon = jiffies; +A little lower is a hook function for the MLME -- it would be good to put this in there, see
ieee80211_mlme_notify_scan_completed()
I agree. I'll send v2 after a quick test.
Signature · 1 line
Kalle Valo