diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 848cb9e0da..e34b880a89 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -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