iwinfo: handle 802.11ac mode for lua
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Oct 2014 09:38:17 +0000 (09:38 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Oct 2014 09:38:17 +0000 (09:38 +0000)
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
SVN-Revision: 42757

package/network/utils/iwinfo/src/iwinfo_lua.c

index cdb90d5b4783bb3f95ce38a831204240a275fceb..3201af4f0110c98cb8ce9a03cd0d2c8673e8b19b 100644 (file)
@@ -499,6 +499,9 @@ static int iwinfo_L_hwmodelist(lua_State *L, int (*func)(const char *, int *))
                lua_pushboolean(L, hwmodes & IWINFO_80211_N);
                lua_setfield(L, -2, "n");
 
+               lua_pushboolean(L, hwmodes & IWINFO_80211_AC);
+               lua_setfield(L, -2, "ac");
+
                return 1;
        }