git: d61064229fb2 - main - ifconfig: fix comparison in printmimo().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Jun 2023 09:16:20 UTC
The branch main has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=d61064229fb2f0bc770a835a7744bbe6e7c7e1fd
commit d61064229fb2f0bc770a835a7744bbe6e7c7e1fd
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-06-14 07:38:53 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-06-14 07:39:06 +0000
ifconfig: fix comparison in printmimo().
Differential Revision: https://reviews.freebsd.org/D40301
MFC after: 2 weeks
---
sbin/ifconfig/ifieee80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 88099aeb7094..480a8472f293 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3694,7 +3694,7 @@ printmimo(const struct ieee80211_mimo_info *mi)
int r = 0;
for (i = 0; i < IEEE80211_MAX_CHAINS; i++) {
- if (mi->ch[i].rssi != 0) {
+ if (mi->ch[i].rssi[0] != 0) {
r = 1;
break;
}