From 9c739dc644a9f666d2a3fdcdafd71ae01a40690c Mon Sep 17 00:00:00 2001 From: Balaji Pothunoori Date: Sun, 5 Jun 2022 21:49:54 +0530 Subject: [PATCH] qcacld-3.0: Enable roam offload in wiphy based on roam ini set Currently WIPHY_FLAG_SUPPORTS_FW_ROAM is updated in wiphy based on FastRoamEnabled/EseEnabled/FastTransitionEnabled. This change is to update WIPHY_FLAG_SUPPORTS_FW_ROAM flag in wiphy based on lfr3 ini set. Change-Id: I3eb9d4fe226849f28fd173fc5e891257f8e83ad9 CRs-Fixed: 3213817 --- core/hdd/src/wlan_hdd_cfg80211.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 454a4b716103..1f182a8fbc12 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -17433,12 +17433,15 @@ static void wlan_hdd_update_lfr_wiphy(struct hdd_context *hdd_ctx) bool fast_transition_enabled; bool lfr_enabled; bool ese_enabled; + bool roam_offload; ucfg_mlme_is_fast_transition_enabled(hdd_ctx->psoc, &fast_transition_enabled); ucfg_mlme_is_lfr_enabled(hdd_ctx->psoc, &lfr_enabled); ucfg_mlme_is_ese_enabled(hdd_ctx->psoc, &ese_enabled); - if (fast_transition_enabled || lfr_enabled || ese_enabled) + ucfg_mlme_get_roaming_offload(hdd_ctx->psoc, &roam_offload); + if (fast_transition_enabled || lfr_enabled || ese_enabled || + roam_offload) hdd_ctx->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM; } #else @@ -17446,11 +17449,13 @@ static void wlan_hdd_update_lfr_wiphy(struct hdd_context *hdd_ctx) { bool fast_transition_enabled; bool lfr_enabled; + bool roam_offload; ucfg_mlme_is_fast_transition_enabled(hdd_ctx->psoc, &fast_transition_enabled); ucfg_mlme_is_lfr_enabled(hdd_ctx->psoc, &lfr_enabled); - if (fast_transition_enabled || lfr_enabled) + ucfg_mlme_get_roaming_offload(hdd_ctx->psoc, &roam_offload); + if (fast_transition_enabled || lfr_enabled || roam_offload) hdd_ctx->wiphy->flags |= WIPHY_FLAG_SUPPORTS_FW_ROAM; } #endif