mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-09-07 07:45:06 +00:00
Avoid UB from out-of-bounds indexing
This commit is contained in:
parent
9e9eec8fc8
commit
65351f134a
@ -46,7 +46,8 @@
|
|||||||
RTL8812F_SUPPORT == 1 || RTL8197G_SUPPORT == 1)
|
RTL8812F_SUPPORT == 1 || RTL8197G_SUPPORT == 1)
|
||||||
#define NUM 2
|
#define NUM 2
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
/*@-----------------------End Define Parameters-----------------------*/
|
/*@-----------------------End Define Parameters-----------------------*/
|
||||||
|
Loading…
Reference in New Issue
Block a user