aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2022-08-19 19:48:39 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2022-12-21 20:36:59 +0000
commitec22a3a259193685afaea1667a39266264c65fd3 (patch)
tree001cc297a12a4661d66e343101fa0063374e6aae /sys/dev/ath
parent79422a716d7cc7857e8b94ccea98ff68b38f6324 (diff)
downloadsrc-ec22a3a259193685afaea1667a39266264c65fd3.tar.gz
src-ec22a3a259193685afaea1667a39266264c65fd3.zip
DrvAPI: Trivial mechanical conversions for various drivers
Mechanically convert the following drivers, with trivial changes: * ipw(4) * igc(4) * enetc(4) * malo(4) * nfe(4) * bxe(4) * awg(4) * otus(4) * rtwn(4) * bnxt(4) * ath(4) Sponsored by: Juniper Networks, Inc.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath_ioctl.c2
-rw-r--r--sys/dev/ath/if_ath_led.c1
-rw-r--r--sys/dev/ath/if_ath_misc.h2
-rw-r--r--sys/dev/ath/if_ath_tdma.c2
4 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath_ioctl.c b/sys/dev/ath/if_ath_ioctl.c
index f58742d6e5fb..cec769d615d7 100644
--- a/sys/dev/ath/if_ath_ioctl.c
+++ b/sys/dev/ath/if_ath_ioctl.c
@@ -242,7 +242,7 @@ ath_ioctl(struct ieee80211com *ic, u_long cmd, void *data)
switch (cmd) {
case SIOCGATHSTATS: {
struct ieee80211vap *vap;
- struct ifnet *ifp;
+ if_t ifp;
const HAL_RATE_TABLE *rt;
/* NB: embed these numbers to get a consistent view */
diff --git a/sys/dev/ath/if_ath_led.c b/sys/dev/ath/if_ath_led.c
index 8b4ac821f2be..e8da930f7217 100644
--- a/sys/dev/ath/if_ath_led.c
+++ b/sys/dev/ath/if_ath_led.c
@@ -78,6 +78,7 @@ __FBSDID("$FreeBSD$");
#include <net/if_arp.h>
#include <net/ethernet.h>
#include <net/if_llc.h>
+#include <net/if_var.h>
#include <net80211/ieee80211_var.h>
#include <net80211/ieee80211_regdomain.h>
diff --git a/sys/dev/ath/if_ath_misc.h b/sys/dev/ath/if_ath_misc.h
index b108c29bab4b..c19e028e64bd 100644
--- a/sys/dev/ath/if_ath_misc.h
+++ b/sys/dev/ath/if_ath_misc.h
@@ -105,7 +105,7 @@ extern void ath_tx_update_tim(struct ath_softc *sc,
* if_ath.c and do the ath_start() call there. Once that's done,
* we can kill this.
*/
-extern void ath_start(struct ifnet *ifp);
+extern void ath_start(if_t ifp);
extern void ath_start_task(void *arg, int npending);
extern void ath_tx_dump(struct ath_softc *sc, struct ath_txq *txq);
diff --git a/sys/dev/ath/if_ath_tdma.c b/sys/dev/ath/if_ath_tdma.c
index f0900435c6d6..420b4a2b6d68 100644
--- a/sys/dev/ath/if_ath_tdma.c
+++ b/sys/dev/ath/if_ath_tdma.c
@@ -290,7 +290,7 @@ ath_tdma_config(struct ath_softc *sc, struct ieee80211vap *vap)
/* XXX short preamble assumed */
/* XXX non-11n rate assumed */
sc->sc_tdmaguard = ath_hal_computetxtime(ah, sc->sc_currates,
- vap->iv_ifp->if_mtu + IEEE80211_MAXOVERHEAD, rix, AH_TRUE,
+ if_getmtu(vap->iv_ifp) + IEEE80211_MAXOVERHEAD, rix, AH_TRUE,
AH_TRUE);
}