diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-03-20 12:13:11 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-03-20 12:13:11 +0000 |
commit | 211a4484a1a992280129a2ad9874addf26fa5555 (patch) | |
tree | 78ab9370512a35aee3da382330e08ad9c256f0be /package/kernel/mac80211/files | |
parent | 8f91c80ea13abc5c66cee9f1b6d10d7b392dd16e (diff) | |
download | upstream-211a4484a1a992280129a2ad9874addf26fa5555.tar.gz upstream-211a4484a1a992280129a2ad9874addf26fa5555.tar.bz2 upstream-211a4484a1a992280129a2ad9874addf26fa5555.zip |
mac80211: fix 5ghz variable name
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 44907
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r-- | package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index ff0d467ab1..ea229d6c03 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -86,8 +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') - 5ghz_cap=$(iw phy "$dev" info | grep -c "Band 2") - [ "$vht_cap" -gt 0 -a "$5ghz_cap" -gt 0 ] && { + cap_5ghz=$(iw phy "$dev" info | grep -c "Band 2") + [ "$vht_cap" -gt 0 -a "$cap_5ghz" -gt 0 ] && { mode_band="a"; channel="36" htmode="VHT80" |