qcacld-3.0: Process Mgmt packets only when packet capture mode is 1

Management frames should be captured only when Packet_Capture_Mode is 1.

Change-Id: Idf719d5d469fecd9d72d475d3245684e5acb0f04
CRs-Fixed: 2647399
This commit is contained in:
Vulupala Shashank Reddy 2020-03-23 14:04:27 +05:30 • committed by nshrivas
commit b1b7cd32c1

View file

@ -2797,7 +2797,7 @@ QDF_STATUS wma_tx_packet(void *wma_context, void *tx_frame, uint16_t frmLen,
WLAN_MGMT_NB_ID);
}
if (ucfg_pkt_capture_get_pktcap_mode(psoc) &&
if (ucfg_pkt_capture_get_pktcap_mode(psoc) &
PKT_CAPTURE_MODE_MGMT_ONLY) {
ucfg_pkt_capture_mgmt_tx(wma_handle->pdev,
tx_frame,