[luci] How to disable "802.11 PROTECTION" with LUCI ???

Jo-Philipp Wich xm at subsignal.org
Sat Jul 25 02:08:57 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bluse.

> On our Atheros hardware we use "Iiwpriv athx protmode 0" to disable the
> 802.11 protection.
> 
> What is the right UCI variable . I was not able to find it in the docu.

Hi. Propably it's not implemented at all in the underlying madwifi.sh
script that handles the wireless uci to bring up interfaces. Have you
grepped for this iwpriv setting in /lib/wifi/madwifi.sh ?

I it's not there and you'd like to implement it, then there are a couple
of places to change:

 1) the underlying madwifi.sh must handle a corresponding uci option
 2) the introduced uci option needs to be added to
    /lib/uci/schema/default/wireless
 3) the luci form needs an entry for it as well, look into
    /usr/lib/lua/luci/model/cbi/admin_network/wifi.lua for examples
 4) define language strings for it, this is only possible with the sdk
    in newer luci version since the target i18n files are binary now;
    it needs to be added to the po templates and at least the english
    variant of admin-core.po


> And I do also miss a Howto about where and how to extend the LUCI mapping of
> certain wireless driver functions.

Please take a look at wifi.lua, mentioned above and feel free to ask any
follow up questions here.


Regards,
~JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpqTRgACgkQdputYINPTPPL3ACfe0UWS74RyPrmskiOnRQmJKBR
P2kAn24LTyvVYj6aAYI5J0TpYNyux/jV
=V32Q
-----END PGP SIGNATURE-----


More information about the luci mailing list