qcacld-3.0: Correct logic for roam fails in NUD case

If roaming is triggered by source CM_ROAMING_NUD_FAILURE,
then per the INI gEnableNUDTracking to check whether
disconnect current connection or not.
gEnableNUDTracking=2, keeping the connection
gEnableNUDTracking=3, disconnect the connection

Change-Id: I0f321dcf5f3fc1bf7d0c93fa0d70bf4770ccaf35
CRs-Fixed: 3412213
Tento commit je obsažen v:
Paul Zhang
2023-02-22 18:48:06 +08:00
odevzdal Madan Koyyalamudi
rodič 7d47235fc2
revize afd194fb4e
7 změnil soubory, kde provedl 106 přidání a 20 odebrání

Zobrazit soubor

@@ -44,12 +44,21 @@
#ifdef WLAN_NUD_TRACKING
bool
ucfg_dp_is_roam_after_nud_enabled(struct wlan_objmgr_psoc *psoc);
bool
ucfg_dp_is_disconect_after_roam_fail(struct wlan_objmgr_psoc *psoc);
#else
static inline bool
ucfg_dp_is_roam_after_nud_enabled(struct wlan_objmgr_psoc *psoc)
{
return false;
}
static inline bool
ucfg_dp_is_disconect_after_roam_fail(struct wlan_objmgr_psoc *psoc)
{
return false;
}
#endif
/**

Zobrazit soubor

@@ -1351,6 +1351,18 @@ ucfg_dp_is_roam_after_nud_enabled(struct wlan_objmgr_psoc *psoc)
return false;
}
bool
ucfg_dp_is_disconect_after_roam_fail(struct wlan_objmgr_psoc *psoc)
{
struct wlan_dp_psoc_context *dp_ctx = dp_psoc_get_priv(psoc);
struct wlan_dp_psoc_cfg *dp_cfg = &dp_ctx->dp_cfg;
if (dp_cfg->enable_nud_tracking == DP_DISCONNECT_AFTER_ROAM_FAIL)
return true;
return false;
}
#endif
int ucfg_dp_bbm_context_init(struct wlan_objmgr_psoc *psoc)