Skip to contentSkip to conversation

mac80211: fix the setting of center freq segment 2 in VHT oper ie

PATCH In review Chun-Yeow Yeoh 2 participants 2 messages Sep 4, 2015 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix the setting of center freq segment 2 in VHT oper ie

This is to avoid the Channel Center Frequency Segment 2 in broadcasted VHT operation element contains the non-zero value for non 80+80 MHz that may failed the comparison of cfg80211_chandef_identical.

This is tested with Bob's patches related to VHT mesh support.

---
 net/mac80211/util.c | 2 ++
 1 file changed, 2 insertions(+)
net/mac80211/util.c +2 -0
index 1104421..f167056 100644
@@ -2324,6 +2324,8 @@ u8 *ieee80211_ie_build_vht_oper(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
 	if (chandef->center_freq2)
 		vht_oper->center_freq_seg2_idx =
 			ieee80211_frequency_to_channel(chandef->center_freq2);
+	else
+		vht_oper->center_freq_seg2_idx = 0x00;
 
 	switch (chandef->width) {
 	case NL80211_CHAN_WIDTH_160:
Signature · 1 line
2.3.0
maintainer
#1 lore raw
Quoted 7 lines · Chun-Yeow Yeoh

This is to avoid the Channel Center Frequency Segment 2 in broadcasted VHT operation element contains the non-zero value for non 80+80 MHz that may failed the comparison of cfg80211_chandef_identical.

This is tested with Bob's patches related to VHT mesh support.

I suppose I'll squash this into the appropriate of Bob's patches :)

johannes