Thx for the link. From a quick review you confirmed my fear. In the
link the channel width is indirectly parsed by checking specific value
from the wifi (upper or lower channel presence) (vht band for 5ghz). I
think that the best way to implement this is using ubus. Since
changing mac80211 code for
Using iw scan?
We've done this in the spectrum analyser plugin in Gargoyle [1].
It's not what i would call reliable though as iw itself specifically
says not to screen scrape the data. That being said, it has worked for
several years now.
[1] -
https://github.com/ericpaulbishop/gargoyle/blob/mast