The "iw" code is quite straightforward I think.

I used it as an inspiration for my "nl80211_listener" plugin

Henning

On Thu, Jun 18, 2015 at 8:55 PM, Dave Taht <[email protected]> wrote:
> The "iw" package appears canonical, and BSD licensed, and uses
> nl80211.h (exported from the linux kernel, also BSD licensed), and
> it's 3 netlink calls to derive the channel and other info.
>
> http://pastebin.com/JXqcLNfX
>
> root@davedesk2:~# strace -f -v iw dev wlan0 info 2> netlink.txt
> Interface wlan0
> ifindex 13
> wdev 0x2
>
> addr 04:a1:51:a3:13:04
> ssid davedesk2-test
> type AP
> wiphy 0
> channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
>
> Regrettably I don't have time to poke into this further this month, I
> have musl breakages elsewhere (like snmp) to fix. Are we at a point
> where I could just file a bug somewhere?
>
> _______________________________________________
> Babel-users mailing list
> [email protected]
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Reply via email to