[luci] Three issues

Erich N. Pekarek erich at pekarek.at
Fri Apr 25 01:07:30 CEST 2014


Hi Jow!
Am 2014-04-25 01:11, schrieb Jo-Philipp Wich:
> Hi Erich.
>> I recently created a ticket regarding a missing option in luci, but I
>> could not yet review it on the luci.subsignal.org-Trac.
>> Was there an error while submitting it? It was about "option htmode
>> 'NOHT'" including a patch description.
> I'd love to add this change but am unclear on the details, could you
> send me a proper patch that I can apply to the current tree?
Well, it is one line only starting on line 204 of 
/usr/lib/lua/luci/model/cbi/admin_network/wifi.lua
I patched it one of my routers, which is probably a bit (r44004) out of 
sync with the trunk:

  htmode = s:taboption("advanced", ListValue, "htmode", translate(
...
*htmode:value("NOHT", translate("Greenfield mode: off"))*

I'll try to "git" it as described.
>> I'd like to get feedback, on why this option is missing?!
> There is no particular reason that it is mising, afair that choice
> simply was not present when implementing the wifi config a few years ago.
Ok, I can live with that explanation. :)
>> Issue two:
>> While submitting the ticket, the captcha was repeatedly invalid.
>> You may like to add
>>
>>     [recaptcha]
>>     ...
>>     /require_javascript = True /
> I added it to the trac config, let me know if the issue persists.
Sure, thanks! Brace for test tickets ;)
BTW: How to apply for an account there?
>> Issue three:
>> I'd like to submit some more patches regarding missing functionality -
>> such as: rsn preauthentication and WPA group key renewal; antenna
>> selection: still necessary especially on TL-WR1043ND in our wireless
>> community and probably other things.
>> Where shall I submit them?
> Best is if you can git-send-email them to this list, if this is no
> option for you then attachments of .patch files are fine as well.
>
> You can find a git mirror of LuCI at
>    http://git.openwrt.org/?p=project/luci.git
Ok, that will do fine, I think.

I came across some other issues, which I am not sure where to address 
them to:

1. rsn_preauth - netifd: an unset variable "$bridge instead of 
$network_bridge is being checked - resulting in auth_cache being 0 always.
Changing that will activate rsn_preauth on all interfaces, ... even 
those not configured for radius. I am looking for a more detailed 
documentation of netifd.

2. Transmit power settings (more OpenWRT basics, than LuCI's):
a) Ath9k ought to be accepting negative values until -5dB(m) (according 
to a post by Adrian Chadd in 2011; with some "unless ..."). I don't seem 
to be able to set values below 100mB(m) with iw, which netifd relies on. 
Is this to be forwarded to linux wireless or is this a known issue with 
ath9k on certain devices? (Trying this on e.g. a NanoStation M5 Loco).

b) iwinfo wlan0 txpowerlist shows no negative values neither on TP-LINK 
TL-WR1043ND v1 and v2, nor on Ubnt NSM5L. Where does iwinfo, which feeds 
this info to netifd, if a read the source correctly, get these values 
from - firmware or driver?

c) I seem to be unable to set values below 5dB or 3dB respectively, 
effectively on those devices. Are there some offsets and why?

3. In order to get the amount of "Available Antennas", what would be the 
most appropriate and reliable way?
     a) iw list  | grep "Available Antennas:"
     b) grep "X Mask" /sys/kernel/debug/ieee80211/phy0/ath9k/base_eeprom 
(compiled without debugfs: certainly fails)
     c) ?

I guess you can help, since you are certainly more familiar with the 
code, than me.
Thanks in advance!
> Bst wishes,
> Jow
Thank you, same to you!
Regards
Erich
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20140425/70760b9d/attachment.html>


More information about the luci mailing list