winfo: account noise for multiple radio from same wiphy
authorChristian Marangi <[email protected]>
Sun, 19 Oct 2025 11:17:55 +0000 (13:17 +0200)
committerChristian Marangi <[email protected]>
Sun, 19 Oct 2025 11:49:33 +0000 (13:49 +0200)
commit904f114548bac1e21f49f0bf1e16ebd8ac907885
tree5bc358b2ba281e46400c2a0d3fe48f4a8417415e
parent9cec6b4dd2df80d4c02bad322a5db14203a92cba
winfo: account noise for multiple radio from same wiphy

With the introduction of MLO, a wiphy might have multiple radio serving
it. The current code that parse the noise level use the IN_USE flag to
identify the affected radio but this changed with MLO as now multiple
radio can have IN_USE flag set.

This confuse the parsing as only the first radio is parsed with all the
other skipped, resulting in all the radio for the wiphy wrongly reporting
the noise of the first.

Rework the noise parsing logic to check if the frequency match the
current interface in addition to the IN_USE flag.

Suggested-by: Valeriy Kosikhin <[email protected]>
Tested-by: Aleksander Jan Bajkowski <[email protected]> # tested on Quantum W1700k
Co-developed-by: Valeriy Kosikhin <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
iwinfo_nl80211.c