X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=package%2Fkernel%2Fmac80211%2Ffiles%2Flib%2Fwifi%2Fmac80211.sh;h=ff0d467ab15eb580423b050fc7b589b412e705da;hb=8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e;hp=a7c4d2dbc2bce08b95ee3f5bbaf86a6d01180a2f;hpb=ccaaab1c048159611e93a181dde740f49fa12483;p=oweals%2Fopenwrt.git diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index a7c4d2dbc2..ff0d467ab1 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -86,7 +86,8 @@ detect_mac80211() { iw phy "$dev" info | grep -q '2412 MHz' || { mode_band="a"; channel="36"; } vht_cap=$(iw phy "$dev" info | grep -c 'VHT Capabilities') - [ "$vht_cap" -gt 0 ] && { + 5ghz_cap=$(iw phy "$dev" info | grep -c "Band 2") + [ "$vht_cap" -gt 0 -a "$5ghz_cap" -gt 0 ] && { mode_band="a"; channel="36" htmode="VHT80"