git: 1ef1b088c8c8 - stable/13 - rtwn: Fix mismatches in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 00:30:01 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1ef1b088c8c8b3809e8ba808781f77c7258e6936 commit 1ef1b088c8c8b3809e8ba808781f77c7258e6936 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-12-07 20:33:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-05-03 00:24:05 +0000 rtwn: Fix mismatches in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37550 (cherry picked from commit 8bc615f5919f027cdf09825764276ab41a38375e) --- sys/dev/rtwn/rtl8188e/r88e.h | 4 +++- sys/dev/rtwn/rtl8192c/r92c.h | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/dev/rtwn/rtl8188e/r88e.h b/sys/dev/rtwn/rtl8188e/r88e.h index b6cd6053d015..cbf1161f7078 100644 --- a/sys/dev/rtwn/rtl8188e/r88e.h +++ b/sys/dev/rtwn/rtl8188e/r88e.h @@ -21,6 +21,8 @@ #ifndef RTL8188E_H #define RTL8188E_H +#include <dev/rtwn/if_rtwn_ridx.h> + /* * Global definitions. */ @@ -46,7 +48,7 @@ uint8_t r88e_temp_read(struct rtwn_softc *); /* r88e_chan.c */ void r88e_get_txpower(struct rtwn_softc *, int, - struct ieee80211_channel *, uint8_t[]); + struct ieee80211_channel *, uint8_t[RTWN_RIDX_COUNT]); void r88e_set_bw20(struct rtwn_softc *, uint8_t); void r88e_set_gain(struct rtwn_softc *, uint8_t); diff --git a/sys/dev/rtwn/rtl8192c/r92c.h b/sys/dev/rtwn/rtl8192c/r92c.h index 4d4307c786a4..925ce7a0adb4 100644 --- a/sys/dev/rtwn/rtl8192c/r92c.h +++ b/sys/dev/rtwn/rtl8192c/r92c.h @@ -21,6 +21,8 @@ #ifndef RTL8192C_H #define RTL8192C_H +#include <dev/rtwn/if_rtwn_ridx.h> + /* * Global definitions. */ @@ -54,9 +56,9 @@ uint8_t r92c_temp_read(struct rtwn_softc *); /* r92c_chan.c */ void r92c_get_txpower(struct rtwn_softc *, int, - struct ieee80211_channel *, uint8_t[]); + struct ieee80211_channel *, uint8_t[RTWN_RIDX_COUNT]); void r92c_write_txpower(struct rtwn_softc *, int, - uint8_t power[]); + uint8_t power[RTWN_RIDX_COUNT]); void r92c_set_bw20(struct rtwn_softc *, uint8_t); void r92c_set_chan(struct rtwn_softc *, struct ieee80211_channel *); void r92c_set_gain(struct rtwn_softc *, uint8_t);