mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
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]>
31 lines
548 B
C
31 lines
548 B
C
/* SPDX-License-Identifier: ISC */
|
|
/* Copyright (C) 2020 MediaTek Inc. */
|
|
|
|
#ifndef __MT7921_EEPROM_H
|
|
#define __MT7921_EEPROM_H
|
|
|
|
#include "mt7921.h"
|
|
|
|
enum mt7921_eeprom_field {
|
|
MT_EE_CHIP_ID = 0x000,
|
|
MT_EE_VERSION = 0x002,
|
|
MT_EE_MAC_ADDR = 0x004,
|
|
MT_EE_WIFI_CONF = 0x07c,
|
|
MT_EE_HW_TYPE = 0x55b,
|
|
__MT_EE_MAX = 0x9ff
|
|
};
|
|
|
|
#define MT_EE_WIFI_CONF_TX_MASK BIT(0)
|
|
#define MT_EE_WIFI_CONF_BAND_SEL GENMASK(3, 2)
|
|
|
|
#define MT_EE_HW_TYPE_ENCAP BIT(0)
|
|
|
|
enum mt7921_eeprom_band {
|
|
MT_EE_NA,
|
|
MT_EE_5GHZ,
|
|
MT_EE_2GHZ,
|
|
MT_EE_DUAL_BAND,
|
|
};
|
|
|
|
#endif
|