|
@@ -264,8 +264,6 @@ static void hdd_start_powersave_timer_on_associated(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
uint32_t timeout;
|
|
|
uint32_t auto_bmps_timer_val;
|
|
|
- struct hdd_station_ctx *hddstactx =
|
|
|
- WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
|
|
|
if (adapter->device_mode != QDF_STA_MODE &&
|
|
@@ -273,7 +271,7 @@ static void hdd_start_powersave_timer_on_associated(struct hdd_adapter *adapter)
|
|
|
return;
|
|
|
ucfg_mlme_get_auto_bmps_timer_value(hdd_ctx->psoc,
|
|
|
&auto_bmps_timer_val);
|
|
|
- timeout = hddstactx->hdd_reassoc_scenario ?
|
|
|
+ timeout = hdd_cm_is_vdev_roaming(adapter) ?
|
|
|
AUTO_PS_ENTRY_TIMER_DEFAULT_VALUE :
|
|
|
(auto_bmps_timer_val * 1000);
|
|
|
sme_ps_enable_auto_ps_timer(hdd_ctx->mac_handle,
|
|
@@ -1627,15 +1625,17 @@ void hdd_conn_remove_connect_info(struct hdd_station_ctx *sta_ctx)
|
|
|
|
|
|
void hdd_clear_roam_profile_ie(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
struct hdd_station_ctx *sta_ctx;
|
|
|
struct csr_roam_profile *roam_profile;
|
|
|
+#endif
|
|
|
|
|
|
hdd_enter();
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
/* clear WPA/RSN/WSC IE information in the profile */
|
|
|
roam_profile = hdd_roam_profile(adapter);
|
|
|
|
|
|
-#ifndef FEATURE_CM_ENABLE
|
|
|
roam_profile->nWPAReqIELength = 0;
|
|
|
roam_profile->pWPAReqIE = NULL;
|
|
|
roam_profile->nRSNReqIELength = 0;
|
|
@@ -1677,9 +1677,11 @@ void hdd_clear_roam_profile_ie(struct hdd_adapter *adapter)
|
|
|
adapter->wapi_info.wapi_mode = false;
|
|
|
#endif
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
sta_ctx->auth_key_mgmt = 0;
|
|
|
qdf_zero_macaddr(&sta_ctx->requested_bssid);
|
|
|
+#endif
|
|
|
hdd_exit();
|
|
|
}
|
|
|
|
|
@@ -4121,9 +4123,7 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info,
|
|
|
hdd_dis_connect_handler(adapter, roam_info, roam_id,
|
|
|
roam_status, roam_result);
|
|
|
sta_ctx->ft_carrier_on = false;
|
|
|
- sta_ctx->hdd_reassoc_scenario = false;
|
|
|
- hdd_debug("hdd_reassoc_scenario set to: %d, ReAssoc Failed, session: %d",
|
|
|
- sta_ctx->hdd_reassoc_scenario, adapter->vdev_id);
|
|
|
+ hdd_debug("ReAssoc Failed, session: %d", adapter->vdev_id);
|
|
|
break;
|
|
|
case eCSR_ROAM_FT_START:
|
|
|
/*
|
|
@@ -4142,9 +4142,7 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info,
|
|
|
WLAN_STOP_ALL_NETIF_QUEUE,
|
|
|
WLAN_CONTROL_PATH);
|
|
|
sta_ctx->ft_carrier_on = true;
|
|
|
- sta_ctx->hdd_reassoc_scenario = true;
|
|
|
- hdd_debug("hdd_reassoc_scenario set to: %d, due to eCSR_ROAM_FT_START, session: %d",
|
|
|
- sta_ctx->hdd_reassoc_scenario, adapter->vdev_id);
|
|
|
+ hdd_debug("eCSR_ROAM_FT_START, session: %d", adapter->vdev_id);
|
|
|
break;
|
|
|
case eCSR_ROAM_NAPI_OFF:
|
|
|
hdd_debug("After Roam Synch Comp: NAPI Serialize OFF");
|
|
@@ -4212,12 +4210,6 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info,
|
|
|
} else {
|
|
|
wlan_hdd_ft_set_key_delay(hdd_ctx->mac_handle, adapter);
|
|
|
}
|
|
|
- if (sta_ctx->ft_carrier_on) {
|
|
|
- sta_ctx->hdd_reassoc_scenario = false;
|
|
|
- hdd_debug("hdd_reassoc_scenario set to: %d session: %d",
|
|
|
- sta_ctx->hdd_reassoc_scenario,
|
|
|
- adapter->vdev_id);
|
|
|
- }
|
|
|
|
|
|
qdf_ret_status =
|
|
|
hdd_association_completion_handler(adapter, roam_info,
|
|
@@ -4249,12 +4241,9 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info,
|
|
|
hdd_roam_set_key_complete_handler(adapter, roam_info,
|
|
|
roam_id, roam_status,
|
|
|
roam_result);
|
|
|
- if (eCSR_ROAM_RESULT_AUTHENTICATED == roam_result) {
|
|
|
- sta_ctx->hdd_reassoc_scenario = false;
|
|
|
- hdd_debug("hdd_reassoc_scenario set to: %d, set key complete, session: %d",
|
|
|
- sta_ctx->hdd_reassoc_scenario,
|
|
|
+ if (eCSR_ROAM_RESULT_AUTHENTICATED == roam_result)
|
|
|
+ hdd_debug("set key complete, session: %d",
|
|
|
adapter->vdev_id);
|
|
|
- }
|
|
|
}
|
|
|
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
|
|
|
if (roam_info)
|
|
@@ -5164,8 +5153,10 @@ static void hdd_initialize_fils_info(struct hdd_adapter *adapter)
|
|
|
void hdd_roam_profile_init(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
struct csr_roam_profile *roam_profile;
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
uint8_t *security_ie;
|
|
|
tSirAddie *assoc_additional_ie;
|
|
|
+#endif
|
|
|
struct hdd_station_ctx *sta_ctx;
|
|
|
|
|
|
hdd_enter();
|
|
@@ -5173,12 +5164,13 @@ void hdd_roam_profile_init(struct hdd_adapter *adapter)
|
|
|
roam_profile = hdd_roam_profile(adapter);
|
|
|
qdf_mem_zero(roam_profile, sizeof(*roam_profile));
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
security_ie = hdd_security_ie(adapter);
|
|
|
qdf_mem_zero(security_ie, WLAN_MAX_IE_LEN);
|
|
|
|
|
|
assoc_additional_ie = hdd_assoc_additional_ie(adapter);
|
|
|
qdf_mem_zero(assoc_additional_ie, sizeof(*assoc_additional_ie));
|
|
|
-
|
|
|
+#endif
|
|
|
sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
|
|
|
|
|
/* Configure the roaming profile links to SSID and bssid. */
|
|
@@ -5195,8 +5187,10 @@ void hdd_roam_profile_init(struct hdd_adapter *adapter)
|
|
|
roam_profile->BSSType = eCSR_BSS_TYPE_INFRASTRUCTURE;
|
|
|
|
|
|
roam_profile->phyMode = eCSR_DOT11_MODE_AUTO;
|
|
|
- sta_ctx->wpa_versions = 0;
|
|
|
|
|
|
+#ifndef FEATURE_CM_ENABLE
|
|
|
+ sta_ctx->wpa_versions = 0;
|
|
|
+#endif
|
|
|
/* Set the default scan mode */
|
|
|
adapter->scan_info.scan_mode = eSIR_ACTIVE_SCAN;
|
|
|
|