Эх сурвалжийг харах

qcacld-3.0: Check vdev id against max sap context array size

Currently vdev_id in mac_ctx->sap.sapCtxList[vdev_id] is check against
WLAN_UMAC_VDEV_ID_MAX(255), but sapCtxList[] array size is
SAP_MAX_NUM_SESSION(5), so change to check against max sap context
array size.

Change-Id: Id8370512194e6585c9e305b2c5a896e6d7bdbe0b
CRs-Fixed: 3671591
Will Huang 1 жил өмнө
parent
commit
4b9bc8d052

+ 1 - 1
core/sap/src/sap_module.c

@@ -4437,7 +4437,7 @@ void wlansap_get_user_config_acs_ch_list(uint8_t vdev_id,
 		return;
 	}
 
-	if (vdev_id >= WLAN_UMAC_VDEV_ID_MAX)
+	if (vdev_id >= SAP_MAX_NUM_SESSION)
 		return;
 
 	sap_ctx = mac_ctx->sap.sapCtxList[vdev_id].sap_context;