All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 07/12] station: set extended key capability
Date: Mon, 04 Oct 2021 09:48:57 -0700	[thread overview]
Message-ID: <20211004164902.2274318-7-prestwoj@gmail.com> (raw)
In-Reply-To: 20211004164902.2274318-1-prestwoj@gmail.com

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

If wiphy and the AP suppor it, set the Extended Key ID capability
bit in the RSN info and set the handshake to use it.
---
 src/station.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/station.c b/src/station.c
index f12cdde5..5605142d 100644
--- a/src/station.c
+++ b/src/station.c
@@ -1087,6 +1087,12 @@ build_ie:
 
 	info.ocvc = !disable_ocv;
 
+	/* Extended Key IDs can only be used if supported by both AP and STA */
+	if (wiphy_supports_ext_key_id(wiphy) && bss_info.extended_key_id) {
+		info.extended_key_id = true;
+		hs->ext_key_id_capable = true;
+	}
+
 	/* RSN takes priority */
 	if (bss->rsne) {
 		ap_ie = bss->rsne;
-- 
2.31.1

                 reply	other threads:[~2021-10-04 16:48 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=20211004164902.2274318-7-prestwoj@gmail.com \
    --to=unknown@example.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.