summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_upgt.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-26 15:00:29 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-26 15:00:29 +0000
commit7d8adc66b5e5226092377e2b475f9ef528ff9464 (patch)
tree1928ebb4566f6659acfec473d51070e6d2984df3 /sys/dev/usb/if_upgt.c
parent8896e57cceaa27ebf468942ffc8dde08e9fb0da2 (diff)
Move common code to add/remove multicast filters to ieee80211_ioctl(9).
ok jsg@, stsp@
Diffstat (limited to 'sys/dev/usb/if_upgt.c')
-rw-r--r--sys/dev/usb/if_upgt.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index 5d3ce0b8118..2731503b671 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.80 2017/03/26 15:31:15 deraadt Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.81 2017/10/26 15:00:28 mpi Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -1126,7 +1126,6 @@ upgt_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct upgt_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifreq *ifr;
int s, error = 0;
uint8_t chan;
@@ -1145,15 +1144,6 @@ upgt_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
upgt_stop(sc);
}
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:
/* allow fast channel switching in monitor mode */
error = ieee80211_ioctl(ifp, cmd, data);