diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 0e3224aed1..ffa86e6c13 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1647,12 +1647,12 @@ static inline void hdd_set_tso_flags(hdd_context_t *hdd_ctx, #endif /* FEATURE_TSO */ #ifdef WLAN_FEATURE_ROAM_OFFLOAD -static inline bool is_roaming_offload_enabled(hdd_context_t *hdd_ctx) +static inline bool roaming_offload_enabled(hdd_context_t *hdd_ctx) { return hdd_ctx->config->isRoamOffloadEnabled; } #else -static inline bool is_roaming_offload_enabled(hdd_context_t *hdd_ctx) +static inline bool roaming_offload_enabled(hdd_context_t *hdd_ctx) { return false; } diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index cdf0e41d7f..2a2c9940a5 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -2184,7 +2184,7 @@ __wlan_hdd_cfg80211_get_features(struct wiphy *wiphy, return -EPERM; } - if (is_roaming_offload_enabled(hdd_ctx_ptr)) { + if (roaming_offload_enabled(hdd_ctx_ptr)) { hddLog(LOG1, FL("Key Mgmt Offload is supported")); wlan_hdd_cfg80211_set_feature(feature_flags, QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD); @@ -3128,7 +3128,7 @@ int wlan_hdd_send_roam_auth_event(hdd_context_t *hdd_ctx_ptr, uint8_t *bssid, return -EINVAL; } - if (!is_roaming_offload_enabled(hdd_ctx_ptr) || + if (!roaming_offload_enabled(hdd_ctx_ptr) || !roam_info_ptr->roamSynchInProgress) return 0; diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index 9723486740..d98a6cf6ad 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/core/hdd/src/wlan_hdd_ioctl.c @@ -4717,7 +4717,7 @@ static int drv_cmd_fast_reassoc(hdd_adapter_t *adapter, hddLog(LOGE, FL("Invalid Channel [%d]"), channel); return -EINVAL; } - if (is_roaming_offload_enabled(hdd_ctx)) { + if (roaming_offload_enabled(hdd_ctx)) { hdd_wma_send_fastreassoc_cmd((int)adapter->sessionId, targetApBssid, (int)channel); goto exit;