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/pci/if_iwi.c | |
parent | 8896e57cceaa27ebf468942ffc8dde08e9fb0da2 (diff) |
Move common code to add/remove multicast filters to ieee80211_ioctl(9).
ok jsg@, stsp@
Diffstat (limited to 'sys/dev/pci/if_iwi.c')
-rw-r--r-- | sys/dev/pci/if_iwi.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index 2377853bc80..f60f9113333 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwi.c,v 1.136 2017/03/29 16:42:25 stsp Exp $ */ +/* $OpenBSD: if_iwi.c,v 1.137 2017/10/26 15:00:28 mpi Exp $ */ /*- * Copyright (c) 2004-2008 @@ -1445,8 +1445,6 @@ int iwi_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct iwi_softc *sc = ifp->if_softc; - struct ieee80211com *ic = &sc->sc_ic; - struct ifreq *ifr; int s, error = 0; error = rw_enter(&sc->sc_rwlock, RW_WRITE | RW_INTR); @@ -1468,17 +1466,6 @@ iwi_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 SIOCG80211TXPOWER: /* * If the hardware radio transmitter switch is off, report a |