From 7d569d79606c647601258f0a5acd9143692b0b06 Mon Sep 17 00:00:00 2001 From: Jianmin Zhu Date: Thu, 21 Feb 2019 11:14:49 +0800 Subject: [PATCH] qcacld-3.0: Fix assert when iwpriv wlan0 addTspec If ACM is off and can't send AddTspec too, we should be still ok to send uapsd info to AP via reassoc req. If roam offload is enabled, when csr_reassoc is called, vdev start cmd is sent during vdev started status, assert will happen. Fix: call sme_fast_reassoc in sme_qos_request_reassoc to invoke LFR3 roam if roam offload supported. Reproduce steps: 1. Change ini: gAddTSWhenACMIsOff=0 2. DUT STA connected AP 3. iwpriv wlan0 addTspec 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Change-Id: Idbd53ff0af36cb3b68c514e399d0033c41c74a78 CRs-Fixed: 2402542 --- mlme/dispatcher/inc/wlan_mlme_ucfg_api.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h b/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h index af47df5c36..9900769e5d 100644 --- a/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h +++ b/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h @@ -1062,8 +1062,23 @@ ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc, QDF_STATUS ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc, bool val); -#endif +#else +static inline QDF_STATUS +ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc, + bool *val) +{ + *val = false; + return QDF_STATUS_SUCCESS; +} + +static inline QDF_STATUS +ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc, + bool val) +{ + return QDF_STATUS_SUCCESS; +} +#endif /** * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre * @psoc: pointer to psoc object