Browse Source

qcacmn: Add support for vendor specific dual protected action frame

Currently, driver does not handle dual protected public(9) action
frame having vendor specific(9) action ID and it drops these
frames.

So, to allow these frame, add enum and check in the target if
layer.

Change-Id: I15d6fefaa794c5a6a3993c2ae013f362bc310eba
CRs-Fixed: 3844645
Rahul Gusain 1 năm trước cách đây
mục cha
commit
c6727cbd55

+ 2 - 0
umac/cmn_services/mgmt_txrx/dispatcher/inc/wlan_mgmt_txrx_utils_api.h

@@ -327,12 +327,14 @@ enum sa_query_action {
 
 /**
  * enum protected_dual_actioncode - protected dual action frames
+ * @PDPA_ACTION_VENDOR_SPECIFIC: PDPA action vendor specific frame
  * @PDPA_GAS_INIT_REQ: pdpa gas init request frame
  * @PDPA_GAS_INIT_RSP: pdpa gas init response frame
  * @PDPA_GAS_COMEBACK_REQ: pdpa gas comeback request frame
  * @PDPA_GAS_COMEBACK_RSP: pdpa gas comeback response frame
  */
 enum protected_dual_actioncode {
+	PDPA_ACTION_VENDOR_SPECIFIC = 9,
 	PDPA_GAS_INIT_REQ = 10,
 	PDPA_GAS_INIT_RSP = 11,
 	PDPA_GAS_COMEBACK_REQ = 12,

+ 3 - 0
umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c

@@ -387,6 +387,9 @@ mgmt_get_pdpa_action_subtype(uint8_t action_code)
 	enum mgmt_frame_type frm_type;
 
 	switch (action_code) {
+	case PDPA_ACTION_VENDOR_SPECIFIC:
+		frm_type = MGMT_ACTION_VENDOR_SPECIFIC;
+		break;
 	case PDPA_GAS_INIT_REQ:
 		frm_type = MGMT_ACTION_PDPA_GAS_INIT_REQ;
 		break;