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_iwm.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_iwm.c')
-rw-r--r-- | sys/dev/pci/if_iwm.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 6c5ea38f322..cf1749b1010 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.216 2017/10/22 09:55:02 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.217 2017/10/26 15:00:28 mpi Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -6650,8 +6650,6 @@ int iwm_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct iwm_softc *sc = ifp->if_softc; - struct ieee80211com *ic = &sc->sc_ic; - struct ifreq *ifr; int s, err = 0, generation = sc->sc_generation; /* @@ -6682,16 +6680,6 @@ iwm_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } break; - case SIOCADDMULTI: - case SIOCDELMULTI: - ifr = (struct ifreq *)data; - err = (cmd == SIOCADDMULTI) ? - ether_addmulti(ifr, &ic->ic_ac) : - ether_delmulti(ifr, &ic->ic_ac); - if (err == ENETRESET) - err = 0; - break; - default: err = ieee80211_ioctl(ifp, cmd, data); } |