46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 21271c00b29db8c178aa704daaf665967e141d47 Mon Sep 17 00:00:00 2001
|
|
From: Chung-Hsien Hsu <stanley.hsu@cypress.com>
|
|
Date: Tue, 29 Oct 2019 15:55:21 +0800
|
|
Subject: [PATCH 03/60] nl80211: Report connection authorized in EVENT_ASSOC
|
|
|
|
When roaming in a network that requires 802.1X authentication, device
|
|
driver could set the authorized flag if 4-way handshake offload or FT
|
|
offload is considered.
|
|
|
|
This patch enables the report of connection authorized in EVENT_ASSOC to
|
|
indicate the requirement of 802.1X authentication.
|
|
|
|
Upstream-Status: Inappropriate [DEY specific]
|
|
|
|
Signed-off-by: Chung-Hsien Hsu <chung-hsien.hsu@infineon.com>
|
|
---
|
|
src/drivers/driver_nl80211_event.c | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c
|
|
index 0f0a01d01..fe91fff90 100644
|
|
--- a/src/drivers/driver_nl80211_event.c
|
|
+++ b/src/drivers/driver_nl80211_event.c
|
|
@@ -557,7 +557,7 @@ static void mlme_event_connect(struct wpa_driver_nl80211_data *drv,
|
|
wpa_ssid_txt(drv->ssid, drv->ssid_len));
|
|
}
|
|
|
|
- if (authorized && nla_get_u8(authorized)) {
|
|
+ if (authorized && nla_get_flag(authorized)) {
|
|
event.assoc_info.authorized = 1;
|
|
wpa_printf(MSG_DEBUG, "nl80211: connection authorized");
|
|
}
|
|
@@ -2988,7 +2988,8 @@ static void do_process_drv_event(struct i802_bss *bss, int cmd,
|
|
tb[NL80211_ATTR_RESP_IE],
|
|
tb[NL80211_ATTR_TIMED_OUT],
|
|
tb[NL80211_ATTR_TIMEOUT_REASON],
|
|
- NULL, NULL, NULL,
|
|
+ tb[NL80211_ATTR_PORT_AUTHORIZED],
|
|
+ NULL, NULL,
|
|
tb[NL80211_ATTR_FILS_KEK],
|
|
NULL,
|
|
tb[NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM],
|
|
--
|
|
2.17.1
|
|
|