| From 46b59b82069d155792fb89c7160bcd7a32371c15 Mon Sep 17 00:00:00 2001 |
| From: MeiChia Chiu <meichia.chiu@mediatek.com> |
| Date: Thu, 23 Mar 2023 09:55:50 +0800 |
| Subject: [PATCH 1005/1034] wifi: mt76: mt7915: add support for runtime set |
| in-band discovery |
| |
| Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| --- |
| mt7915/mcu.c | 5 ++--- |
| 1 file changed, 2 insertions(+), 3 deletions(-) |
| |
| diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
| index 929f9bb..d5420cb 100644 |
| --- a/mt7915/mcu.c |
| +++ b/mt7915/mcu.c |
| @@ -1937,8 +1937,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 && |
| @@ -1972,7 +1971,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); |
| |
| -- |
| 2.18.0 |
| |