utils: add and use iwinfo_format_hwmodes()
authorAndre Heider <a.heider@gmail.com>
Mon, 21 Nov 2022 16:27:20 +0000 (17:27 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Dec 2022 23:09:07 +0000 (00:09 +0100)
commit87529770f6494189f3f21252c3a83d708f1faacf
tree3b2b75161be1399760358228a3c6c82dba941c92
parent02f433e3052a5f2ee1c26c38a8beaf7a52fff645
utils: add and use iwinfo_format_hwmodes()

Unify how hwmodes are displayed, e.g.:
"802.11ac/ax/b/g/n" instead of "802.11bgnacax".

Luci currently uses a natural sort order, but that probably doesn't work
as intended once "be" is added, so let's do this here.

Signed-off-by: Andre Heider <a.heider@gmail.com>
include/iwinfo/utils.h
iwinfo_cli.c
iwinfo_utils.c