The branch main has been updated by adrian:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3bae83078261cd1d51859f869a7b090aa3b428fc

commit 3bae83078261cd1d51859f869a7b090aa3b428fc
Author:     Adrian Chadd <adr...@freebsd.org>
AuthorDate: 2025-03-27 23:39:42 +0000
Commit:     Adrian Chadd <adr...@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 */

Reply via email to