#17323: Add 801.11ac support to luci UI
--------------------------+----------------------
  Reporter:  anatolik     |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  luci         |    Version:  Trunk
Resolution:               |   Keywords:  802.11ac
--------------------------+----------------------

Comment (by anatolik):

 I am a newbe to openwrt sources but I spotted several places:

 openwrt should add AC to hwmodelist

 {{{
 diff --git a/package/network/utils/iwinfo/src/iwinfo_lua.c
 b/package/network/utils/iwinfo/src/iwinfo_lua.c
 index 9b7d655..b5842b2 100644
 --- a/package/network/utils/iwinfo/src/iwinfo_lua.c
 +++ b/package/network/utils/iwinfo/src/iwinfo_lua.c
 @@ -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;
         }
  }}}


 luci itself should add "ac" to several places, like this (?? not sure
 about the second case)

 {{{
 diff --git a/modules/admin-
 full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-
 full/luasrc/view/admin_network/wifi_overview.htm
 index 97d900d..1d1eaa8 100644
 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
 +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm
 @@ -36,6 +36,8 @@ You may obtain a copy of the License at
                                 if bl.b then bands = bands .. "b" end
                                 if bl.g then bands = bands .. "g" end
                                 if bl.n then bands = bands .. "n" end
 +                               if bl.ac then bands = bands .. "ac" end
 +
                         end

                         local hw = dev.iwinfo.hardware_name
 diff --git a/modules/base/luasrc/model/network.lua
 b/modules/base/luasrc/model/network.lua
 index a409621..d504a03 100644
 --- a/modules/base/luasrc/model/network.lua
 +++ b/modules/base/luasrc/model/network.lua
 @@ -1274,6 +1274,7 @@ function wifidev.get_i18n(self)
         if l.b then m = m .. "b" end
         if l.g then m = m .. "g" end
         if l.n then m = m .. "n" end
 +       if l.ac then m = m .. "ac" end

         return "%s 802.11%s Wireless Controller (%s)" %{ t, m, self:name()
 }
  end
 }}}



 Anyway it would be really great if somebody who has more experience with
 OpenWRT look at this issue. I'll be glad to test it and provide feedback.

--
Ticket URL: <https://dev.openwrt.org/ticket/17323#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to