From 0d5ea34245433a403c3c6bb2b1f4070c92d02451 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Mon, 21 Nov 2022 13:48:43 +0100 Subject: nl80211: add "band" to iwinfo_freqlist_entry So that consumers don't have to fiddle around with mapping frequencies to bands, which everyone seems to do a little differently. Note: This changes the ABI. Signed-off-by: Andre Heider --- iwinfo_nl80211.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iwinfo_nl80211.c') diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 630fdbf..50caf01 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -3009,6 +3009,7 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg) freqs[NL80211_FREQUENCY_ATTR_DISABLED]) continue; + e->band = nl80211_get_band(band->nla_type); e->mhz = nla_get_u32(freqs[NL80211_FREQUENCY_ATTR_FREQ]); e->channel = nl80211_freq2channel(e->mhz); -- cgit v1.2.1