Author: kaloz
Date: 2015-03-20 13:13:11 +0100 (Fri, 20 Mar 2015)
New Revision: 44907

Modified:
   trunk/package/kernel/mac80211/Makefile
   trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh
Log:
mac80211: fix 5ghz variable name

Signed-off-by: Imre Kaloz <[email protected]>



Modified: trunk/package/kernel/mac80211/Makefile
===================================================================
--- trunk/package/kernel/mac80211/Makefile      2015-03-20 11:47:16 UTC (rev 
44906)
+++ trunk/package/kernel/mac80211/Makefile      2015-03-20 12:13:11 UTC (rev 
44907)
@@ -11,7 +11,7 @@
 PKG_NAME:=mac80211
 
 PKG_VERSION:=2015-03-09
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
 PKG_BACKPORT_VERSION:=
 PKG_MD5SUM:=6d4b04e4ce8a1f54dabfb04f4709453c

Modified: trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh
===================================================================
--- trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh    2015-03-20 
11:47:16 UTC (rev 44906)
+++ trunk/package/kernel/mac80211/files/lib/wifi/mac80211.sh    2015-03-20 
12:13:11 UTC (rev 44907)
@@ -86,8 +86,8 @@
                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"
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to