From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 2/6] scan: parse configurator connectivity element
Date: Mon, 29 Nov 2021 15:12:56 -0800 [thread overview]
Message-ID: <20211129231300.108873-2-prestwoj@gmail.com> (raw)
In-Reply-To: 20211129231300.108873-1-prestwoj@gmail.com
[-- Attachment #1: Type: text/plain, Size: 985 bytes --]
This element has no data and indicates the AP supports configuring
stations via DPP while also serving current stations.
---
src/scan.c | 3 +++
src/scan.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/scan.c b/src/scan.c
index 38a15c11..b602c8be 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -1097,6 +1097,9 @@ static void scan_parse_vendor_specific(struct scan_bss *bss, const void *data,
return;
}
+ if (is_ie_wfa_ie(data, len, IE_WFA_OI_CONFIGURATOR_CONNECTIVITY))
+ bss->dpp_configurator = true;
+
if (!ie_parse_network_cost(data, len, &cost_level, &cost_flags)) {
bss->cost_level = cost_level;
bss->cost_flags = cost_flags;
diff --git a/src/scan.h b/src/scan.h
index 2920a1d2..66e38410 100644
--- a/src/scan.h
+++ b/src/scan.h
@@ -90,6 +90,7 @@ struct scan_bss {
bool hs20_dgaf_disable : 1;
uint8_t cost_level : 3;
uint8_t cost_flags : 4;
+ bool dpp_configurator : 1;
};
struct scan_parameters {
--
2.31.1
reply other threads:[~2021-11-29 23:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20211129231300.108873-2-prestwoj@gmail.com \
--to=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