qcacld-3.0: change dutycycle level array size to correct value

As now throttle level is extended to THROTTLE_LEVEL_5,
previous array 'dutycycle_level' of size 4 may use index
value 4..5 during initialization. Change the array size to
THROTTLE_LEVEL_MAX to avoid out of bound accessing.

Change-Id: I5f9f8cb15e6fbdd8e5b4deccddca954fc73cd8e3
CRs-Fixed: 3433333
Этот коммит содержится в:
Zhaoyang Liu
2023-03-14 18:41:26 +08:00
коммит произвёл Madan Koyyalamudi
родитель 6ef880ad52
Коммит afa9a28c32

Просмотреть файл

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -81,7 +81,7 @@ struct txrx_pdev_cfg_t {
u32 max_vdev;
u32 max_nbuf_frags;
u32 throttle_period_ms;
u8 dutycycle_level[4];
u8 dutycycle_level[THROTTLE_LEVEL_MAX];
enum wlan_frm_fmt frame_type;
u8 rx_fwd_disabled;
u8 is_packet_log_enabled;