From 7debbac825ca2a8ca1f5e0184fb123f067dd253b Mon Sep 17 00:00:00 2001 From: Srikanth Marepalli Date: Fri, 17 Jan 2020 17:22:54 +0530 Subject: [PATCH] qcacmn: Add support for pmkid generation fallback in FIPS mode Add support to fallback the PMKID generation from firmware to wpa_supplicant. Firmware fallbacks PMKID generation to host when FIPS enabled due to the crypto library availability limitation. Once the roam candidate selection is done in the firmware, it sends the WMI_ROAM_PMKID_REQUEST_EVENTID. Once this event is received, the host driver triggers an event to wpa_supplicant for PMKID generation. Change-Id: Ica00d27ce3f9f4a8f966261b38e238c389fcf05c CRs-Fixed: 2507617 --- wmi/inc/wmi_unified_param.h | 1 + wmi/src/wmi_unified_tlv.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 2456a2b1fd07..598a42c93929 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4539,6 +4539,7 @@ typedef enum { wmi_oem_data_event_id, wmi_mgmt_offload_data_event_id, wmi_pdev_multi_vdev_restart_response_event_id, + wmi_roam_pmkid_request_event_id, wmi_events_max, } wmi_conv_event_id; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 9cf0cedcc67e..964b919b5f35 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -13604,6 +13604,8 @@ static void populate_tlv_events_id(uint32_t *event_ids) WMI_VDEV_MGMT_OFFLOAD_EVENTID; event_ids[wmi_pdev_multi_vdev_restart_response_event_id] = WMI_PDEV_MULTIPLE_VDEV_RESTART_RESP_EVENTID; + event_ids[wmi_roam_pmkid_request_event_id] = + WMI_ROAM_PMKID_REQUEST_EVENTID; } /**