From a8d8e2b2509bcc2270b9a530afc518f4d55291b5 Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 20 Mar 2015 12:13:11 +0000 Subject: mac80211: fix 5ghz variable name Signed-off-by: Imre Kaloz git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44907 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/kernel/mac80211/files/lib') 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" -- cgit v1.2.3