mt76: mt7921: add delay config for sched scan
Add a delay parameter for firmware to support delay scheduled scan. Signed-off-by: Deren Wu <deren.wu@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
a6fdbdd1ac
commit
b94c0ed609
@ -1588,8 +1588,10 @@ int mt76_connac_mcu_sched_scan_req(struct mt76_phy *phy,
|
||||
get_random_mask_addr(addr, sreq->mac_addr,
|
||||
sreq->mac_addr_mask);
|
||||
}
|
||||
if (is_mt7921(phy->dev))
|
||||
if (is_mt7921(phy->dev)) {
|
||||
req->mt7921.bss_idx = mvif->idx;
|
||||
req->mt7921.delay = cpu_to_le32(sreq->delay);
|
||||
}
|
||||
|
||||
req->ssids_num = sreq->n_ssids;
|
||||
for (i = 0; i < req->ssids_num; i++) {
|
||||
|
@ -818,7 +818,9 @@ struct mt76_connac_sched_scan_req {
|
||||
} mt7663;
|
||||
struct {
|
||||
u8 bss_idx;
|
||||
u8 pad2[19];
|
||||
u8 pad1[3];
|
||||
__le32 delay;
|
||||
u8 pad2[12];
|
||||
u8 random_mac[ETH_ALEN];
|
||||
u8 pad3[38];
|
||||
} mt7921;
|
||||
|
Loading…
x
Reference in New Issue
Block a user