Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 661af9cf authored by Vulupala Shashank Reddy's avatar Vulupala Shashank Reddy Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Fix FTM rx frames capture in packet capture mode

Currently the FTM rx frames are dropped in
tgt_mgmt_txrx_rx_frame_handler considering them as unspecified
packets as action category for FTM is not defined.

Define FTM action category so that the FTM frames will not be
considered as unspecified frames and dropped while processing.

Change-Id: Ieb3980978e38b3f826f42380e29798767c8f1fe2
CRs-Fixed: 3254409
parent 6bcffd57
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@ enum block_ack_actioncode {

/**
 * enum pub_actioncode - public action frames
 * Reference IEEE Std 802.11-2020 Table 9-364—Public Action field values
 * @PUB_ACTION_2040_BSS_COEXISTENCE:  public 20-40 bss coex action frame
 * @PUB_ACTION_EXT_CHANNEL_SWITCH_ID: public ext channel switch id action frame
 * @PUB_ACTION_VENDOR_SPECIFIC: vendor specific public action frame
@@ -214,6 +215,8 @@ enum block_ack_actioncode {
 * @PUB_ACTION_GAS_COMEBACK_REQUEST: GAS comeback request action frame
 * @PUB_ACTION_GAS_COMEBACK_RESPONSE: GAS comeback respose action frame
 * @PUB_ACTION_TDLS_DISCRESP: tdls discovery response public action frame
 * @PUB_ACTION_FTM_REQUEST: FTM request action frame
 * @PUB_ACTION_FTM_RESPONSE: FTM respose action frame
 */
enum pub_actioncode {
	PUB_ACTION_2040_BSS_COEXISTENCE = 0,
@@ -224,6 +227,8 @@ enum pub_actioncode {
	PUB_ACTION_GAS_COMEBACK_REQUEST = 12,
	PUB_ACTION_GAS_COMEBACK_RESPONSE = 13,
	PUB_ACTION_TDLS_DISCRESP = 14,
	PUB_ACTION_FTM_REQUEST = 32,
	PUB_ACTION_FTM_RESPONSE = 33,
};

/**
@@ -617,6 +622,8 @@ struct action_frm_hdr {
 * @MGMT_ACTION_TWT_SETUP: TWT setup frame
 * @MGMT_ACTION_TWT_TEARDOWN: TWT teardown frame
 * @MGMT_ACTION_TWT_INFORMATION: TWT information frame
 * @MGMT_ACTION_FTM_REQUEST: FTM request frame
 * @MGMT_ACTION_FTM_RESPONSE: FTM response frame
 * @MGMT_MAX_FRAME_TYPE:         max. mgmt frame types
 */
enum mgmt_frame_type {
@@ -745,6 +752,8 @@ enum mgmt_frame_type {
	MGMT_ACTION_TWT_SETUP,
	MGMT_ACTION_TWT_TEARDOWN,
	MGMT_ACTION_TWT_INFORMATION,
	MGMT_ACTION_FTM_REQUEST,
	MGMT_ACTION_FTM_RESPONSE,
	MGMT_MAX_FRAME_TYPE,
};

+6 −0
Original line number Diff line number Diff line
@@ -210,6 +210,12 @@ mgmt_get_public_action_subtype(uint8_t action_code)
	case PUB_ACTION_GAS_COMEBACK_RESPONSE:
		frm_type = MGMT_ACTION_GAS_COMEBACK_RESPONSE;
		break;
	case PUB_ACTION_FTM_REQUEST:
		frm_type = MGMT_ACTION_FTM_REQUEST;
		break;
	case PUB_ACTION_FTM_RESPONSE:
		frm_type = MGMT_ACTION_FTM_RESPONSE;
		break;
	default:
		frm_type = MGMT_FRM_UNSPECIFIED;
		break;