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
This commit is contained in:
Balaji Pothunoori 2022-06-05 21:49:54 +05:30 • committed by Madan Koyyalamudi
commit 9c739dc644

View file

@ -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