mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: abort CCA when CSA is starting
When CSA countdown is going to start, carry UNI_BSS_INFO_BCN_BCC tag to abort any CCA countdown. Signed-off-by: StanleyYP Wang <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
3b11a23517
commit
cbafe36e86
@@ -2796,6 +2796,16 @@ mt7996_mcu_beacon_cntdwn(struct sk_buff *rskb, struct sk_buff *skb,
|
|||||||
|
|
||||||
info = (struct bss_bcn_cntdwn_tlv *)tlv;
|
info = (struct bss_bcn_cntdwn_tlv *)tlv;
|
||||||
info->cnt = skb->data[offs->cntdwn_counter_offs[0]];
|
info->cnt = skb->data[offs->cntdwn_counter_offs[0]];
|
||||||
|
|
||||||
|
/* abort the CCA countdown when starting CSA countdown */
|
||||||
|
if (csa) {
|
||||||
|
struct bss_bcn_cntdwn_tlv *cca_info;
|
||||||
|
|
||||||
|
tlv = mt7996_mcu_add_uni_tlv(rskb, UNI_BSS_INFO_BCN_BCC,
|
||||||
|
sizeof(*cca_info));
|
||||||
|
cca_info = (struct bss_bcn_cntdwn_tlv *)tlv;
|
||||||
|
cca_info->cca.abort = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
+10
-1
@@ -412,7 +412,16 @@ struct bss_bcn_cntdwn_tlv {
|
|||||||
__le16 tag;
|
__le16 tag;
|
||||||
__le16 len;
|
__le16 len;
|
||||||
u8 cnt;
|
u8 cnt;
|
||||||
u8 rsv[3];
|
union {
|
||||||
|
struct {
|
||||||
|
bool static_pp;
|
||||||
|
bool abort;
|
||||||
|
} csa;
|
||||||
|
struct {
|
||||||
|
bool abort;
|
||||||
|
} cca;
|
||||||
|
};
|
||||||
|
u8 rsv;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
struct bss_bcn_mbss_tlv {
|
struct bss_bcn_mbss_tlv {
|
||||||
|
|||||||
Reference in New Issue
Block a user