projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635cb01
)
mt76: mt7615: set hw scan limits only for firmware with offload support
author
Felix Fietkau
<nbd@nbd.name>
Wed, 8 Apr 2020 16:10:35 +0000
(18:10 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 12 May 2020 17:52:30 +0000
(19:52 +0200)
They do not apply to software scan
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/init.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/init.c
b/drivers/net/wireless/mediatek/mt76/mt7615/init.c
index 7f3683205b8e200ab95c7af47adb1f343af32d8e..96b7c6284833b498e9ba30b440afec530097372a 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/init.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/init.c
@@
-145,10
+145,19
@@
static void mt7615_init_work(struct work_struct *work)
mt7615_mcu_del_wtbl_all(dev);
if (!mt7615_firmware_offload(dev)) {
+ struct wiphy *wiphy = mt76_hw(dev)->wiphy;
+
dev->ops->hw_scan = NULL;
dev->ops->cancel_hw_scan = NULL;
dev->ops->sched_scan_start = NULL;
dev->ops->sched_scan_stop = NULL;
+
+ wiphy->max_sched_scan_plan_interval = 0;
+ wiphy->max_sched_scan_ie_len = 0;
+ wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
+ wiphy->max_sched_scan_ssids = 0;
+ wiphy->max_match_sets = 0;
+ wiphy->max_sched_scan_reqs = 0;
}
}