wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/593-mac80211-reset-puncturing-bitmap-during-width-downgr.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

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;