diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-01-08 00:46:16 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-01-08 00:46:16 +0000 |
commit | 6046e163e756f82ffd1d5f62a4c669acaa4c5910 (patch) | |
tree | cff02621a31fe6cef12c4980361e923f6f6b4c7b /sys/dev/ic | |
parent | 71e18d394779ba21e29a3d6b0a60e01ade5fe47e (diff) |
Delete flowrings when we take the interface down or change its
settings.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/bwfm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c index 5903821136a..53838cf653c 100644 --- a/sys/dev/ic/bwfm.c +++ b/sys/dev/ic/bwfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfm.c,v 1.27 2018/01/05 23:13:04 patrick Exp $ */ +/* $OpenBSD: bwfm.c,v 1.28 2018/01/08 00:46:15 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -318,6 +318,9 @@ bwfm_init(struct ifnet *ifp) uint8_t evmask[BWFM_EVENT_MASK_LEN]; struct bwfm_join_pref_params join_pref[2]; + if (sc->sc_bus_ops->bs_init) + sc->sc_bus_ops->bs_init(sc); + if (bwfm_fwvar_var_set_int(sc, "mpc", 1)) { printf("%s: could not set mpc\n", DEVNAME(sc)); return; @@ -424,6 +427,9 @@ bwfm_stop(struct ifnet *ifp) bwfm_fwvar_cmd_set_int(sc, BWFM_C_DOWN, 1); bwfm_fwvar_cmd_set_int(sc, BWFM_C_SET_PM, 0); + + if (sc->sc_bus_ops->bs_stop) + sc->sc_bus_ops->bs_stop(sc); } void |