diff mbox series

[3/4] nl80211util: parse TX power in frequency attributes

Message ID 20221230221216.2985011-3-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/4] wiphy: add wiphy_get_frequency_info_list | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Dec. 30, 2022, 10:12 p.m. UTC
---
 src/nl80211util.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/src/nl80211util.c b/src/nl80211util.c
index 400871fd..8cc3ea39 100644
--- a/src/nl80211util.c
+++ b/src/nl80211util.c
@@ -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;
 			}
 		}