mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
4bb11ee937
commit
9c739dc644
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue