iwd.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH 3/4] nl80211util: parse TX power in frequency attributes
Date: Fri, 30 Dec 2022 14:12:15 -0800	[thread overview]
Message-ID: <20221230221216.2985011-3-prestwoj@gmail.com> (raw)
In-Reply-To: <20221230221216.2985011-1-prestwoj@gmail.com>

---
 src/nl80211util.c | 3 +++
 1 file changed, 3 insertions(+)

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


  parent reply	other threads:[~2022-12-30 22:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-30 22:12 [PATCH 1/4] wiphy: add wiphy_get_frequency_info_list James Prestwood
2022-12-30 22:12 ` [PATCH 2/4] band: add tx_power to frequency info attributes James Prestwood
2022-12-30 22:12 ` James Prestwood [this message]
2022-12-30 22:12 ` [PATCH 4/4] ap: support setting country IE James Prestwood
2023-01-03 15:19 ` [PATCH 1/4] wiphy: add wiphy_get_frequency_info_list Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221230221216.2985011-3-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).