From 2f9066cae6db170cd488e371fa4e952bd5d1fc7f Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Fri, 9 Oct 2015 09:51:31 -0700 Subject: qcacld-2.0: Add support for FST Action frames Currently driver drops the action frame category 18 - FST action frames. This patch adds support for these frames in wlan host code. Change-Id: I7021e328b7ebe9a1e46f526e3928c7d1279e1ad7 CRs-Fixed: 921117 --- CORE/MAC/inc/sirMacProtDef.h | 1 + CORE/MAC/src/pe/lim/limProcessActionFrame.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CORE/MAC/inc/sirMacProtDef.h b/CORE/MAC/inc/sirMacProtDef.h index 5896b8dfc2e2..9a01efdc2db3 100644 --- a/CORE/MAC/inc/sirMacProtDef.h +++ b/CORE/MAC/inc/sirMacProtDef.h @@ -146,6 +146,7 @@ #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 // QoS management action codes diff --git a/CORE/MAC/src/pe/lim/limProcessActionFrame.c b/CORE/MAC/src/pe/lim/limProcessActionFrame.c index 36c53c93aef7..7c2bac8c8311 100644 --- a/CORE/MAC/src/pe/lim/limProcessActionFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessActionFrame.c @@ -2532,6 +2532,23 @@ limProcessActionFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,tpPESession ps break; } #endif + case SIR_MAC_ACTION_FST: + { + tpSirMacMgmtHdr pHdr; + tANI_U32 frameLen; + + pHdr = WDA_GET_RX_MAC_HEADER(pRxPacketInfo); + frameLen = WDA_GET_RX_PAYLOAD_LEN(pRxPacketInfo); + + limLog(pMac, LOG1, FL("Received FST MGMT action frame")); + /* Forward to the SME to HDD */ + limSendSmeMgmtFrameInd(pMac, pHdr->fc.subType, (tANI_U8*)pHdr, + frameLen + sizeof(tSirMacMgmtHdr), + psessionEntry->smeSessionId, + WDA_GET_RX_CH(pRxPacketInfo), + psessionEntry, 0); + break; + } default: PELOGE(limLog(pMac, LOGE, FL("Action category %d not handled"), pActionHdr->category);) break; -- cgit v1.2.3