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

Commit c0ad2f2e authored by Eyal Shapira's avatar Eyal Shapira Committed by Luciano Coelho
Browse files

wlcore: don't attempt to roam in case of p2p



For STA we report beacon loss to higher levels so that wpa_s
can attempt to roam without disconnecting. In case of P2P CLI
we don't want to attempt roaming and instead disconnect immediately
upon beacon loss.

Signed-off-by: default avatarEyal Shapira <eyal@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 8910cfa3
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -237,6 +237,14 @@ void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap)
		    !test_bit(wlvif->role_id , &roles_bitmap))
		    !test_bit(wlvif->role_id , &roles_bitmap))
			continue;
			continue;


		vif = wl12xx_wlvif_to_vif(wlvif);

		/* don't attempt roaming in case of p2p */
		if (wlvif->p2p) {
			ieee80211_connection_loss(vif);
			continue;
		}

		/*
		/*
		 * if the work is already queued, it should take place.
		 * if the work is already queued, it should take place.
		 * We don't want to delay the connection loss
		 * We don't want to delay the connection loss
@@ -246,7 +254,6 @@ void wlcore_event_beacon_loss(struct wl1271 *wl, unsigned long roles_bitmap)
					     &wlvif->connection_loss_work,
					     &wlvif->connection_loss_work,
					     msecs_to_jiffies(delay));
					     msecs_to_jiffies(delay));


		vif = wl12xx_wlvif_to_vif(wlvif);
		ieee80211_cqm_rssi_notify(
		ieee80211_cqm_rssi_notify(
				vif,
				vif,
				NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
				NL80211_CQM_RSSI_BEACON_LOSS_EVENT,