git: f167ba73574a - main - rtwn: fix RTWN_RIDX_VHT_MCS() macro
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Jan 2025 00:11:30 UTC
The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=f167ba73574a3e1757dd95265aa0211cb16c365e commit f167ba73574a3e1757dd95265aa0211cb16c365e Author: Adrian Chadd <adrian@FreeBSD.org> AuthorDate: 2025-01-13 03:14:21 +0000 Commit: Adrian Chadd <adrian@FreeBSD.org> CommitDate: 2025-01-14 00:11:18 +0000 rtwn: fix RTWN_RIDX_VHT_MCS() macro Add parenthesis as appropriate. Oops! --- sys/dev/rtwn/if_rtwn_ridx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/rtwn/if_rtwn_ridx.h b/sys/dev/rtwn/if_rtwn_ridx.h index 0a1ea35303f1..616ba8d6d724 100644 --- a/sys/dev/rtwn/if_rtwn_ridx.h +++ b/sys/dev/rtwn/if_rtwn_ridx.h @@ -53,7 +53,7 @@ * goes from 44 -> 83. */ #define RTWN_RIDX_VHT_MCS_SHIFT 44 -#define RTWN_RIDX_VHT_MCS(s, i) (RTWN_RIDX_VHT_MCS_SHIFT + ((10*s) + i)) +#define RTWN_RIDX_VHT_MCS(s, i) (RTWN_RIDX_VHT_MCS_SHIFT + ((10*(s)) + (i))) /* * The total amount of rate indexes, CCK, OFDM, HT MCS0..31,