aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files
diff options
context:
space:
mode:
authorGary Cooper <gaco@bitmessage.de>2021-01-04 20:27:49 +0300
committerDaniel Golle <daniel@makrotopia.org>2021-01-05 02:16:24 +0000
commitd140d18990ca3c45c558a3e158ad7c4e90b32a52 (patch)
tree27fb793c9e1ae91a02e5060aa1b20d20368d1dfb /package/kernel/mac80211/files
parentf246dfde3386ed4447afe080265ec75440ed5485 (diff)
downloadupstream-d140d18990ca3c45c558a3e158ad7c4e90b32a52.tar.gz
upstream-d140d18990ca3c45c558a3e158ad7c4e90b32a52.tar.bz2
upstream-d140d18990ca3c45c558a3e158ad7c4e90b32a52.zip
mac80211: add 802.11ad-support
This adds logic to properly populate defaults in /etc/config/wireless. Signed-off-by: Gary Cooper <gaco@bitmessage.de>
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r--package/kernel/mac80211/files/lib/wifi/mac80211.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index c0fbfbe5a8..3e99f06693 100644
--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@ -88,6 +88,12 @@ detect_mac80211() {
iw phy "$dev" info | grep -q 'VHT Capabilities' && htmode="VHT80"
}
+ iw phy "$dev" info | grep -q '\* 5.... MHz \[' && {
+ mode_band="ad"
+ channel=$(iw phy "$dev" info | grep '\* 5.... MHz \[' | grep '(disabled)' -v -m 1 | sed 's/[^[]*\[\|\|\].*//g')
+ iw phy "$dev" info | grep -q 'Capabilities:' && htmode="HT20"
+ }
+
[ -n "$htmode" ] && ht_capab="set wireless.radio${devidx}.htmode=$htmode"
path="$(mac80211_phy_to_path "$dev")"