iwinfo: reuse infos provided by libiwinfo
authorAndre Heider <a.heider@gmail.com>
Tue, 22 Nov 2022 10:35:41 +0000 (11:35 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Dec 2022 23:22:03 +0000 (00:22 +0100)
commitc46ad61d49de411fc5bc64dd0bdd48518601487b
treea3e834261641abbcb32e6aaef0d722e9d59c283e
parent6c5e9003947a906611f814cb5204918d7bd3a85f
iwinfo: reuse infos provided by libiwinfo

Don't hardcode bit/name pairs, instead iterate over what's known to the
library and use that instead.

This automatically adds the missing ciphers CCMP256 and GCMP256 - and any
future ones.

The only difference in the output is the order of the 'hwmodes' array.

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