Skip to contentSkip to conversation

mac80211: only respond to probe request with mesh ID

PATCH Superseded Chun-Yeow Yeoh 2 participants 2 messages Aug 22, 2013 mac80211

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mac80211: only respond to probe request with mesh ID

From: Chun-Yeow Yeoh <[email protected]>

Previously, the mesh STA responds to probe request from legacy STA but now it will only respond to legacy STA if the legacy STA does include the specific mesh ID or wildcard mesh ID in the probe request.

The iw patch "iw: scan using meshid" can be used either by legacy STA or by mesh STA to do active scanning by inserting the mesh ID in the probe request frame.

---
v2: modify comments (Thomas)

 net/mac80211/mesh.c |    3 +++
 1 file changed, 3 insertions(+)
net/mac80211/mesh.c +3 -0
index 885a5f6..a660fb8 100644
@@ -832,6 +832,9 @@ ieee80211_mesh_rx_probe_req(struct ieee80211_sub_if_data *sdata,
 
 	ieee802_11_parse_elems(pos, len - baselen, false, &elems);
 
+	if(!elems.mesh_id)
+		return;
+
 	/* 802.11-2012 10.1.4.3.2 */
 	if ((!ether_addr_equal(mgmt->da, sdata->vif.addr) &&
 	     !is_broadcast_ether_addr(mgmt->da)) ||
Signature · 1 line
1.7.9.5
#1 lore raw

net/mac80211/mesh.c ieee80211_mesh_rx_probe_req(struct ieee80211_sub_if_data *sdata, · line 837

Quoted 3 lines · Chun-Yeow Yeoh
net/mac80211/mesh.c +3 -0
+	if(!elems.mesh_id)
+		return;
+

if (!elems.mesh_id)

(checkpatch will warn about that)

Signature · 1 line
Bob Copeland %% www.bobcopeland.com