qcacmn: Restrict max tbtt info length to current max supported length

Currently if the TBTT length is more than max supported length
driver doesn't the mld information from the RNR IE. This leads
to SLO rather than MLO.

Add the fix to restrict the max length to current supported max
length which helps to parse the ML information further
results in ML association.

CRs-Fixed: 3679296
Change-Id: Id8c58044be162f638ed5e74e0fd04aa0b77780f5
Šī revīzija ir iekļauta:
Arun Kumar Khandavalli
2023-12-11 17:41:54 +05:30
revīziju iesūtīja Ravindra Konda
vecāks 803410c7fc
revīzija a6fb445d02
2 mainīti faili ar 26 papildinājumiem un 9 dzēšanām

Parādīt failu

@@ -479,6 +479,9 @@ struct neighbor_ap_info_field {
* short ssid, bss params and 20MHz PSD
* bssid, short ssid, bss params, 20MHz PSD and MLD param
* @TBTT_NEIGHBOR_AP_BSSID_S_SSID_BSS_PARAM_20MHZ_PSD_MLD_PARAM:
* @TBTT_NEIGHBOR_AP_PARAM_AFTER_LAST: This is to calculate the max supported
* param length and maintain it in TBTT_NEIGHBOR_AP_PARAM_MAX
* @TBTT_NEIGHBOR_AP_PARAM_MAX: This is to track the max supported param length
*/
enum tbtt_information_field {
TBTT_NEIGHBOR_AP_OFFSET_ONLY = 1,
@@ -491,7 +494,11 @@ enum tbtt_information_field {
TBTT_NEIGHBOR_AP_BSSSID_S_SSID = 11,
TBTT_NEIGHBOR_AP_BSSID_S_SSID_BSS_PARAM = 12,
TBTT_NEIGHBOR_AP_BSSID_S_SSID_BSS_PARAM_20MHZ_PSD = 13,
TBTT_NEIGHBOR_AP_BSSID_S_SSID_BSS_PARAM_20MHZ_PSD_MLD_PARAM = 16
TBTT_NEIGHBOR_AP_BSSID_S_SSID_BSS_PARAM_20MHZ_PSD_MLD_PARAM = 16,
/* keep last */
TBTT_NEIGHBOR_AP_PARAM_AFTER_LAST,
TBTT_NEIGHBOR_AP_PARAM_MAX = TBTT_NEIGHBOR_AP_PARAM_AFTER_LAST - 1,
};
/**