Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wifi: mt76: mt7921: Configure the 6GHz power type including regulatory limits and SAR power after the connection is established.
@ 2026-02-11  9:50 Leon Yen
  0 siblings, 0 replies; only message in thread
From: Leon Yen @ 2026-02-11  9:50 UTC (permalink / raw)
  To: nbd, lorenzo
  Cc: linux-wireless, linux-mediatek, deren.wu, sean.wang,
	mingyen.hsieh, michael.lo, allan.wang, quan.zhou, sarick.jiang,
	ryder.lee, shayne.chen, leon.yen

From: Michael Lo <michael.lo@mediatek.com>

To set the 6GHz power type and ensure compliance with regulatory limits and
Specific Absorption Rate (SAR) after a connection, we'll need to consider
both hardware-level configurations and software regulations ensuring
adherence to regional standards.

Fixes: 51ba0e3a15eb ("wifi: mt76: mt7921: add 6GHz power type support for clc")
Signed-off-by: Michael Lo <michael.lo@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7921/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/main.c b/drivers/net/wireless/mediatek/mt76/mt7921/main.c
index 42b9514e04e7..3d74fabe7408 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/main.c
@@ -800,7 +800,8 @@ mt7921_regd_set_6ghz_power_type(struct ieee80211_vif *vif, bool is_add)
 	}
 
 out:
-	mt7921_mcu_set_clc(dev, dev->mt76.alpha2, dev->country_ie_env);
+	if (vif->bss_conf.chanreq.oper.chan->band == NL80211_BAND_6GHZ)
+		mt7921_regd_update(dev);
 }
 
 int mt7921_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
-- 
2.45.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-11  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  9:50 [PATCH] wifi: mt76: mt7921: Configure the 6GHz power type including regulatory limits and SAR power after the connection is established Leon Yen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox