Skip to contentSkip to conversation

mac80211: fix beacon loss detection after scan

PATCH Johannes Berg 2 participants 2 messages Apr 18, 2009 – Apr 19, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20090418204614.32075.19851.stgit@tikku

#1 lore raw

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

#2 lore raw
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