developer | 12a4279 | 2023-07-29 05:30:55 +0800 | [diff] [blame] | 1 | From 7bdcc2459ed7faf08e71d6a4f3d7ce5bcf4fb36a Mon Sep 17 00:00:00 2001 |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 2 | From: MeiChia Chiu <meichia.chiu@mediatek.com> |
developer | ab64661 | 2023-03-17 10:43:23 +0800 | [diff] [blame] | 3 | Date: Thu, 23 Mar 2023 09:55:50 +0800 |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 4 | Subject: [PATCH 1005/1034] wifi: mt76: mt7915: add support for runtime set |
developer | c923344 | 2023-04-04 06:06:17 +0800 | [diff] [blame] | 5 | in-band discovery |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 8 | --- |
developer | 5ce5ea4 | 2022-08-31 14:12:29 +0800 | [diff] [blame] | 9 | mt7915/mcu.c | 5 ++--- |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 10 | 1 file changed, 2 insertions(+), 3 deletions(-) |
| 11 | |
| 12 | diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 13 | index 929f9bb..d5420cb 100644 |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 14 | --- a/mt7915/mcu.c |
| 15 | +++ b/mt7915/mcu.c |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 16 | @@ -1937,8 +1937,7 @@ mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif, |
developer | ab64661 | 2023-03-17 10:43:23 +0800 | [diff] [blame] | 17 | bcn = (struct bss_info_bcn *)tlv; |
| 18 | bcn->enable = true; |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 19 | |
| 20 | - if (changed & BSS_CHANGED_FILS_DISCOVERY && |
| 21 | - vif->bss_conf.fils_discovery.max_interval) { |
| 22 | + if (changed & BSS_CHANGED_FILS_DISCOVERY) { |
| 23 | interval = vif->bss_conf.fils_discovery.max_interval; |
| 24 | skb = ieee80211_get_fils_discovery_tmpl(hw, vif); |
| 25 | } else if (changed & BSS_CHANGED_UNSOL_BCAST_PROBE_RESP && |
developer | 8f0d89b | 2023-07-28 07:16:44 +0800 | [diff] [blame] | 26 | @@ -1972,7 +1971,7 @@ mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif, |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 27 | discov->tx_type = !!(changed & BSS_CHANGED_FILS_DISCOVERY); |
| 28 | discov->tx_interval = interval; |
| 29 | discov->prob_rsp_len = cpu_to_le16(MT_TXD_SIZE + skb->len); |
| 30 | - discov->enable = true; |
| 31 | + discov->enable = !!(interval); |
| 32 | |
developer | ab64661 | 2023-03-17 10:43:23 +0800 | [diff] [blame] | 33 | buf = (u8 *)sub_tlv + sizeof(*discov); |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 34 | |
| 35 | -- |
developer | 2324aa2 | 2023-04-12 11:30:15 +0800 | [diff] [blame] | 36 | 2.18.0 |
developer | 3797e1e | 2022-05-23 17:13:14 +0800 | [diff] [blame] | 37 | |