Skip to contentSkip to conversation

mac80211: set the forwading in mesh capability info accordingly

PATCH In review Chun-Yeow Yeoh 2 participants 2 messages Jul 12, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: set the forwading in mesh capability info accordingly

Set the Forwarding bit in Mesh Capability Info according to dot11MeshForwarding as defined in IEEE 802.11-2012 section 8.4.2.100.8.

---
 net/mac80211/mesh.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
net/mac80211/mesh.c +3 -1
index e536f22..885a5f6 100644
@@ -273,7 +273,9 @@ int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata,
 	neighbors = min_t(int, neighbors, IEEE80211_MAX_MESH_PEERINGS);
 	*pos++ = neighbors << 1;
 	/* Mesh capability */
-	*pos = IEEE80211_MESHCONF_CAPAB_FORWARDING;
+	*pos = 0x00;
+	*pos |= ifmsh->mshcfg.dot11MeshForwarding ?
+			IEEE80211_MESHCONF_CAPAB_FORWARDING : 0x00;
 	*pos |= ifmsh->accepting_plinks ?
 			IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS : 0x00;
 	/* Mesh PS mode. See IEEE802.11-2012 8.4.2.100.8 */
Signature · 1 line
1.7.0.4
maintainer
#1 lore raw
Quoted 3 lines · Chun-Yeow Yeoh

Set the Forwarding bit in Mesh Capability Info according to dot11MeshForwarding as defined in IEEE 802.11-2012 section 8.4.2.100.8.

Applied (with typo in subject fixed)

johannes