mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7915: add support for disabling in-band discovery
Send an update to the MCU whenever the settings change Signed-off-by: MeiChia Chiu <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2330781b8c
commit
e5fb6995e7
+2
-3
@@ -1919,8 +1919,7 @@ mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif,
|
||||
bcn = (struct bss_info_bcn *)tlv;
|
||||
bcn->enable = true;
|
||||
|
||||
if (changed & BSS_CHANGED_FILS_DISCOVERY &&
|
||||
vif->bss_conf.fils_discovery.max_interval) {
|
||||
if (changed & BSS_CHANGED_FILS_DISCOVERY) {
|
||||
interval = vif->bss_conf.fils_discovery.max_interval;
|
||||
skb = ieee80211_get_fils_discovery_tmpl(hw, vif);
|
||||
} else if (changed & BSS_CHANGED_UNSOL_BCAST_PROBE_RESP &&
|
||||
@@ -1957,7 +1956,7 @@ mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif,
|
||||
discov->tx_type = !!(changed & BSS_CHANGED_FILS_DISCOVERY);
|
||||
discov->tx_interval = interval;
|
||||
discov->prob_rsp_len = cpu_to_le16(MT_TXD_SIZE + skb->len);
|
||||
discov->enable = true;
|
||||
discov->enable = !!interval;
|
||||
|
||||
buf = (u8 *)sub_tlv + sizeof(*discov);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user