diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-26 15:00:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-26 15:00:29 +0000 |
commit | 7d8adc66b5e5226092377e2b475f9ef528ff9464 (patch) | |
tree | 1928ebb4566f6659acfec473d51070e6d2984df3 /sys/dev/usb/if_otus.c | |
parent | 8896e57cceaa27ebf468942ffc8dde08e9fb0da2 (diff) |
Move common code to add/remove multicast filters to ieee80211_ioctl(9).
ok jsg@, stsp@
Diffstat (limited to 'sys/dev/usb/if_otus.c')
-rw-r--r-- | sys/dev/usb/if_otus.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/usb/if_otus.c b/sys/dev/usb/if_otus.c index d10017d61ee..f3f9019bc49 100644 --- a/sys/dev/usb/if_otus.c +++ b/sys/dev/usb/if_otus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_otus.c,v 1.59 2017/07/20 22:29:26 stsp Exp $ */ +/* $OpenBSD: if_otus.c,v 1.60 2017/10/26 15:00:28 mpi Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -1469,7 +1469,6 @@ otus_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct otus_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; - struct ifreq *ifr; int s, error = 0; if (usbd_is_dying(sc->sc_udev)) @@ -1497,15 +1496,6 @@ otus_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) sc->sc_if_flags = ifp->if_flags; break; - case SIOCADDMULTI: - case SIOCDELMULTI: - ifr = (struct ifreq *)data; - error = (cmd == SIOCADDMULTI) ? - ether_addmulti(ifr, &ic->ic_ac) : - ether_delmulti(ifr, &ic->ic_ac); - if (error == ENETRESET) - error = 0; - break; case SIOCS80211CHANNEL: error = ieee80211_ioctl(ifp, cmd, data); if (error == ENETRESET && |