qcacld-3.0: Enable compile time enable/disable for roaming
Enable compile time featurization support for both LFR2.0
and LFR3.0 using WLAN_FEATURE_HOST_ROAM and
WLAN_FEATURE_ROAM_OFFLOAD respectively
CRs-Fixed: 978905
Change-Id: Ib5976cd0cd5a6e117a1334bfc73a043e36e25f77
diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c
index eb2622b..9723486 100644
--- a/core/hdd/src/wlan_hdd_ioctl.c
+++ b/core/hdd/src/wlan_hdd_ioctl.c
@@ -4640,6 +4640,10 @@
FL("Not able to post ROAM_INVOKE_CMD message to WMA"));
}
}
+#else
+static inline void hdd_wma_send_fastreassoc_cmd(int sessionId,
+ tSirMacAddr bssid, int channel)
+{}
#endif
static int drv_cmd_fast_reassoc(hdd_adapter_t *adapter,
hdd_context_t *hdd_ctx,
@@ -4713,13 +4717,11 @@
hddLog(LOGE, FL("Invalid Channel [%d]"), channel);
return -EINVAL;
}
-#ifdef WLAN_FEATURE_ROAM_OFFLOAD
- if (hdd_ctx->config->isRoamOffloadEnabled) {
+ if (is_roaming_offload_enabled(hdd_ctx)) {
hdd_wma_send_fastreassoc_cmd((int)adapter->sessionId,
targetApBssid, (int)channel);
goto exit;
}
-#endif
/* Proceed with reassoc */
handoffInfo.channel = channel;
handoffInfo.src = FASTREASSOC;