Browse Source

qcacld-3.0: Correct sme_set_5g_band_pref definition

sme_set_5g_band_pref is declared inside FEATURE_WLAN_ESE feature flag
by mistake which can cause a symbol undefined error if FEATURE_WLAN_ESE
is not declared.

Move sme_set_5g_band_pref outside of conditional block FEATURE_WLAN_ESE.

Change-Id: I80b045100b068d08873b136fdf676e99e36a57cd
CRs-Fixed: 2016629
Manjeet Singh 8 years ago
parent
commit
2f78506072
1 changed files with 2 additions and 3 deletions
  1. 2 3
      core/sme/src/common/sme_api.c

+ 2 - 3
core/sme/src/common/sme_api.c

@@ -15979,9 +15979,9 @@ bool sme_roam_is_ese_assoc(tCsrRoamInfo *roam_info)
 {
 	return roam_info->isESEAssoc;
 }
-
+#endif
 /**
- * sme_set_band_specific_pref(): If 5G preference is enabled,set boost/drop
+ * sme_set_5g_band_pref(): If 5G preference is enabled,set boost/drop
  * params from ini.
  * @hal_handle: Handle returned by mac_open
  * @5g_pref_params: pref params from ini.
@@ -16023,7 +16023,6 @@ void sme_set_5g_band_pref(tHalHandle hal_handle,
 			  "Unable to acquire global sme lock");
 }
 
-#endif
 
 bool sme_neighbor_roam_is11r_assoc(tHalHandle hal_ctx, uint8_t session_id)
 {