|
@@ -1740,7 +1740,8 @@ static void util_scan_update_esp_data(struct wlan_esp_ie *esp_information,
|
|
|
esp_ie = (struct wlan_esp_ie *)
|
|
|
util_scan_entry_esp_info(scan_entry);
|
|
|
|
|
|
- total_elements = esp_ie->esp_len;
|
|
|
+ // Ignore ESP_ID_EXTN element
|
|
|
+ total_elements = esp_ie->esp_len - 1;
|
|
|
data = (uint8_t *)esp_ie + 3;
|
|
|
do_div(total_elements, ESP_INFORMATION_LIST_LENGTH);
|
|
|
|
|
@@ -1750,7 +1751,7 @@ static void util_scan_update_esp_data(struct wlan_esp_ie *esp_information,
|
|
|
}
|
|
|
|
|
|
for (i = 0; i < total_elements &&
|
|
|
- data < ((uint8_t *)esp_ie + esp_ie->esp_len + 3); i++) {
|
|
|
+ data < ((uint8_t *)esp_ie + esp_ie->esp_len); i++) {
|
|
|
esp_info = (struct wlan_esp_info *)data;
|
|
|
if (esp_info->access_category == ESP_AC_BK) {
|
|
|
qdf_mem_copy(&esp_information->esp_info_AC_BK,
|