From 65351f134abd0476ba195c82751b4fa993c2e5db Mon Sep 17 00:00:00 2001 From: Jeff Hiner <37913568+jeff-hiner@users.noreply.github.com> Date: Tue, 6 Dec 2022 20:49:58 -0700 Subject: [PATCH] Avoid UB from out-of-bounds indexing --- hal/phydm/halrf/halrf_iqk.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hal/phydm/halrf/halrf_iqk.h b/hal/phydm/halrf/halrf_iqk.h index eb6579e..e70c1a8 100644 --- a/hal/phydm/halrf/halrf_iqk.h +++ b/hal/phydm/halrf/halrf_iqk.h @@ -46,7 +46,8 @@ RTL8812F_SUPPORT == 1 || RTL8197G_SUPPORT == 1) #define NUM 2 #else -#define NUM 1 +/* Other radios only have 1 RF path, but a lot of code indexes both A and B. */ +#define NUM 2 #endif /*@-----------------------End Define Parameters-----------------------*/