diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index e9fb021ffbe9..10a334e49248 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -56,6 +56,7 @@ #include #include #include +#include "cdp_txrx_flow_ctrl_legacy.h" #include #include @@ -2053,12 +2054,14 @@ bool hdd_dfs_indicate_radar(struct hdd_context *hdd_ctx) if ((QDF_SAP_MODE == adapter->device_mode || QDF_P2P_GO_MODE == adapter->device_mode) && - (wlan_reg_is_dfs_ch(hdd_ctx->hdd_pdev, + (wlan_reg_is_passive_or_disable_ch(hdd_ctx->hdd_pdev, ap_ctx->operating_channel))) { WLAN_HDD_GET_AP_CTX_PTR(adapter)->dfs_cac_block_tx = true; hdd_info("tx blocked for session: %d", adapter->session_id); + cdp_fc_vdev_flush(cds_get_context(QDF_MODULE_ID_SOC), + adapter->txrx_vdev); } }