summaryrefslogtreecommitdiff
path: root/sys/dev/ic/acx.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-25 12:48:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-25 12:48:47 +0000
commit8923d5ed93752d0f6ec3ca6a68991e424b3b0275 (patch)
treecbdfad843b46567e72d660a055b75e71ec05c710 /sys/dev/ic/acx.c
parentb976dfe799ad6a51ea0610e588a6eddb4d1c6123 (diff)
arp_ifinit() is no longer needed.
Diffstat (limited to 'sys/dev/ic/acx.c')
-rw-r--r--sys/dev/ic/acx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index 7e8a78d5626..c932aa64574 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.112 2015/09/06 04:10:34 deraadt Exp $ */
+/* $OpenBSD: acx.c,v 1.113 2015/10/25 12:48:46 mpi Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -839,7 +839,6 @@ acx_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct acx_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifaddr *ifa;
struct ifreq *ifr;
int s, error = 0;
uint8_t chan;
@@ -848,10 +847,7 @@ acx_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
switch (cmd) {
case SIOCSIFADDR:
- ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&ic->ic_ac, ifa);
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {