From a54a4e796c1947803f8922456c3f484e9e5e180f Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Thu, 19 Oct 2017 11:16:18 +0000 Subject: Disable promisc mode and accepting all multicast packets. These should be properly enabled by the correct ioctls. --- sys/dev/ic/bwfm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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); -- cgit v1.2.3