summaryrefslogtreecommitdiff
path: root/sys/dev/ic/bwfm.c
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2017-10-19 11:16:18 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2017-10-19 11:16:18 +0000
commita54a4e796c1947803f8922456c3f484e9e5e180f (patch)
treebce9acd5f6bfc419e6405d98b2fc4e3674d67f14 /sys/dev/ic/bwfm.c
parentdc60aa1d14faf2b7e1295889a03f58cce0556fd3 (diff)
Disable promisc mode and accepting all multicast packets. These should
be properly enabled by the correct ioctls.
Diffstat (limited to 'sys/dev/ic/bwfm.c')
-rw-r--r--sys/dev/ic/bwfm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c
index 395ea21d1b7..0a8caa0bff1 100644
--- a/sys/dev/ic/bwfm.c
+++ b/sys/dev/ic/bwfm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwfm.c,v 1.12 2017/10/18 20:24:20 patrick Exp $ */
+/* $OpenBSD: bwfm.c,v 1.13 2017/10/19 11:16:17 patrick Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
@@ -439,9 +439,11 @@ bwfm_init(struct ifnet *ifp)
free(params, M_TEMP, sizeof(*params));
}
- /* XXX: added for testing only, remove */
+#if 0
+ /* TODO: set these on proper ioctl */
bwfm_fwvar_var_set_int(sc, "allmulti", 1);
bwfm_fwvar_cmd_set_int(sc, BWFM_C_SET_PROMISC, 1);
+#endif
ifp->if_flags |= IFF_RUNNING;
ifq_clr_oactive(&ifp->if_snd);