429223b99f
fec1aa6dfb mt76: update to the latest version 224fa47bf9 ramips: mark toggle input on EX6150 as a switch 3a05aa17db mac80211: Remove 357-mac80211-optimize-skb-resizing.patch 171d8bce0c ramips: remove factory image for TP-Link Archer C2 v1 2eb8444363 ath79: fix USB power GPIO for TP-Link TL-WR810N v1 d5a8e85878 wolfssl: Backport fix for CVE-2021-3336 cf5e5204d9 bcm63xx: sprom: override the PCI device ID 4465b44fc1 kernel: bump 4.14 to 4.14.219 4b9ade65ec bcm63xx: R5010UNv2: fix flash partitions for 16MB flash ab9cb390be hostapd: fix P2P group information processing vulnerability 1e90091c5d opkg: update to latest git HEAD of branch openwrt-19.07 312c05611b kernel: bump 4.14 to 4.14.218 3100649458 wolfssl: enable HAVE_SECRET_CALLBACK e9d2aa9dc6 wolfssl: Fix hostapd build with wolfssl 4.6.0 2044c01de8 wolfssl: Update to v4.6.0-stable 5ac0b2b431 mvebu: omnia: make initramfs image usable out of the box
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From: David Bauer <mail@david-bauer.net>
|
|
Date: Sat, 4 Jul 2020 13:20:02 +0200
|
|
Subject: mac80211: create channel list for fixed channel operation
|
|
|
|
Currently a device which has a DFS channel selected using the UCI
|
|
channel setting might switch to a non-DFS channel in case no chanlist is
|
|
provided (UCI setting "channels") when the radio detects a DFS event.
|
|
|
|
Automatically add a chanlist consisting of the configured channel when
|
|
the device does not operate in auto-channel mode and no chanlist set to
|
|
circumvent this issue.
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
|
|
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
|
|
index 36aebbb2ccfec2137d5d260fe2111d77f531ddec..367a3e8e37a8e8435c35ca2912ef0855efbdfc78 100644
|
|
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
|
|
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
|
|
@@ -100,6 +100,9 @@ mac80211_hostapd_setup_base() {
|
|
json_get_vars noscan ht_coex
|
|
json_get_values ht_capab_list ht_capab tx_burst
|
|
|
|
+ [ "$auto_channel" = 0 ] && [ -z "$channel_list" ] && \
|
|
+ channel_list="$channel"
|
|
+
|
|
set_default noscan 0
|
|
|
|
[ "$noscan" -gt 0 ] && hostapd_noscan=1
|