From bb50ad7900b7bc2a4a0b3435ebfc47c0b6259eb8 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Thu, 11 Mar 2021 12:29:49 +0530 Subject: [PATCH] qcacmn: Add support to handle vendor specific protected action frame Host add support to handle action frames with category field ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED(vendor specific protected action frames). Change-Id: Iae105fe7c5c37438b29d9b2bc135961f795c5ab8 CRs-Fixed: 3262366 --- .../mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h | 5 ++++- .../mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/umac/cmn_services/mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h b/umac/cmn_services/mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h index 84b5b5285cbc..a21b81dc1ea1 100644 --- a/umac/cmn_services/mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h +++ b/umac/cmn_services/mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h @@ -530,7 +530,9 @@ struct action_frm_hdr { * @MGMT_ACTION_BA_ADDBA_RESPONSE: ADDBA response action frame * @MGMT_ACTION_BA_DELBA: DELBA action frame * @MGMT_ACTION_2040_BSS_COEXISTENCE: 20-40 bss coex action frame - * @MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC: category vendor spcific action frame + * @MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC: category vendor specific action frame + * @MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED: category vendor specific + * protected action frame * @MGMT_ACTION_EXT_CHANNEL_SWITCH_ID: ext channel switch id action frame * @MGMT_ACTION_VENDOR_SPECIFIC: vendor specific action frame * @MGMT_ACTION_TDLS_DISCRESP: TDLS discovery response frame @@ -657,6 +659,7 @@ enum mgmt_frame_type { MGMT_ACTION_BA_DELBA, MGMT_ACTION_2040_BSS_COEXISTENCE, MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC, + MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED, MGMT_ACTION_EXT_CHANNEL_SWITCH_ID, MGMT_ACTION_VENDOR_SPECIFIC, MGMT_ACTION_TDLS_DISCRESP, diff --git a/umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c b/umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c index 19e2cc3b5a26..da099001d44e 100644 --- a/umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c +++ b/umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c @@ -871,6 +871,9 @@ mgmt_txrx_get_action_frm_subtype(uint8_t *mpdu_data_ptr) case ACTION_CATEGORY_VENDOR_SPECIFIC: frm_type = MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC; break; + case ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED: + frm_type = MGMT_ACTION_CATEGORY_VENDOR_SPECIFIC_PROTECTED; + break; case ACTION_CATEGORY_FST: frm_type = mgmt_get_fst_action_subtype(action_hdr->action_code); break;