Values available from WiFi network ?

In looking at the 'pretty-wifi-info.lua' there a number of different values to grab from the network interface (e.g active_mode(), active_ssid(), signal_percent(), etc.). Is there documentation for which parameters are available from this interface, in particular I would be interested in the receive signal strength (in dBm) if available. I have googled for it without success.

I see that the signal strength is available in LuCi, but I have not been able to locate the source code to see how it is done.

Does this help?

http://luci.subsignal.org/trac/browser/luci/trunk/contrib/package/iwinfo/src/iwinfo_nl80211.c?rev=8038

Ralf

Thanks Ralf,

It does help pointing me in the right direction, but it seems that iwinfo is no longer part of the trunk, so it must be done some other way now. But it gives me something to play with.

bjarne: Thanks Ralf,

It does help pointing me in the right direction, but it seems that iwinfo is no longer part of the trunk, so it must be done some other way now. But it gives me something to play with.

Yeah, saw that but I thought it might give you a push into the right direction, don't have too much time to check more closely myself, fighting with a firewall at a client probably for the rest of the weekend, so will be online/offline all the time...

Ralf

By searching the trunk of LuCi I found the functions I needed here:

http://luci.subsignal.org/trac/browser/luci/trunk/libs/core/luasrc/model/network.lua

bjarne: By searching the trunk of LuCi I found the functions I needed here:

http://luci.subsignal.org/trac/browser/luci/trunk/libs/core/luasrc/model/network.lua

Thanks for posting back, this might come in handy for others as well...

Ralf