From 1ec6c46a1dc10d487b31c7585be5b2ccf180a944 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 8 Oct 2021 11:07:24 -0700 Subject: [PATCH] station: set extended key capability If wiphy and the AP suppor it, set the Extended Key ID capability bit in the RSN info. --- src/station.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/station.c b/src/station.c index f12cdde5..30335170 100644 --- a/src/station.c +++ b/src/station.c @@ -1087,6 +1087,10 @@ 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; + /* RSN takes priority */ if (bss->rsne) { ap_ie = bss->rsne;