qcacld-3.0: Replace SIR_MAC_ACTION_* macros with ACTION_CATEGORY_*

Replace SIR_MAC_ACTION_* macros with converged ACTION_CATEGORY_*.

Change-Id: I53eb7f02ca9e271116198d40b0e98163cc0331b8
CRs-Fixed: 2457795
This commit is contained in:
Srinivas Girigowda
2019-05-17 16:33:30 -07:00
committed by nshrivas
parent d3c98d0159
commit 48bec1c925
6 changed files with 52 additions and 75 deletions

View File

@@ -100,29 +100,6 @@
#define SIR_MAC_MGMT_ACTION 0xD #define SIR_MAC_MGMT_ACTION 0xD
#define SIR_MAC_MGMT_RESERVED15 0xF #define SIR_MAC_MGMT_RESERVED15 0xF
/* Action frame categories */
#define SIR_MAC_ACTION_SPECTRUM_MGMT 0
#define SIR_MAC_ACTION_QOS_MGMT 1
#define SIR_MAC_ACTION_DLP 2
#define SIR_MAC_ACTION_BLKACK 3
#define SIR_MAC_ACTION_PUBLIC_USAGE 4
#define SIR_MAC_ACTION_RRM 5
#define SIR_MAC_ACTION_FAST_BSS_TRNST 6
#define SIR_MAC_ACTION_HT 7
#define SIR_MAC_ACTION_SA_QUERY 8
#define SIR_MAC_ACTION_PROT_DUAL_PUB 9
#define SIR_MAC_ACTION_WNM 10
#define SIR_MAC_ACTION_UNPROT_WNM 11
#define SIR_MAC_ACTION_TDLS 12
#define SIR_MAC_ACITON_MESH 13
#define SIR_MAC_ACTION_MHF 14
#define SIR_MAC_SELF_PROTECTED 15
#define SIR_MAC_ACTION_WME 17
#define SIR_MAC_ACTION_FST 18
#define SIR_MAC_ACTION_VHT 21
#define SIR_MAC_ACTION_MAX 256
#define SIR_MAC_ACTION_TX 1 #define SIR_MAC_ACTION_TX 1
#define SIR_MAC_ACTION_RX 2 #define SIR_MAC_ACTION_RX 2

View File

@@ -1807,7 +1807,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
#endif #endif
switch (action_hdr->category) { switch (action_hdr->category) {
case SIR_MAC_ACTION_QOS_MGMT: case ACTION_CATEGORY_QOS:
if ((session->limQosEnabled) || if ((session->limQosEnabled) ||
(action_hdr->actionID == SIR_MAC_QOS_MAP_CONFIGURE)) { (action_hdr->actionID == SIR_MAC_QOS_MAP_CONFIGURE)) {
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -1843,7 +1843,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
case SIR_MAC_ACTION_SPECTRUM_MGMT: case ACTION_CATEGORY_SPECTRUM_MGMT:
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
#ifdef ANI_SUPPORT_11H #ifdef ANI_SUPPORT_11H
case SIR_MAC_ACTION_MEASURE_REQUEST_ID: case SIR_MAC_ACTION_MEASURE_REQUEST_ID:
@@ -1872,7 +1872,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
case SIR_MAC_ACTION_WME: case ACTION_CATEGORY_WMM:
if (!session->limWmeEnabled) { if (!session->limWmeEnabled) {
pe_warn("WME mode disabled - dropping frame: %d", pe_warn("WME mode disabled - dropping frame: %d",
action_hdr->actionID); action_hdr->actionID);
@@ -1906,7 +1906,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
case SIR_MAC_ACTION_HT: case ACTION_CATEGORY_HT:
/** Type of HT Action to be performed*/ /** Type of HT Action to be performed*/
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
case SIR_MAC_SM_POWER_SAVE: case SIR_MAC_SM_POWER_SAVE:
@@ -1922,7 +1922,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
case SIR_MAC_ACTION_WNM: case ACTION_CATEGORY_WNM:
pe_debug("WNM Action category: %d action: %d", pe_debug("WNM Action category: %d action: %d",
action_hdr->category, action_hdr->actionID); action_hdr->category, action_hdr->actionID);
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -1949,7 +1949,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
case SIR_MAC_ACTION_RRM: case ACTION_CATEGORY_RRM:
/* Ignore RRM measurement request until DHCP is set */ /* Ignore RRM measurement request until DHCP is set */
if (mac_ctx->rrm.rrmPEContext.rrmEnable && if (mac_ctx->rrm.rrmPEContext.rrmEnable &&
mac_ctx->roam.roamSession mac_ctx->roam.roamSession
@@ -2044,7 +2044,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
GET_LIM_SYSTEM_ROLE(session)); GET_LIM_SYSTEM_ROLE(session));
} }
break; break;
case SIR_MAC_ACTION_PUBLIC_USAGE: case ACTION_CATEGORY_PUBLIC:
mac_hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info); mac_hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info);
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -2099,7 +2099,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
break; break;
#ifdef WLAN_FEATURE_11W #ifdef WLAN_FEATURE_11W
case SIR_MAC_ACTION_SA_QUERY: case ACTION_CATEGORY_SA_QUERY:
pe_debug("SA Query Action category: %d action: %d", pe_debug("SA Query Action category: %d action: %d",
action_hdr->category, action_hdr->actionID); action_hdr->category, action_hdr->actionID);
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -2122,7 +2122,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
} }
break; break;
#endif #endif
case SIR_MAC_ACTION_VHT: case ACTION_CATEGORY_VHT:
if (!session->vhtCapability) if (!session->vhtCapability)
break; break;
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -2140,7 +2140,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
break; break;
} }
break; break;
case SIR_MAC_ACTION_FST: { case ACTION_CATEGORY_FST: {
tpSirMacMgmtHdr hdr; tpSirMacMgmtHdr hdr;
hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info); hdr = WMA_GET_RX_MAC_HEADER(rx_pkt_info);
@@ -2157,7 +2157,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
rx_pkt_info), RXMGMT_FLAG_NONE); rx_pkt_info), RXMGMT_FLAG_NONE);
break; break;
} }
case SIR_MAC_ACTION_PROT_DUAL_PUB: case ACTION_CATEGORY_PROTECTED_DUAL_OF_PUBLIC_ACTION:
pe_debug("Rcvd Protected Dual of Public Action: %d", pe_debug("Rcvd Protected Dual of Public Action: %d",
action_hdr->actionID); action_hdr->actionID);
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -2179,7 +2179,7 @@ void lim_process_action_frame(struct mac_context *mac_ctx,
break; break;
} }
break; break;
case SIR_MAC_ACTION_BLKACK: case ACTION_CATEGORY_BACK:
pe_debug("Rcvd Block Ack for %pM; action: %d", pe_debug("Rcvd Block Ack for %pM; action: %d",
session->selfMacAddr, action_hdr->actionID); session->selfMacAddr, action_hdr->actionID);
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
@@ -2238,7 +2238,7 @@ void lim_process_action_frame_no_session(struct mac_context *mac, uint8_t *pBd)
} }
switch (action_hdr->category) { switch (action_hdr->category) {
case SIR_MAC_ACTION_PUBLIC_USAGE: case ACTION_CATEGORY_PUBLIC:
switch (action_hdr->actionID) { switch (action_hdr->actionID) {
case SIR_MAC_ACTION_VENDOR_SPECIFIC: case SIR_MAC_ACTION_VENDOR_SPECIFIC:
vendor_specific = vendor_specific =

View File

@@ -520,7 +520,7 @@ static QDF_STATUS lim_send_tdls_dis_req_frame(struct mac_context *mac,
/* /*
* setup Fixed fields, * setup Fixed fields,
*/ */
tdlsDisReq.Category.category = SIR_MAC_ACTION_TDLS; tdlsDisReq.Category.category = ACTION_CATEGORY_TDLS;
tdlsDisReq.Action.action = SIR_MAC_TDLS_DIS_REQ; tdlsDisReq.Action.action = SIR_MAC_TDLS_DIS_REQ;
tdlsDisReq.DialogToken.token = dialog; tdlsDisReq.DialogToken.token = dialog;
@@ -807,7 +807,7 @@ static QDF_STATUS lim_send_tdls_dis_rsp_frame(struct mac_context *mac,
/* /*
* setup Fixed fields, * setup Fixed fields,
*/ */
tdlsDisRsp.Category.category = SIR_MAC_ACTION_PUBLIC_USAGE; tdlsDisRsp.Category.category = ACTION_CATEGORY_PUBLIC;
tdlsDisRsp.Action.action = SIR_MAC_TDLS_DIS_RSP; tdlsDisRsp.Action.action = SIR_MAC_TDLS_DIS_RSP;
tdlsDisRsp.DialogToken.token = dialog; tdlsDisRsp.DialogToken.token = dialog;
@@ -1116,7 +1116,7 @@ QDF_STATUS lim_send_tdls_link_setup_req_frame(struct mac_context *mac,
smeSessionId = pe_session->smeSessionId; smeSessionId = pe_session->smeSessionId;
qdf_mem_zero((uint8_t *) &tdlsSetupReq, sizeof(tDot11fTDLSSetupReq)); qdf_mem_zero((uint8_t *) &tdlsSetupReq, sizeof(tDot11fTDLSSetupReq));
tdlsSetupReq.Category.category = SIR_MAC_ACTION_TDLS; tdlsSetupReq.Category.category = ACTION_CATEGORY_TDLS;
tdlsSetupReq.Action.action = SIR_MAC_TDLS_SETUP_REQ; tdlsSetupReq.Action.action = SIR_MAC_TDLS_SETUP_REQ;
tdlsSetupReq.DialogToken.token = dialog; tdlsSetupReq.DialogToken.token = dialog;
@@ -1375,7 +1375,7 @@ QDF_STATUS lim_send_tdls_teardown_frame(struct mac_context *mac,
* serialization). We start by zero-initializing the structure: * serialization). We start by zero-initializing the structure:
*/ */
qdf_mem_zero((uint8_t *) &teardown, sizeof(tDot11fTDLSTeardown)); qdf_mem_zero((uint8_t *) &teardown, sizeof(tDot11fTDLSTeardown));
teardown.Category.category = SIR_MAC_ACTION_TDLS; teardown.Category.category = ACTION_CATEGORY_TDLS;
teardown.Action.action = SIR_MAC_TDLS_TEARDOWN; teardown.Action.action = SIR_MAC_TDLS_TEARDOWN;
teardown.Reason.code = reason; teardown.Reason.code = reason;
@@ -1576,7 +1576,7 @@ static QDF_STATUS lim_send_tdls_setup_rsp_frame(struct mac_context *mac,
/* /*
* setup Fixed fields, * setup Fixed fields,
*/ */
tdlsSetupRsp.Category.category = SIR_MAC_ACTION_TDLS; tdlsSetupRsp.Category.category = ACTION_CATEGORY_TDLS;
tdlsSetupRsp.Action.action = SIR_MAC_TDLS_SETUP_RSP; tdlsSetupRsp.Action.action = SIR_MAC_TDLS_SETUP_RSP;
tdlsSetupRsp.DialogToken.token = dialog; tdlsSetupRsp.DialogToken.token = dialog;
@@ -1824,7 +1824,7 @@ QDF_STATUS lim_send_tdls_link_setup_cnf_frame(struct mac_context *mac,
/* /*
* setup Fixed fields, * setup Fixed fields,
*/ */
tdlsSetupCnf.Category.category = SIR_MAC_ACTION_TDLS; tdlsSetupCnf.Category.category = ACTION_CATEGORY_TDLS;
tdlsSetupCnf.Action.action = SIR_MAC_TDLS_SETUP_CNF; tdlsSetupCnf.Action.action = SIR_MAC_TDLS_SETUP_CNF;
tdlsSetupCnf.DialogToken.token = dialog; tdlsSetupCnf.DialogToken.token = dialog;
@@ -2831,7 +2831,7 @@ QDF_STATUS lim_process_sme_tdls_mgmt_send_req(struct mac_context *mac_ctx,
goto lim_tdls_send_mgmt_error; goto lim_tdls_send_mgmt_error;
} }
cds_tdls_tx_rx_mgmt_event(SIR_MAC_ACTION_TDLS, cds_tdls_tx_rx_mgmt_event(ACTION_CATEGORY_TDLS,
SIR_MAC_ACTION_TX, SIR_MAC_MGMT_ACTION, SIR_MAC_ACTION_TX, SIR_MAC_MGMT_ACTION,
send_req->req_type, send_req->peer_mac.bytes); send_req->req_type, send_req->peer_mac.bytes);

View File

@@ -841,7 +841,7 @@ lim_send_addts_req_action_frame(struct mac_context *mac,
AddTSReq.Action.action = SIR_MAC_QOS_ADD_TS_REQ; AddTSReq.Action.action = SIR_MAC_QOS_ADD_TS_REQ;
AddTSReq.DialogToken.token = pAddTS->dialogToken; AddTSReq.DialogToken.token = pAddTS->dialogToken;
AddTSReq.Category.category = SIR_MAC_ACTION_QOS_MGMT; AddTSReq.Category.category = ACTION_CATEGORY_QOS;
if (pAddTS->lleTspecPresent) { if (pAddTS->lleTspecPresent) {
populate_dot11f_tspec(&pAddTS->tspec, &AddTSReq.TSPEC); populate_dot11f_tspec(&pAddTS->tspec, &AddTSReq.TSPEC);
} else { } else {
@@ -895,7 +895,7 @@ lim_send_addts_req_action_frame(struct mac_context *mac,
WMMAddTSReq.Action.action = SIR_MAC_QOS_ADD_TS_REQ; WMMAddTSReq.Action.action = SIR_MAC_QOS_ADD_TS_REQ;
WMMAddTSReq.DialogToken.token = pAddTS->dialogToken; WMMAddTSReq.DialogToken.token = pAddTS->dialogToken;
WMMAddTSReq.Category.category = SIR_MAC_ACTION_WME; WMMAddTSReq.Category.category = ACTION_CATEGORY_WMM;
/* WMM spec 2.2.10 - status code is only filled in for ADDTS response */ /* WMM spec 2.2.10 - status code is only filled in for ADDTS response */
WMMAddTSReq.StatusCode.statusCode = 0; WMMAddTSReq.StatusCode.statusCode = 0;
@@ -1403,7 +1403,7 @@ lim_send_delts_req_action_frame(struct mac_context *mac,
if (!wmmTspecPresent) { if (!wmmTspecPresent) {
qdf_mem_zero((uint8_t *) &DelTS, sizeof(DelTS)); qdf_mem_zero((uint8_t *) &DelTS, sizeof(DelTS));
DelTS.Category.category = SIR_MAC_ACTION_QOS_MGMT; DelTS.Category.category = ACTION_CATEGORY_QOS;
DelTS.Action.action = SIR_MAC_QOS_DEL_TS_REQ; DelTS.Action.action = SIR_MAC_QOS_DEL_TS_REQ;
populate_dot11f_ts_info(pTsinfo, &DelTS.TSInfo); populate_dot11f_ts_info(pTsinfo, &DelTS.TSInfo);
@@ -1420,7 +1420,7 @@ lim_send_delts_req_action_frame(struct mac_context *mac,
} else { } else {
qdf_mem_zero((uint8_t *) &WMMDelTS, sizeof(WMMDelTS)); qdf_mem_zero((uint8_t *) &WMMDelTS, sizeof(WMMDelTS));
WMMDelTS.Category.category = SIR_MAC_ACTION_WME; WMMDelTS.Category.category = ACTION_CATEGORY_WMM;
WMMDelTS.Action.action = SIR_MAC_QOS_DEL_TS_REQ; WMMDelTS.Action.action = SIR_MAC_QOS_DEL_TS_REQ;
WMMDelTS.DialogToken.token = 0; WMMDelTS.DialogToken.token = 0;
WMMDelTS.StatusCode.statusCode = 0; WMMDelTS.StatusCode.statusCode = 0;
@@ -3319,7 +3319,7 @@ lim_send_meas_report_frame(struct mac_context *mac,
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_SPECTRUM_MGMT; frm.Category.category = ACTION_CATEGORY_SPECTRUM_MGMT;
frm.Action.action = SIR_MAC_ACTION_MEASURE_REPORT_ID; frm.Action.action = SIR_MAC_ACTION_MEASURE_REPORT_ID;
frm.DialogToken.token = pMeasReqFrame->actionHeader.dialogToken; frm.DialogToken.token = pMeasReqFrame->actionHeader.dialogToken;
@@ -3445,7 +3445,7 @@ lim_send_tpc_report_frame(struct mac_context *mac,
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_SPECTRUM_MGMT; frm.Category.category = ACTION_CATEGORY_SPECTRUM_MGMT;
frm.Action.action = SIR_MAC_ACTION_TPC_REPORT_ID; frm.Action.action = SIR_MAC_ACTION_TPC_REPORT_ID;
frm.DialogToken.token = pTpcReqFrame->actionHeader.dialogToken; frm.DialogToken.token = pTpcReqFrame->actionHeader.dialogToken;
@@ -3567,7 +3567,7 @@ lim_send_channel_switch_mgmt_frame(struct mac_context *mac,
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_SPECTRUM_MGMT; frm.Category.category = ACTION_CATEGORY_SPECTRUM_MGMT;
frm.Action.action = SIR_MAC_ACTION_CHANNEL_SWITCH_ID; frm.Action.action = SIR_MAC_ACTION_CHANNEL_SWITCH_ID;
frm.ChanSwitchAnn.switchMode = nMode; frm.ChanSwitchAnn.switchMode = nMode;
frm.ChanSwitchAnn.newChannel = nNewChannel; frm.ChanSwitchAnn.newChannel = nNewChannel;
@@ -3687,7 +3687,7 @@ lim_send_extended_chan_switch_action_frame(struct mac_context *mac_ctx,
qdf_mem_zero(&frm, sizeof(frm)); qdf_mem_zero(&frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_PUBLIC_USAGE; frm.Category.category = ACTION_CATEGORY_PUBLIC;
frm.Action.action = SIR_MAC_ACTION_EXT_CHANNEL_SWITCH_ID; frm.Action.action = SIR_MAC_ACTION_EXT_CHANNEL_SWITCH_ID;
frm.ext_chan_switch_ann_action.switch_mode = mode; frm.ext_chan_switch_ann_action.switch_mode = mode;
@@ -3986,7 +3986,7 @@ lim_send_neighbor_report_request_frame(struct mac_context *mac,
smeSessionId = pe_session->smeSessionId; smeSessionId = pe_session->smeSessionId;
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_RRM; frm.Category.category = ACTION_CATEGORY_RRM;
frm.Action.action = SIR_MAC_RRM_NEIGHBOR_REQ; frm.Action.action = SIR_MAC_RRM_NEIGHBOR_REQ;
frm.DialogToken.token = pNeighborReq->dialogToken; frm.DialogToken.token = pNeighborReq->dialogToken;
@@ -4123,7 +4123,7 @@ lim_send_link_report_action_frame(struct mac_context *mac,
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_RRM; frm.Category.category = ACTION_CATEGORY_RRM;
frm.Action.action = SIR_MAC_RRM_LINK_MEASUREMENT_RPT; frm.Action.action = SIR_MAC_RRM_LINK_MEASUREMENT_RPT;
frm.DialogToken.token = pLinkReport->dialogToken; frm.DialogToken.token = pLinkReport->dialogToken;
@@ -4265,7 +4265,7 @@ lim_send_radio_measure_report_action_frame(struct mac_context *mac,
pe_debug("dialog_token %d num_report %d is_last_frame %d", pe_debug("dialog_token %d num_report %d is_last_frame %d",
dialog_token, num_report, is_last_frame); dialog_token, num_report, is_last_frame);
frm->Category.category = SIR_MAC_ACTION_RRM; frm->Category.category = ACTION_CATEGORY_RRM;
frm->Action.action = SIR_MAC_RRM_RADIO_MEASURE_RPT; frm->Action.action = SIR_MAC_RRM_RADIO_MEASURE_RPT;
frm->DialogToken.token = dialog_token; frm->DialogToken.token = dialog_token;
@@ -4440,7 +4440,7 @@ QDF_STATUS lim_send_sa_query_request_frame(struct mac_context *mac, uint8_t *tra
uint8_t smeSessionId = 0; uint8_t smeSessionId = 0;
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_SA_QUERY; frm.Category.category = ACTION_CATEGORY_SA_QUERY;
/* 11w action field is : /* 11w action field is :
action: 0 --> SA Query Request action frame action: 0 --> SA Query Request action frame
action: 1 --> SA Query Response action frame */ action: 1 --> SA Query Response action frame */
@@ -4572,7 +4572,7 @@ QDF_STATUS lim_send_sa_query_response_frame(struct mac_context *mac,
smeSessionId = pe_session->smeSessionId; smeSessionId = pe_session->smeSessionId;
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_SA_QUERY; frm.Category.category = ACTION_CATEGORY_SA_QUERY;
/*11w action field is : /*11w action field is :
action: 0 --> SA query request action frame action: 0 --> SA query request action frame
action: 1 --> SA query response action frame */ action: 1 --> SA query response action frame */
@@ -4738,7 +4738,7 @@ QDF_STATUS lim_send_addba_response_frame(struct mac_context *mac_ctx,
cdp_peer_release_ref(soc, peer, PEER_DEBUG_ID_LIM_SEND_ADDBA_RESP); cdp_peer_release_ref(soc, peer, PEER_DEBUG_ID_LIM_SEND_ADDBA_RESP);
qdf_mem_zero((uint8_t *) &frm, sizeof(frm)); qdf_mem_zero((uint8_t *) &frm, sizeof(frm));
frm.Category.category = SIR_MAC_ACTION_BLKACK; frm.Category.category = ACTION_CATEGORY_BACK;
frm.Action.action = SIR_MAC_ADDBA_RSP; frm.Action.action = SIR_MAC_ADDBA_RSP;
frm.DialogToken.token = dialog_token; frm.DialogToken.token = dialog_token;

View File

@@ -6419,18 +6419,18 @@ bool lim_is_robust_mgmt_action_frame(uint8_t action_category)
* is required then this function need few more arguments * is required then this function need few more arguments
* and little change in logic. * and little change in logic.
*/ */
case SIR_MAC_ACTION_SPECTRUM_MGMT: case ACTION_CATEGORY_SPECTRUM_MGMT:
case SIR_MAC_ACTION_QOS_MGMT: case ACTION_CATEGORY_QOS:
case SIR_MAC_ACTION_DLP: case ACTION_CATEGORY_DLS:
case SIR_MAC_ACTION_BLKACK: case ACTION_CATEGORY_BACK:
case SIR_MAC_ACTION_RRM: case ACTION_CATEGORY_RRM:
case SIR_MAC_ACTION_FAST_BSS_TRNST: case ACTION_FAST_BSS_TRNST:
case SIR_MAC_ACTION_SA_QUERY: case ACTION_CATEGORY_SA_QUERY:
case SIR_MAC_ACTION_PROT_DUAL_PUB: case ACTION_CATEGORY_PROTECTED_DUAL_OF_PUBLIC_ACTION:
case SIR_MAC_ACTION_WNM: case ACTION_CATEGORY_WNM:
case SIR_MAC_ACITON_MESH: case ACTION_CATEGORY_MESH_ACTION:
case SIR_MAC_ACTION_MHF: case ACTION_CATEGORY_MULTIHOP_ACTION:
case SIR_MAC_ACTION_FST: case ACTION_CATEGORY_FST:
return true; return true;
default: default:
pe_debug("non-PMF action category: %d", action_category); pe_debug("non-PMF action category: %d", action_category);

View File

@@ -4472,12 +4472,12 @@ sir_convert_addts_rsp2_struct(struct mac_context *mac,
/* delegate to the framesc-generated code, */ /* delegate to the framesc-generated code, */
switch (*pFrame) { switch (*pFrame) {
case SIR_MAC_ACTION_QOS_MGMT: case ACTION_CATEGORY_QOS:
status = status =
dot11f_unpack_add_ts_response(mac, pFrame, nFrame, dot11f_unpack_add_ts_response(mac, pFrame, nFrame,
&addts, false); &addts, false);
break; break;
case SIR_MAC_ACTION_WME: case ACTION_CATEGORY_WMM:
status = status =
dot11f_unpack_wmm_add_ts_response(mac, pFrame, nFrame, dot11f_unpack_wmm_add_ts_response(mac, pFrame, nFrame,
&wmmaddts, false); &wmmaddts, false);
@@ -4500,7 +4500,7 @@ sir_convert_addts_rsp2_struct(struct mac_context *mac,
} }
/* & "transliterate" from a 'tDot11fAddTSResponse' or a */ /* & "transliterate" from a 'tDot11fAddTSResponse' or a */
/* 'tDot11WMMAddTSResponse' to a 'tSirMacAddtsRspInfo'... */ /* 'tDot11WMMAddTSResponse' to a 'tSirMacAddtsRspInfo'... */
if (SIR_MAC_ACTION_QOS_MGMT == *pFrame) { if (ACTION_CATEGORY_QOS == *pFrame) {
pAddTs->dialogToken = addts.DialogToken.token; pAddTs->dialogToken = addts.DialogToken.token;
pAddTs->status = (tSirMacStatusCodes) addts.Status.status; pAddTs->status = (tSirMacStatusCodes) addts.Status.status;
@@ -4638,11 +4638,11 @@ sir_convert_delts_req2_struct(struct mac_context *mac,
/* delegate to the framesc-generated code, */ /* delegate to the framesc-generated code, */
switch (*pFrame) { switch (*pFrame) {
case SIR_MAC_ACTION_QOS_MGMT: case ACTION_CATEGORY_QOS:
status = dot11f_unpack_del_ts(mac, pFrame, nFrame, status = dot11f_unpack_del_ts(mac, pFrame, nFrame,
&delts, false); &delts, false);
break; break;
case SIR_MAC_ACTION_WME: case ACTION_CATEGORY_WMM:
status = dot11f_unpack_wmm_del_ts(mac, pFrame, nFrame, status = dot11f_unpack_wmm_del_ts(mac, pFrame, nFrame,
&wmmdelts, false); &wmmdelts, false);
break; break;
@@ -4666,7 +4666,7 @@ sir_convert_delts_req2_struct(struct mac_context *mac,
} }
/* & "transliterate" from a 'tDot11fDelTSResponse' or a */ /* & "transliterate" from a 'tDot11fDelTSResponse' or a */
/* 'tDot11WMMDelTSResponse' to a 'tSirMacDeltsReqInfo'... */ /* 'tDot11WMMDelTSResponse' to a 'tSirMacDeltsReqInfo'... */
if (SIR_MAC_ACTION_QOS_MGMT == *pFrame) { if (ACTION_CATEGORY_QOS == *pFrame) {
pDelTs->tsinfo.traffic.trafficType = pDelTs->tsinfo.traffic.trafficType =
(uint16_t) delts.TSInfo.traffic_type; (uint16_t) delts.TSInfo.traffic_type;
pDelTs->tsinfo.traffic.tsid = (uint16_t) delts.TSInfo.tsid; pDelTs->tsinfo.traffic.tsid = (uint16_t) delts.TSInfo.tsid;