Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a13fbe54 authored by Ben Greear's avatar Ben Greear Committed by Johannes Berg
Browse files

mac80211: be more careful about sending beacon-loss-events



I don't think we should send the events unless it was actually
a beacon that was lost...not just any probe of an AP.

Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 78e443e4
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1988,13 +1988,15 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
		goto out;
	}

	if (beacon)
	if (beacon) {
		mlme_dbg_ratelimited(sdata,
				     "detected beacon loss from AP (missed %d beacons) - probing\n",
				     beacon_loss_count);

		ieee80211_cqm_rssi_notify(&sdata->vif,
		NL80211_CQM_RSSI_BEACON_LOSS_EVENT, GFP_KERNEL);
					  NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
					  GFP_KERNEL);
	}

	/*
	 * The driver/our work has already reported this event or the