Skip to content

Commit

Permalink
wifi: mt76: add EHT phy type
Browse files Browse the repository at this point in the history
Extend phy type and phymode bitfields for EHT support.
This is the preliminary patch to add EHT support for mt7996.

Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
csyuanc authored and nbd168 committed Feb 2, 2023
1 parent 5eb4e23 commit e7a61c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mt76.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,14 @@ enum mt76_phy_type {
MT_PHY_TYPE_HE_EXT_SU,
MT_PHY_TYPE_HE_TB,
MT_PHY_TYPE_HE_MU,
__MT_PHY_TYPE_HE_MAX,
MT_PHY_TYPE_EHT_SU = 13,
MT_PHY_TYPE_EHT_TRIG,
MT_PHY_TYPE_EHT_MU,
__MT_PHY_TYPE_MAX,
};

struct mt76_sta_stats {
u64 tx_mode[__MT_PHY_TYPE_HE_MAX];
u64 tx_mode[__MT_PHY_TYPE_MAX];
u64 tx_bw[4]; /* 20, 40, 80, 160 */
u64 tx_nss[4]; /* 1, 2, 3, 4 */
u64 tx_mcs[16]; /* mcs idx */
Expand Down
4 changes: 4 additions & 0 deletions mt76_connac_mcu.h
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,16 @@ enum {
#define PHY_MODE_AX_5G BIT(7)

#define PHY_MODE_AX_6G BIT(0) /* phymode_ext */
#define PHY_MODE_BE_24G BIT(1)
#define PHY_MODE_BE_5G BIT(2)
#define PHY_MODE_BE_6G BIT(3)

#define MODE_CCK BIT(0)
#define MODE_OFDM BIT(1)
#define MODE_HT BIT(2)
#define MODE_VHT BIT(3)
#define MODE_HE BIT(4)
#define MODE_EHT BIT(5)

#define STA_CAP_WMM BIT(0)
#define STA_CAP_SGI_20 BIT(4)
Expand Down

0 comments on commit e7a61c5

Please sign in to comment.