Commit db26e8f9 authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Madan Mohan Koyyalamudi
Browse files

qcacld: Increase VDEV start response timeout to 3 seconds

In some cases when calibration is going on in FW VDEV start
response may take more ~3 seconds so increase the VDEV start
response timeout value to 3 seconds.

Change-Id: I22f1b8b675b09d48054b34179389651dec63caf0
CRs-Fixed: 700323
parent 4b141611
......@@ -9581,7 +9581,8 @@ static void wma_set_channel(tp_wma_handle wma, tpSwitchChannelParams params)
vos_mem_zero(&req, sizeof(req));
req.vdev_id = vdev_id;
msg = wma_fill_vdev_req(wma, req.vdev_id, WDA_CHNL_SWITCH_REQ,
WMA_TARGET_REQ_TYPE_VDEV_START, params, 1000);
WMA_TARGET_REQ_TYPE_VDEV_START, params,
WMA_VDEV_START_REQUEST_TIMEOUT);
if (!msg) {
WMA_LOGP("%s: Failed to fill channel switch request for vdev %d",
__func__, req.vdev_id);
......@@ -11595,7 +11596,8 @@ static void wma_add_bss_ap_mode(tp_wma_handle wma, tpAddBssParams add_bss)
goto send_fail_resp;
}
msg = wma_fill_vdev_req(wma, vdev_id, WDA_ADD_BSS_REQ,
WMA_TARGET_REQ_TYPE_VDEV_START, add_bss, 1000);
WMA_TARGET_REQ_TYPE_VDEV_START, add_bss,
WMA_VDEV_START_REQUEST_TIMEOUT);
if (!msg) {
WMA_LOGP("%s Failed to allocate vdev request vdev_id %d",
__func__, vdev_id);
......@@ -11850,7 +11852,8 @@ static void wma_add_bss_ibss_mode(tp_wma_handle wma, tpAddBssParams add_bss)
add_bss->operMode = BSS_OPERATIONAL_MODE_IBSS;
 
msg = wma_fill_vdev_req(wma, vdev_id, WDA_ADD_BSS_REQ,
WMA_TARGET_REQ_TYPE_VDEV_START, add_bss, 1000);
WMA_TARGET_REQ_TYPE_VDEV_START, add_bss,
WMA_VDEV_START_REQUEST_TIMEOUT);
if (!msg) {
WMA_LOGP("%s Failed to allocate vdev request vdev_id %d",
__func__, vdev_id);
......@@ -12043,7 +12046,8 @@ static void wma_add_bss_sta_mode(tp_wma_handle wma, tpAddBssParams add_bss)
#endif
msg = wma_fill_vdev_req(wma, vdev_id, WDA_ADD_BSS_REQ,
WMA_TARGET_REQ_TYPE_VDEV_START,
add_bss, 2000);
add_bss,
WMA_VDEV_START_REQUEST_TIMEOUT);
if (!msg) {
WMA_LOGP("%s Failed to allocate vdev request vdev_id %d",
__func__, vdev_id);
......
......@@ -1260,6 +1260,8 @@ struct wma_tx_ack_work_ctx {
#define WMA_TARGET_REQ_TYPE_VDEV_STOP 0x2
#define WMA_TARGET_REQ_TYPE_VDEV_DEL 0x3
#define WMA_VDEV_START_REQUEST_TIMEOUT (3000) /* 3 seconds */
struct wma_target_req {
vos_timer_t event_timeout;
struct list_head node;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment