Browse Source

qcacld-3.0: Move sme_is_conn_state_connected outside ifdef

sme_is_conn_state_connected API is incorrectly places inside
FEATURE_BSS_TRANSITION ifdef causing compilation failure if the
flag FEATURE_BSS_TRANSITION is disabled.

Move sme_is_conn_state_connected outside of FEATURE_BSS_TRANSITION.

Change-Id: I3563d1e24f48990b0e16919a5ddaa9ed71bd53ac
CRs-Fixed: 2325332
Vignesh Viswanathan 6 years ago
parent
commit
79f7e3f682
1 changed files with 7 additions and 7 deletions
  1. 7 7
      core/sme/src/common/sme_api.c

+ 7 - 7
core/sme/src/common/sme_api.c

@@ -15990,13 +15990,6 @@ static bool sme_get_status_for_candidate(tHalHandle hal,
 	return false;
 }
 
-bool sme_is_conn_state_connected(mac_handle_t hal, uint8_t session_id)
-{
-	tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
-
-	return csr_is_conn_state_connected(mac_ctx, session_id);
-}
-
 /**
  * wlan_hdd_get_bss_transition_status() - get bss transition status all cadidates
  * @adapter : Pointer to adapter
@@ -16080,6 +16073,13 @@ free:
 }
 #endif /* FEATURE_BSS_TRANSITION */
 
+bool sme_is_conn_state_connected(mac_handle_t hal, uint8_t session_id)
+{
+	tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
+
+	return csr_is_conn_state_connected(mac_ctx, session_id);
+}
+
 void sme_enable_roaming_on_connected_sta(tHalHandle hal)
 {
 	uint8_t session_id;