diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2013-06-09 10:12:50 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-12 23:06:50 +0400 |
commit | 8b5c7f6c2b16a31b9f0fc4dba72524a7028e5e43 (patch) | |
tree | 51640fa88d401f6a800b751ebd66c02c824f69b1 | |
parent | 59505c02e106ce9388d816799cd64b0405f98f2f (diff) | |
download | linux-8b5c7f6c2b16a31b9f0fc4dba72524a7028e5e43.tar.xz |
wil6210: fix timeout for start_pcp
It may take up to 3500ms for the FW to start AP/PCP. Increase accordingly,
adding some safety margin.
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wmi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c index 527ffb543821..aeb64f21273a 100644 --- a/drivers/net/wireless/ath/wil6210/wmi.c +++ b/drivers/net/wireless/ath/wil6210/wmi.c @@ -739,8 +739,12 @@ int wmi_pcp_start(struct wil6210_priv *wil, int bi, u8 wmi_nettype, u8 chan) if (!wil->secure_pcp) cmd.disable_sec = 1; + /* + * Processing time may be huge, in case of secure AP it takes about + * 3500ms for FW to start AP + */ rc = wmi_call(wil, WMI_PCP_START_CMDID, &cmd, sizeof(cmd), - WMI_PCP_STARTED_EVENTID, &reply, sizeof(reply), 100); + WMI_PCP_STARTED_EVENTID, &reply, sizeof(reply), 5000); if (rc) return rc; |