mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921: cqm rssi low/high event notify
The implementation amounts to setting the driver flag IEEE80211_VIF_SUPPORTS_CQM_RSSI, and then providing mechanisms for continuously updating enough information to be able to provide notifications to userspace when RSSI drops below a certain threshold Signed-off-by: Rong Yan <[email protected]> Signed-off-by: Ming Yen Hsieh <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -1011,6 +1011,7 @@ enum {
|
||||
MCU_EVENT_CH_PRIVILEGE = 0x18,
|
||||
MCU_EVENT_SCHED_SCAN_DONE = 0x23,
|
||||
MCU_EVENT_DBG_MSG = 0x27,
|
||||
MCU_EVENT_RSSI_NOTIFY = 0x96,
|
||||
MCU_EVENT_TXPWR = 0xd0,
|
||||
MCU_EVENT_EXT = 0xed,
|
||||
MCU_EVENT_RESTART_DL = 0xef,
|
||||
@@ -1311,6 +1312,7 @@ enum {
|
||||
MCU_CE_CMD_SCHED_SCAN_ENABLE = 0x61,
|
||||
MCU_CE_CMD_SCHED_SCAN_REQ = 0x62,
|
||||
MCU_CE_CMD_GET_NIC_CAPAB = 0x8a,
|
||||
MCU_CE_CMD_RSSI_MONITOR = 0xa1,
|
||||
MCU_CE_CMD_SET_MU_EDCA_PARMS = 0xb0,
|
||||
MCU_CE_CMD_REG_WRITE = 0xc0,
|
||||
MCU_CE_CMD_REG_READ = 0xc0,
|
||||
@@ -1456,6 +1458,10 @@ struct mt76_connac_beacon_loss_event {
|
||||
u8 pad[2];
|
||||
} __packed;
|
||||
|
||||
struct mt76_connac_rssi_notify_event {
|
||||
s32 rssi[4];
|
||||
} __packed;
|
||||
|
||||
struct mt76_connac_mcu_bss_event {
|
||||
u8 bss_idx;
|
||||
u8 is_absent;
|
||||
|
||||
Reference in New Issue
Block a user