Bläddra i källkod

qcacld-3.0: Calculate buf_len properly for extscan hotlist event buffer

Calculate buf_len properly for extscan hotlist event buffer in
wma_extscan_hotlist_match_event_handler()

Change-Id: I923f0d86d83902539a7d3a7b8ea8322dcb83ba00
CRs-Fixed: 2161977
Himanshu Agarwal 7 år sedan
förälder
incheckning
ff399e36cb
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/wma/src/wma_scan_roam.c

+ 1 - 1
core/wma/src/wma_scan_roam.c

@@ -4260,7 +4260,7 @@ int wma_extscan_hotlist_match_event_handler(void *handle,
 	}
 
 	buf_len = sizeof(wmi_extscan_hotlist_match_event_fixed_param) +
-		  (4 * sizeof(uint32_t)) +
+		  WMI_TLV_HDR_SIZE +
 		  (numap * sizeof(wmi_extscan_wlan_descriptor));
 
 	if (buf_len > len) {