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_run.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_run.c')
-rw-r--r-- | sys/dev/usb/if_run.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c index 06580940511..35b1f974605 100644 --- a/sys/dev/usb/if_run.c +++ b/sys/dev/usb/if_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_run.c,v 1.123 2017/08/14 05:52:21 stsp Exp $ */ +/* $OpenBSD: if_run.c,v 1.124 2017/10/26 15:00:28 mpi Exp $ */ /*- * Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -2593,7 +2593,6 @@ run_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct run_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)) @@ -2617,17 +2616,6 @@ run_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } 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: /* * This allows for fast channel switching in monitor mode |