|
@@ -3019,6 +3019,7 @@ cm_roam_switch_to_rso_stop(struct wlan_objmgr_pdev *pdev,
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
static void cm_roam_roam_invoke_in_progress(struct wlan_objmgr_psoc *psoc,
|
|
|
uint8_t vdev_id, bool set)
|
|
|
{
|
|
@@ -3034,6 +3035,8 @@ static void cm_roam_roam_invoke_in_progress(struct wlan_objmgr_psoc *psoc,
|
|
|
vdev_roam_params->roam_invoke_in_progress = set;
|
|
|
wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_NB_ID);
|
|
|
}
|
|
|
+#endif
|
|
|
+
|
|
|
/**
|
|
|
* cm_roam_switch_to_deinit() - roam state handling for roam deinit
|
|
|
* @pdev: pdev pointer
|
|
@@ -3054,8 +3057,9 @@ cm_roam_switch_to_deinit(struct wlan_objmgr_pdev *pdev,
|
|
|
enum roam_offload_state cur_state = mlme_get_roam_state(psoc, vdev_id);
|
|
|
bool sup_disabled_roam;
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
cm_roam_roam_invoke_in_progress(psoc, vdev_id, false);
|
|
|
-
|
|
|
+#endif
|
|
|
switch (cur_state) {
|
|
|
/*
|
|
|
* If RSO stop is not done already, send RSO stop first and
|
|
@@ -3157,7 +3161,9 @@ cm_roam_switch_to_init(struct wlan_objmgr_pdev *pdev,
|
|
|
|
|
|
dual_sta_policy = &mlme_obj->cfg.gen.dual_sta_policy;
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
cm_roam_roam_invoke_in_progress(psoc, vdev_id, false);
|
|
|
+#endif
|
|
|
|
|
|
dual_sta_roam_active =
|
|
|
wlan_mlme_get_dual_sta_roaming_enabled(psoc);
|
|
@@ -3419,7 +3425,12 @@ cm_roam_switch_to_roam_start(struct wlan_objmgr_pdev *pdev,
|
|
|
* notification. Allow roam start in this condition.
|
|
|
*/
|
|
|
if (mlme_get_supplicant_disabled_roaming(psoc, vdev_id) &&
|
|
|
- mlme_is_roam_invoke_in_progress(psoc, vdev_id)) {
|
|
|
+#ifdef FEATURE_CM_ENABLE
|
|
|
+ wlan_cm_roaming_in_progress(pdev, vdev_id)
|
|
|
+#else
|
|
|
+ mlme_is_roam_invoke_in_progress(psoc, vdev_id)
|
|
|
+#endif
|
|
|
+ ) {
|
|
|
mlme_set_roam_state(psoc, vdev_id,
|
|
|
WLAN_ROAMING_IN_PROG);
|
|
|
break;
|
|
@@ -3482,7 +3493,12 @@ cm_roam_switch_to_roam_sync(struct wlan_objmgr_pdev *pdev,
|
|
|
* this state transition
|
|
|
*/
|
|
|
if (mlme_get_supplicant_disabled_roaming(psoc, vdev_id) &&
|
|
|
- mlme_is_roam_invoke_in_progress(psoc, vdev_id)) {
|
|
|
+#ifdef FEATURE_CM_ENABLE
|
|
|
+ wlan_cm_roaming_in_progress(pdev, vdev_id)
|
|
|
+#else
|
|
|
+ mlme_is_roam_invoke_in_progress(psoc, vdev_id)
|
|
|
+#endif
|
|
|
+ ) {
|
|
|
mlme_set_roam_state(psoc, vdev_id,
|
|
|
WLAN_ROAM_SYNCH_IN_PROG);
|
|
|
break;
|