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 | 7d1a6c7dfab1997c4276152088ca4a2c19fb3818 (patch) | |
tree | d80391600b7751d60d6e533f272f9059a43b26c4 /package/kernel/mac80211/files | |
parent | ee897f54a61cccc2240dc43fa96272819223cd5b (diff) | |
download | master-187ad058-7d1a6c7dfab1997c4276152088ca4a2c19fb3818.tar.gz master-187ad058-7d1a6c7dfab1997c4276152088ca4a2c19fb3818.tar.bz2 master-187ad058-7d1a6c7dfab1997c4276152088ca4a2c19fb3818.zip |
mac80211: when looking for VHT, check 5GHz support as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44906 3c298f89-4303-0410-b956-a3cf2f4a3e73
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" |