cli: fix marking the active channel
authorAndre Heider <a.heider@gmail.com>
Thu, 17 Nov 2022 20:59:46 +0000 (21:59 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Dec 2022 23:09:07 +0000 (00:09 +0100)
commitb1c8873e37d4a5cd6c0c2867a763b568b27eaa15
treeebb6f220a104a7ff5b579a0b6bd2090d4e1da99d
parent9e14e643c5e8bac2b8aeb4efb76cff3f86bf80ca
cli: fix marking the active channel

Match by frequency and not by channel as the radio might have the same
channel on multiple bands:

$ iwinfo radio0 freqlist
[snip]
* 2.432 GHz (Channel 5)
[snip]
* 5.975 GHz (Channel 5)
[snip]

Signed-off-by: Andre Heider <a.heider@gmail.com>
iwinfo_cli.c