wifi: mt76: mt7925: add regulatory wiphy self manager support
Subsystems (2)
PATCH v2 1/1 wifi: mt76: mt7925: add regulatory wiphy self manager support
From: Charlie-cy Wu <[email protected]>
Introduce regulatory wiphy self-managed mode support for MT7925, allowing the driver to manage its own regulatory domain independently from the kernel's regulatory framework.
Signed-off-by Charlie-cy Wu <[email protected]>
---
v2: fix regd.c build warning
--- .../net/wireless/mediatek/mt76/mt7925/mcu.c | 3 +- .../net/wireless/mediatek/mt76/mt7925/regd.c | 204 ++++++++++++++++-- .../net/wireless/mediatek/mt76/mt7925/regd.h | 54 +++++ drivers/net/wireless/mediatek/mt76/mt792x.h | 2 + 4 files changed, 244 insertions(+), 19 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +2 -1
@@ -3457,7 +3457,8 @@ int mt7925_mcu_set_clc(struct mt792x_dev *dev, u8 *alpha2,/* submit all clc config */ for (i =0 ; i <ARRAY_SIZE (phy->clc); i++) { -if (i == MT792x_CLC_BE_CTRL) +if (i == MT792x_CLC_BE_CTRL || + i == MT792x_CLC_REGD)continue ; ret = __mt7925_mcu_set_clc(dev, alpha2, env_cap,
drivers/net/wireless/mediatek/mt76/mt7925/regd.c +186 -18
252 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt7925/regd.h +54 -0
66 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt792x.h +2 -0
@@ -29,6 +29,7 @@#define MT792x_CHIP_CAP_RSSI_NOTIFY_EVT_EN BIT(1)#define MT792x_CHIP_CAP_WF_RF_PIN_CTRL_EVT_EN BIT(3)#define MT792x_CHIP_CAP_11D_EN BIT(4) +#define MT792x_CHIP_CAP_REGD_EN BIT(5)#define MT792x_CHIP_CAP_MLO_EN BIT(8)#define MT792x_CHIP_CAP_MLO_EML_EN BIT(9)
@@ -75,6 +76,7 @@ enum { MT792x_CLC_POWER, MT792x_CLC_POWER_EXT, MT792x_CLC_BE_CTRL, + MT792x_CLC_REGD, MT792x_CLC_MAX_NUM, };
Signature · 1 line
2.18.0