mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: introduce Country Location Control support
Country Location Control (CLC) is an additional control for country rules in firmware. We introduce this new feature to make sure mt7921 series working properly in all region. The addtional policies would be put into firmware based on differnt regions. mt76 driver should be in charge of submitting per region policy. Reviewed-by: Sean Wang <[email protected]> Tested-by: YN Chen <[email protected]> Co-developed-by: Deren Wu <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Ming Yen Hsieh <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
cddc4b43ea
commit
ebbd68842e
+10
-1
@@ -10,6 +10,7 @@
|
||||
#define FW_FEATURE_SET_KEY_IDX GENMASK(2, 1)
|
||||
#define FW_FEATURE_ENCRY_MODE BIT(4)
|
||||
#define FW_FEATURE_OVERRIDE_ADDR BIT(5)
|
||||
#define FW_FEATURE_NON_DL BIT(6)
|
||||
|
||||
#define DL_MODE_ENCRYPT BIT(0)
|
||||
#define DL_MODE_KEY_IDX GENMASK(2, 1)
|
||||
@@ -33,6 +34,12 @@
|
||||
#define PATCH_SEC_ENC_SCRAMBLE_INFO_MASK GENMASK(15, 0)
|
||||
#define PATCH_SEC_ENC_AES_KEY_MASK GENMASK(7, 0)
|
||||
|
||||
enum {
|
||||
FW_TYPE_DEFAULT = 0,
|
||||
FW_TYPE_CLC = 2,
|
||||
FW_TYPE_MAX_NUM = 255
|
||||
};
|
||||
|
||||
#define MCU_PQ_ID(p, q) (((p) << 15) | ((q) << 10))
|
||||
#define MCU_PKT_ID 0xa0
|
||||
|
||||
@@ -174,7 +181,8 @@ struct mt76_connac2_fw_region {
|
||||
__le32 addr;
|
||||
__le32 len;
|
||||
u8 feature_set;
|
||||
u8 rsv1[15];
|
||||
u8 type;
|
||||
u8 rsv1[14];
|
||||
} __packed;
|
||||
|
||||
struct tlv {
|
||||
@@ -1172,6 +1180,7 @@ enum {
|
||||
MCU_CE_CMD_SET_ROC = 0x1c,
|
||||
MCU_CE_CMD_SET_EDCA_PARMS = 0x1d,
|
||||
MCU_CE_CMD_SET_P2P_OPPPS = 0x33,
|
||||
MCU_CE_CMD_SET_CLC = 0x5c,
|
||||
MCU_CE_CMD_SET_RATE_TX_POWER = 0x5d,
|
||||
MCU_CE_CMD_SCHED_SCAN_ENABLE = 0x61,
|
||||
MCU_CE_CMD_SCHED_SCAN_REQ = 0x62,
|
||||
|
||||
Reference in New Issue
Block a user