qcacld-3.0: Fill TDLS peer cap for add sta correctly

Fill TDLS 6Ghz peer capability correctly in Add STA
so that carrect Peer capability should be sent in
Peer Assoc.

Change-Id: I3eb6c387286b86e07c33be4751501b356b24ff68
CRs-Fixed: 3008407
This commit is contained in:
Utkarsh Bhatnagar 2021-08-05 22:35:08 +05:30 • committed by Madan Koyyalamudi
commit 6ce2ad98c2

View file

@ -2090,6 +2090,14 @@ static void lim_add_tdls_sta_he_config(tpAddStaParams add_sta_params,
sizeof(add_sta_params->he_config));
}
static void lim_add_tdls_sta_6ghz_he_cap(struct mac_context *mac_ctx,
tpAddStaParams add_sta_params,
tpDphHashNode sta_ds)
{
lim_update_he_6ghz_band_caps(mac_ctx, &sta_ds->he_6g_band_cap,
add_sta_params);
}
#else
static void lim_update_he_stbc_capable(tpAddStaParams add_sta_params)
{}
@ -2102,6 +2110,12 @@ static void lim_add_tdls_sta_he_config(tpAddStaParams add_sta_params,
tpDphHashNode sta_ds)
{
}
static void lim_add_tdls_sta_6ghz_he_cap(struct mac_context *mac_ctx,
tpAddStaParams add_sta_params,
tpDphHashNode sta_ds)
{
}
#endif
/**
@ -2381,6 +2395,10 @@ lim_add_sta(struct mac_context *mac_ctx,
add_sta_params->ht_caps,
add_sta_params->vht_caps);
lim_add_tdls_sta_he_config(add_sta_params, sta_ds);
if (lim_is_he_6ghz_band(session_entry))
lim_add_tdls_sta_6ghz_he_cap(mac_ctx, add_sta_params,
sta_ds);
}
#endif