Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2025 19:04:26 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: 3bae83078261 - main - ath: fix athtools common code to correctly init state
Message-ID:  <202503281904.52SJ4QMa022666@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=3bae83078261cd1d51859f869a7b090aa3b428fc

commit 3bae83078261cd1d51859f869a7b090aa3b428fc
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-03-27 23:39:42 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-03-28 19:00:22 +0000

    ath: fix athtools common code to correctly init state
    
    Check req->s instead of s to know if the state needs to be
    cleaned up first.
    
    This error is from a refactor I did years ago.  Oops!
    
    Differential Revision:  https://reviews.freebsd.org/D49545
    Reviewed by:    thj
---
 tools/tools/ath/common/ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tools/ath/common/ctrl.c b/tools/tools/ath/common/ctrl.c
index 419e6fe8277e..ccea1b13401a 100644
--- a/tools/tools/ath/common/ctrl.c
+++ b/tools/tools/ath/common/ctrl.c
@@ -87,7 +87,7 @@ ath_driver_req_open(struct ath_driver_req *req, const char *ifname)
 {
 	int s;
 
-	if (s != -1)
+	if (req->s != -1)
 		ath_driver_req_close(req);
 
 	/* For now, netif socket, not /dev/ filedescriptor */



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