3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

nl80211util: parse TX power in frequency attributes

This commit is contained in:
James Prestwood 2022-12-30 14:12:15 -08:00 committed by Denis Kenzior
parent 76a94b4cc8
commit 71c921fb42

View File

@ -548,6 +548,9 @@ int nl80211_parse_supported_frequencies(struct l_genl_attr *band_freqs,
case NL80211_FREQUENCY_ATTR_NO_HE:
freq_attr.no_he = true;
break;
case NL80211_FREQUENCY_ATTR_MAX_TX_POWER:
freq_attr.tx_power = *((uint32_t *) data) / 100;
break;
}
}