From bc2903ec4855c720c2dea174fba4e6d357070c20 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 5 Mar 2022 12:10:06 +0800 Subject: [PATCH] wlan-ap: fix mac80211 11b Signed-off-by: Jianhui Zhao --- .../netifd/patches/101-fix-mac80211-11b.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 files-wlan-ap/openwrt/package/network/config/netifd/patches/101-fix-mac80211-11b.patch diff --git a/files-wlan-ap/openwrt/package/network/config/netifd/patches/101-fix-mac80211-11b.patch b/files-wlan-ap/openwrt/package/network/config/netifd/patches/101-fix-mac80211-11b.patch new file mode 100644 index 0000000..da1dffc --- /dev/null +++ b/files-wlan-ap/openwrt/package/network/config/netifd/patches/101-fix-mac80211-11b.patch @@ -0,0 +1,15 @@ +Index: netifd-2021-10-20-c61a1d43/scripts/netifd-wireless.sh +=================================================================== +--- netifd-2021-10-20-c61a1d43.orig/scripts/netifd-wireless.sh ++++ netifd-2021-10-20-c61a1d43/scripts/netifd-wireless.sh +@@ -69,8 +69,8 @@ _wdev_prepare_channel() { + esac + + case "$band" in +- 2g) hwmode=g;; +- 5g|6g|60g) hwmode=a;; ++ 2g);; ++ 5g|6g|60g);; + *) + case "$hwmode" in + *a) band=5g;;