Skip to contentSkip to conversation

mac80211: use local mesh_id_len instead of wdev's

PATCH New Johannes Berg 1 participant 1 message Jan 22, 2014 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: use local mesh_id_len instead of wdev's

From: Johannes Berg <[email protected]>

Since we copy the mesh_id_len into our own data structures, use it consistently and don't sometimes use cfg80211's copy.

---
 net/mac80211/mesh.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/mac80211/mesh.c +2 -2
index b02ac33..836ec01 100644
@@ -1216,7 +1216,7 @@ void ieee80211_mesh_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,
 	sdata_lock(sdata);
 
 	/* mesh already went down */
-	if (!sdata->wdev.mesh_id_len)
+	if (!sdata->u.mesh.mesh_id_len)
 		goto out;
 
 	rx_status = IEEE80211_SKB_RXCB(skb);
@@ -1269,7 +1269,7 @@ void ieee80211_mesh_work(struct ieee80211_sub_if_data *sdata)
 	sdata_lock(sdata);
 
 	/* mesh already went down */
-	if (!sdata->wdev.mesh_id_len)
+	if (!sdata->u.mesh.mesh_id_len)
 		goto out;
 
 	if (ifmsh->preq_queue_len &&
Signature · 1 line
1.8.5.1