summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-07-22 17:18:10 +0000
committerriastradh <riastradh@NetBSD.org>2020-07-22 17:18:10 +0000
commit50e3cb2018da047da4a1f76625607f2a2fee2ba7 (patch)
tree09ab485d9741fedfb5bf586c028c47b7f5d250ef /sys/dev/ic
parent65a4597311324e04403ee872b959bfc761902f94 (diff)
Sort #includes. Nix trailing whitespace.
No functional change intended.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/bwfm.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c
index 64b498ae73f..f115fae1a3c 100644
--- a/sys/dev/ic/bwfm.c
+++ b/sys/dev/ic/bwfm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bwfm.c,v 1.26 2020/07/13 05:38:52 mrg Exp $ */
+/* $NetBSD: bwfm.c,v 1.27 2020/07/22 17:18:49 riastradh Exp $ */
/* $OpenBSD: bwfm.c,v 1.5 2017/10/16 22:27:16 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
@@ -18,21 +18,23 @@
*/
#include <sys/param.h>
-#include <sys/systm.h>
+#include <sys/types.h>
+
#include <sys/buf.h>
-#include <sys/kernel.h>
#include <sys/device.h>
+#include <sys/kernel.h>
+#include <sys/kmem.h>
+#include <sys/pcq.h>
#include <sys/queue.h>
#include <sys/socket.h>
-#include <sys/kmem.h>
+#include <sys/systm.h>
#include <sys/workqueue.h>
-#include <sys/pcq.h>
#include <net/bpf.h>
#include <net/if.h>
#include <net/if_dl.h>
-#include <net/if_media.h>
#include <net/if_ether.h>
+#include <net/if_media.h>
#include <netinet/in.h>
@@ -381,7 +383,7 @@ bwfm_attach(struct bwfm_softc *sc)
sizeof(bandlist))) {
printf("%s: couldn't get supported band list\n", DEVNAME(sc));
return;
- }
+ }
const u_int nbands = le32toh(bandlist[0]);
for (i = 1; i <= MIN(nbands, __arraycount(bandlist) - 1); i++) {
switch (le32toh(bandlist[i])) {
@@ -430,7 +432,7 @@ bwfm_attach(struct bwfm_softc *sc)
return; /* Error */
}
-
+
ieee80211_ifattach(ic);
sc->sc_newstate = ic->ic_newstate;
ic->ic_newstate = bwfm_newstate;
@@ -579,7 +581,7 @@ bwfm_init(struct ifnet *ifp)
#ifdef BWFM_DEBUG
memset(evmask, 0xff, sizeof(evmask));
#endif
-
+
if (bwfm_fwvar_var_set_data(sc, "event_msgs", evmask, sizeof(evmask))) {
printf("%s: could not set event mask\n", DEVNAME(sc));
return EIO;