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 this specific task is aggressive, I think that a good solution would be to move all the checks to try to calculate the band directly in the rpcd code since we have access to all the data from the driver.
Il giorno mar 10 nov 2020 alle ore 03:45 Michael Gray <michael.g...@lantisproject.com> ha scritto: > > 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/master/package/plugin-gargoyle-spectrum-analyser/files/full/www/js/spectrum_analyser.js > > -- Apologies if the format of the email is rubbish. I don't often > reply to the mailing list. > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel