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
1 changed files with 3 additions and 0 deletions

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;
}
}