Bläddra i källkod

qcacmn: Enhancement for RNR IE processing

Since the idx is always initialized zero in function util_scan_parse_rnr_ie.
If there are two or more RNR IEs in the frame, then the RNR info is
overwritten by the last one.

Change-Id: If6d47871267ea43c3a5b3130cae73ebd0de45930
CRs-Fixed: 3183233
Paul Zhang 3 år sedan
förälder
incheckning
28df9f4e53
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      umac/scan/dispatcher/src/wlan_scan_utils_api.c

+ 2 - 1
umac/scan/dispatcher/src/wlan_scan_utils_api.c

@@ -885,12 +885,13 @@ util_scan_parse_rnr_ie(struct scan_cache_entry *scan_entry,
 		       struct ie_header *ie)
 {
 	uint32_t rnr_ie_len;
-	uint16_t tbtt_count, tbtt_length, i, fieldtype, idx = 0;
+	uint16_t tbtt_count, tbtt_length, i, fieldtype, idx;
 	uint8_t *data;
 	struct neighbor_ap_info_field *neighbor_ap_info;
 
 	rnr_ie_len = ie->ie_len;
 	data = (uint8_t *)ie + sizeof(struct ie_header);
+	idx = scan_entry->rnr.count;
 
 	while (data < ((uint8_t *)ie + rnr_ie_len + 2)) {
 		neighbor_ap_info = (struct neighbor_ap_info_field *)data;