Prechádzať zdrojové kódy

qcacmn: Rectify decrement of unparsed Non-Inheritance IE length

At the point in an MLO Manager utility function where we process the
length of the Element ID Extension List in the Non-Inheritance
Information Element, rectify the decrement of the unparsed length so
that it is decremented by the length of the Element ID Extension List
rather than the length of the Element ID List.

CRs-Fixed: 3095660
Change-Id: If4913a47762bc96f26875a04da2880409353fb0e
Krishna Rao 3 rokov pred
rodič
commit
c6f1baf93f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      umac/mlo_mgr/src/utils_mlo.c

+ 1 - 1
umac/mlo_mgr/src/utils_mlo.c

@@ -537,7 +537,7 @@ QDF_STATUS util_get_noninheritlists(uint8_t *buff, qdf_size_t buff_len,
 			*ninherit_elemextlist = ninherit_ie +
 				ELEM_ID_LIST_LEN_POS + (*ninherit_elemlist_len)
 				+ 2;
-			unparsed_len -= *ninherit_elemlist_len;
+			unparsed_len -= *ninherit_elemextlist_len;
 		}
 
 		if (unparsed_len > 0) {