diff options
author | Sean Wang <sean.wang@mediatek.com> | 2021-04-13 11:08:41 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-21 11:42:21 +0200 |
commit | ea29acc97c555bc4c295cd0ad78083a33b0272a2 (patch) | |
tree | 1c8bc677fced2b2624179895c8f98734bd8a9ace /drivers/net/wireless/mediatek/mt76/mt7921/mcu.h | |
parent | 18369a4f9d73bf0ccd43d8df691d394281ee3ed4 (diff) | |
download | linux-stable-ea29acc97c555bc4c295cd0ad78083a33b0272a2.tar.gz linux-stable-ea29acc97c555bc4c295cd0ad78083a33b0272a2.tar.bz2 linux-stable-ea29acc97c555bc4c295cd0ad78083a33b0272a2.zip |
mt76: mt7921: add dumping Tx power table
Dump the tx power table saved in offload firmware.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/mcu.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7921/mcu.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.h b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.h index 13e125f32283..49823d0a3d0a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.h @@ -86,6 +86,7 @@ enum { MCU_EVENT_CH_PRIVILEGE = 0x18, MCU_EVENT_SCHED_SCAN_DONE = 0x23, MCU_EVENT_DBG_MSG = 0x27, + MCU_EVENT_TXPWR = 0xd0, MCU_EVENT_COREDUMP = 0xf0, }; @@ -390,4 +391,20 @@ struct mt7921_mcu_wlan_info { __le32 wlan_idx; struct mt7921_mcu_wlan_info_event event; } __packed; + +struct mt7921_txpwr_req { + u8 ver; + u8 action; + __le16 len; + u8 dbdc_idx; + u8 rsv[3]; +} __packed; + +struct mt7921_txpwr_event { + u8 ver; + u8 action; + __le16 len; + struct mt7921_txpwr txpwr; +} __packed; + #endif |