Skip to contentSkip to conversation

nl80211: Fix mesh HT operation check

PATCH Applied Masashi Honma 2 participants 2 messages Jan 25, 2017 – Feb 6, 2017 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nl80211: Fix mesh HT operation check

commit 9757235f451c27deaa88925399f070ff6fcea832 ('nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value') missed to mask a flag when replacing FILL_IN_MESH_PARAM_IF_SET with checking codes. This could drop the received HT operation value when called by nl80211_update_mesh_config().

---
 net/wireless/nl80211.c | 1 +
 1 file changed, 1 insertion(+)
net/wireless/nl80211.c +1 -0
index e6ed8dc..006c147 100644
@@ -5924,6 +5924,7 @@ do {									    \
 			break;
 		}
 		cfg->ht_opmode = ht_opmode;
+		mask |= (1 << (NL80211_MESHCONF_HT_OPMODE - 1));
 	}
 	FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPactivePathToRootTimeout,
 				  1, 65535, mask,
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 5 lines · Masashi Honma

commit 9757235f451c27deaa88925399f070ff6fcea832 ('nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value') missed to mask a flag when replacing FILL_IN_MESH_PARAM_IF_SET with checking codes. This could drop the received HT operation value when called by nl80211_update_mesh_config().

Applied, thanks.

johannes