From f7e185e38c69ad9c77282b3749762aeba3f0a380 Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Mon, 5 Aug 2019 20:50:23 +0530 Subject: [PATCH] qcacld-3.0: WPA3 roam make preauth start command as wakable In WPA3 roam hybrid model, the SAE exchange/4-way handshake is offloaded to the wpa_supplicant. After roam candidate selection, firmware will send WMI_ROAM_PREAUTH_START_EVENTID to send SAE authentication frame with the selected candidate. If the host is in suspended state, then SAE preauthentication could fail. So wakeup the host when WMI_ROAM_PREAUTH_START_EVENTID event is received to carry out the SAE authentication with the provided candidate Change-Id: I7a89234e90e7fccef58ec3822dc0cda3740bad20 CRs-Fixed: 2512871 --- pmo/core/src/wlan_pmo_wow.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pmo/core/src/wlan_pmo_wow.c b/pmo/core/src/wlan_pmo_wow.c index 9564b06409..51cfffef4b 100644 --- a/pmo/core/src/wlan_pmo_wow.c +++ b/pmo/core/src/wlan_pmo_wow.c @@ -425,6 +425,13 @@ void pmo_set_sta_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size) pmo_set_wow_event_bitmap(WOW_NLO_SCAN_COMPLETE_EVENT, wow_bitmap_size, bitmask); + /* + * WPA3 roaming offloads SAE authentication to wpa_supplicant + * Firmware will send WMI_ROAM_PREAUTH_STATUS_CMDID + */ + pmo_set_wow_event_bitmap(WOW_ROAM_PREAUTH_START_EVENT, + wow_bitmap_size, + bitmask); } void pmo_set_sap_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size)