linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix the setting of center freq segment 2 in VHT oper ie
@ 2015-09-04  2:58 Chun-Yeow Yeoh
  2015-09-04  5:52 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Chun-Yeow Yeoh @ 2015-09-04  2:58 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, 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.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
---
 net/mac80211/util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 1104421..f167056 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -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:
-- 
2.3.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: fix the setting of center freq segment 2 in VHT oper ie
  2015-09-04  2:58 [PATCH] mac80211: fix the setting of center freq segment 2 in VHT oper ie Chun-Yeow Yeoh
@ 2015-09-04  5:52 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2015-09-04  5:52 UTC (permalink / raw)
  To: Chun-Yeow Yeoh, linux-wireless

On Fri, 2015-09-04 at 10:58 +0800, Chun-Yeow Yeoh wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-04  5:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-04  2:58 [PATCH] mac80211: fix the setting of center freq segment 2 in VHT oper ie Chun-Yeow Yeoh
2015-09-04  5:52 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).