]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
wcn36xx: Set SMD timeout to 10 seconds
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 21 Apr 2016 21:09:42 +0000 (14:09 -0700)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Fri, 22 Apr 2016 21:14:59 +0000 (23:14 +0200)
After booting the wireless subsystem and uploading the NV blob to the
WCNSS_CTRL service the remote continues to do things and will not start
servicing wlan-requests for another 2-5 seconds (measured).

The downstream code does not have any special handling for this case,
but has a timeout of 10 seconds for the communication layer. By
extending the wcn36xx timeout to match this we follows the same flow for
the boot procedure and can successfully configure WiFi as wlan0 is
registered.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/net/wireless/ath/wcn36xx/smd.h

index d74d781f4c8dcecb46475c31fac64935684bd37e..d93e3fd73831c98b67ddf32c1cf436d32a34d20e 100644 (file)
@@ -24,7 +24,7 @@
 
 #define WCN36XX_HAL_BUF_SIZE                           4096
 
-#define HAL_MSG_TIMEOUT 500
+#define HAL_MSG_TIMEOUT 10000
 #define WCN36XX_SMSM_WLAN_TX_ENABLE                    0x00000400
 #define WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY               0x00000200
 /* The PNO version info be contained in the rsp msg */