From nobody Mon Feb 06 17:53:55 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9Ym34hxJz3n0X7; Mon, 6 Feb 2023 17:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9Ym33wrzz4X1T; Mon, 6 Feb 2023 17:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675706035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M65qyunqJ/lEb4yXgBhcmt8vBTvDJqwi/x4KtXRS3yQ=; b=mtqXdV1sOSjS/dhQ/rMqUNcFvZQymOIJCi5Z0zDpXHDId6iz7qRgh01bXmUklhiTK1JPGH vJUdyMSwZ7w5eVNtlji5O8EwodXv+FPDf6ilaI2pulJcsGfQ5dLksmxU5KS+XZulDRK7hv p1QKUIS9g4s8nvm6g82hebO2ui/3XCmRcL7WW+gHG4p5OzQPmRHbw3PU8SDApW0lMTjbL2 HyD6flOFmmfN1AhcyS1fSl2yqaH0Q8dBL2T1Q7Y9eGEsGzZpgiCUpqC91LAEFd/cyPpfdF RNAqUiOm//sCjqTQhi/90sLBs4FVOFEW+f7FafTbPvPOAJbO962LXuu4oV2v+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675706035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M65qyunqJ/lEb4yXgBhcmt8vBTvDJqwi/x4KtXRS3yQ=; b=fZRM3iRJUSlBiDUJTKhv6QrXhLfbKYcMdCRvohY07HqU+a2UFreffdBTw7ZdW3pK9CU9nu 1t0+tgNJyQ63CCB2GUdcbGZt+8IBPBWAiNoNVCs9m4ns24c/7g0DvL1F96cr6RXLaPrXQM vqsXBrQzddc4Ptt5/0LIN3stN90BMS7rThyosodapZYfolf+I1Bgtnp0VYlYqeHdaokhpK 5jadzeN8fvnj5Ls87S9yISt6wmSoBJYLceiQI6y7dxHh6CGcIV3Y019Z42BACeZSariMY5 w6OKJZ9Mt98hiBdAoH8Ksdo5atQFLNZmcNYNRidZmeCzHTqIgdUI3feZ9SmWig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675706035; a=rsa-sha256; cv=none; b=jtLk/BbIcLQVhd8sNsyzn8byREJaoZQjENXQkYfDQ9AvGr1QPdsKSssvyf5QtKVawSeGlQ +66b+zMgE6T4C3UMYBSzDbixY4MTeGkPPbVsLphGk7osjoy7lHBNbzLdZlEy4lekypasmC ESAoXe58Ev0VHuW5cOYftSId+1TP+WpLGJCS+erDWcmtJJq42s7yxafra6/jZEIcMAy7CM VjtBmnMc5aSKaXAJk2ZPXs756ySygN+3DptWBFEvQf/RrqH4+EcriwkijYZL8jV7F6A5EL c84FvUHvjXkW5RYJmnEJUrIQYDbnN9QTAp1BwG7uQvxqj+vMk7FXoYGMDmsw6w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9Ym330VkzkMR; Mon, 6 Feb 2023 17:53:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 316Hrt67074191; Mon, 6 Feb 2023 17:53:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316HrtQt074190; Mon, 6 Feb 2023 17:53:55 GMT (envelope-from git) Date: Mon, 6 Feb 2023 17:53:55 GMT Message-Id: <202302061753.316HrtQt074190@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: a6c0f09aa35d - main - ath(4) IfAPI fixups List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a6c0f09aa35da3700fa600b2913d95759cc36fe1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=a6c0f09aa35da3700fa600b2913d95759cc36fe1 commit a6c0f09aa35da3700fa600b2913d95759cc36fe1 Author: Justin Hibbits AuthorDate: 2023-01-24 20:59:46 +0000 Commit: Justin Hibbits CommitDate: 2023-02-06 17:32:05 +0000 ath(4) IfAPI fixups Use the if_getcounter() IfAPI instead of accessing the ifnet directly. Sponsored by: Juniper Networks, Inc. --- sys/dev/ath/if_ath_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ath/if_ath_ioctl.c b/sys/dev/ath/if_ath_ioctl.c index cec769d615d7..a6a0aa35171c 100644 --- a/sys/dev/ath/if_ath_ioctl.c +++ b/sys/dev/ath/if_ath_ioctl.c @@ -250,9 +250,9 @@ ath_ioctl(struct ieee80211com *ic, u_long cmd, void *data) sc->sc_stats.ast_rx_packets = 0; TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) { ifp = vap->iv_ifp; - sc->sc_stats.ast_tx_packets += ifp->if_get_counter(ifp, + sc->sc_stats.ast_tx_packets += if_getcounter(ifp, IFCOUNTER_OPACKETS); - sc->sc_stats.ast_rx_packets += ifp->if_get_counter(ifp, + sc->sc_stats.ast_rx_packets += if_getcounter(ifp, IFCOUNTER_IPACKETS); } sc->sc_stats.ast_tx_rssi = ATH_RSSI(sc->sc_halstats.ns_avgtxrssi);