diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 7b5215ad65eb..b0d34fa9b0e3 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3188,19 +3188,19 @@ int hdd_set_fw_params(hdd_adapter_t *adapter) ret); goto error; } + + ret = wma_cli_set_command(adapter->sessionId, + WMI_VDEV_PARAM_ENABLE_RTSCTS, + hdd_ctx->config->rts_profile, + VDEV_CMD); + if (ret) { + hdd_err("FAILED TO SET RTSCTS Profile ret:%d", ret); + goto error; + } } hdd_set_fw_log_params(hdd_ctx, adapter); - ret = wma_cli_set_command(adapter->sessionId, - WMI_VDEV_PARAM_ENABLE_RTSCTS, - hdd_ctx->config->rts_profile, - VDEV_CMD); - if (ret) { - hdd_err("FAILED TO SET RTSCTS Profile ret:%d", ret); - goto error; - } - EXIT(); return 0;