diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-03-20 11:47:16 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-03-20 11:47:16 +0000 |
commit | 8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e (patch) | |
tree | 8a08a4597091169b986a4ea40e4da91908cc637b /package/kernel/mac80211/files | |
parent | ccaaab1c048159611e93a181dde740f49fa12483 (diff) | |
download | upstream-8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e.tar.gz upstream-8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e.tar.bz2 upstream-8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e.zip |
mac80211: when looking for VHT, check 5GHz support as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 44906
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r-- | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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" |