projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5974c
)
mt76: mt7615: add passive mode for hw scan
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Thu, 30 Apr 2020 09:11:34 +0000
(11:11 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 12 May 2020 17:52:34 +0000
(19:52 +0200)
Introduce support for passive frequency scanning to mt7615_mcu_hw_scan
Tested-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
index f4e835f03b8dccfd4a5ed01dcb717c56f0a2e244..ae527b934926130bf393cb4b559177da3f323a86 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
@@
-2743,8
+2743,8
@@
int mt7615_mcu_hw_scan(struct mt7615_phy *phy, struct ieee80211_vif *vif,
req->seq_num = mvif->scan_seq_num | ext_phy << 7;
req->bss_idx = mvif->idx;
- req->scan_type =
1
;
- req->probe_req_num =
2
;
+ req->scan_type =
sreq->n_ssids ? 1 : 0
;
+ req->probe_req_num =
sreq->n_ssids ? 2 : 0
;
req->version = 1;
req->channel_type = 4;