qcacmn: Not able to enable pktlog when monitor mode is enabled
This change enables pktlog when monitor mode is enabled. Change-Id: Ia471c2a5ff92ad590c8c61bc1527b2760d4ba51c CRs-Fixed: 2799509
This commit is contained in:
@@ -12341,6 +12341,7 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
/* Nothing needs to be done if monitor mode is
|
||||
* enabled
|
||||
*/
|
||||
pdev->rx_pktlog_mode = DP_RX_PKTLOG_FULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -12369,6 +12370,7 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
/* Nothing needs to be done if monitor mode is
|
||||
* enabled
|
||||
*/
|
||||
pdev->rx_pktlog_mode = DP_RX_PKTLOG_LITE;
|
||||
return 0;
|
||||
}
|
||||
if (pdev->rx_pktlog_mode != DP_RX_PKTLOG_LITE) {
|
||||
@@ -12396,13 +12398,6 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
break;
|
||||
|
||||
case WDI_EVENT_LITE_T2H:
|
||||
if (pdev->monitor_vdev) {
|
||||
/* Nothing needs to be done if monitor mode is
|
||||
* enabled
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (mac_id = 0; mac_id < max_mac_rings; mac_id++) {
|
||||
int mac_for_pdev = dp_get_mac_id_for_pdev(
|
||||
mac_id, pdev->pdev_id);
|
||||
@@ -12426,6 +12421,7 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
/* Nothing needs to be done if monitor mode is
|
||||
* enabled
|
||||
*/
|
||||
pdev->rx_pktlog_mode = DP_RX_PKTLOG_DISABLED;
|
||||
return 0;
|
||||
}
|
||||
if (pdev->rx_pktlog_mode != DP_RX_PKTLOG_DISABLED) {
|
||||
@@ -12454,12 +12450,6 @@ int dp_set_pktlog_wifi3(struct dp_pdev *pdev, uint32_t event,
|
||||
}
|
||||
break;
|
||||
case WDI_EVENT_LITE_T2H:
|
||||
if (pdev->monitor_vdev) {
|
||||
/* Nothing needs to be done if monitor mode is
|
||||
* enabled
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
/* To disable HTT_H2T_MSG_TYPE_PPDU_STATS_CFG in FW
|
||||
* passing value 0. Once these macros will define in htt
|
||||
* header file will use proper macros
|
||||
|
Reference in New Issue
Block a user