|
@@ -32,6 +32,7 @@
|
|
#include "cdp_txrx_ctrl.h"
|
|
#include "cdp_txrx_ctrl.h"
|
|
|
|
|
|
#define CMN_NOISE_FLOOR (-96)
|
|
#define CMN_NOISE_FLOOR (-96)
|
|
|
|
+#define NUM_CHAINS_FW_TO_HOST(n) ((1 << ((n) + 1)) - 1)
|
|
|
|
|
|
static u_int32_t end_magic = 0xBEAFDEAD;
|
|
static u_int32_t end_magic = 0xBEAFDEAD;
|
|
/**
|
|
/**
|
|
@@ -881,7 +882,7 @@ static bool enh_cfr_dbr_event_handler(struct wlan_objmgr_pdev *pdev,
|
|
header = &lut->header;
|
|
header = &lut->header;
|
|
meta = &header->u.meta_v3;
|
|
meta = &header->u.meta_v3;
|
|
meta->channel_bw = dma_hdr.upload_pkt_bw;
|
|
meta->channel_bw = dma_hdr.upload_pkt_bw;
|
|
- meta->num_rx_chain = dma_hdr.num_chains;
|
|
|
|
|
|
+ meta->num_rx_chain = NUM_CHAINS_FW_TO_HOST(dma_hdr.num_chains);
|
|
meta->length = length;
|
|
meta->length = length;
|
|
/* For Tx based captures, capture type is sent from FW */
|
|
/* For Tx based captures, capture type is sent from FW */
|
|
if (capture_type != CFR_TYPE_METHOD_ACK_RESP_TO_TM_FTM) {
|
|
if (capture_type != CFR_TYPE_METHOD_ACK_RESP_TO_TM_FTM) {
|