Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2025 00:11:30 GMT
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f167ba73574a - main - rtwn: fix RTWN_RIDX_VHT_MCS() macro
Message-ID:  <202501140011.50E0BUoH078557@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501140011.50E0BUoH078557>