mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 19:03:39 +00:00
26 lines
706 B
Diff
26 lines
706 B
Diff
From da5c4d13f1acaba98ac601e973d621c72eb5e9c6 Mon Sep 17 00:00:00 2001
|
|
From: Aloka Dixit <quic_alokad@quicinc.com>
|
|
Date: Thu, 3 Mar 2022 15:22:46 -0800
|
|
Subject: [PATCH 4/7] mac80211: reset puncturing bitmap during width downgrade
|
|
|
|
Set the RU puncturing bitmap to 0 if for any reason bandwidth
|
|
is downgraded to less than 80 Mhz.
|
|
|
|
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
|
|
---
|
|
net/mac80211/util.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/net/mac80211/util.c
|
|
+++ b/net/mac80211/util.c
|
|
@@ -4147,6 +4147,9 @@ u32 ieee80211_chandef_downgrade(struct c
|
|
break;
|
|
}
|
|
|
|
+ c->ru_punct_bitmap = 0;
|
|
+ c->ru_punct_bitmap_supp_he = 0;
|
|
+
|
|
WARN_ON_ONCE(!cfg80211_chandef_valid(c));
|
|
|
|
return ret;
|