summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormsaitoh <msaitoh@NetBSD.org>2019-12-05 03:11:40 +0000
committermsaitoh <msaitoh@NetBSD.org>2019-12-05 03:11:40 +0000
commit5658483333d6d043e88955f7fcb6e6921885bddc (patch)
tree1d7c5dfc2e164bb7cb32f0cf546b6e075316db9f /sys/dev
parentf93dd7ae79100fc97d673c95baaa98d7300f562b (diff)
Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/awi.c9
-rw-r--r--sys/dev/ic/wi.c9
-rw-r--r--sys/dev/usb/if_atu.c10
3 files changed, 6 insertions, 22 deletions
diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c
index 07810693383..9ab2e3da4af 100644
--- a/sys/dev/ic/awi.c
+++ b/sys/dev/ic/awi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: awi.c,v 1.98 2019/05/28 07:41:48 msaitoh Exp $ */
+/* $NetBSD: awi.c,v 1.99 2019/12/05 03:11:40 msaitoh Exp $ */
/*-
* Copyright (c) 1999,2000,2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.98 2019/05/28 07:41:48 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.99 2019/12/05 03:11:40 msaitoh Exp $");
#include "opt_inet.h"
@@ -833,7 +833,6 @@ static int
awi_ioctl(struct ifnet *ifp, u_long cmd, void *data)
{
struct awi_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *)data;
int s, error;
s = splnet();
@@ -858,10 +857,6 @@ awi_ioctl(struct ifnet *ifp, u_long cmd, void *data)
} else if (sc->sc_enabled)
awi_stop(ifp, 1);
break;
- case SIOCSIFMEDIA:
- case SIOCGIFMEDIA:
- error = ifmedia_ioctl(ifp, ifr, &sc->sc_ic.ic_media, cmd);
- break;
case SIOCADDMULTI:
case SIOCDELMULTI:
error = ether_ioctl(ifp, cmd, data);
diff --git a/sys/dev/ic/wi.c b/sys/dev/ic/wi.c
index 1fdeb7a4c6b..b8c494e3c1b 100644
--- a/sys/dev/ic/wi.c
+++ b/sys/dev/ic/wi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wi.c,v 1.253 2019/05/28 07:41:48 msaitoh Exp $ */
+/* $NetBSD: wi.c,v 1.254 2019/12/05 03:11:40 msaitoh Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -99,7 +99,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.253 2019/05/28 07:41:48 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.254 2019/12/05 03:11:40 msaitoh Exp $");
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
@@ -1419,7 +1419,6 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, void *data)
{
struct wi_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
if (!device_is_active(sc->sc_dev))
@@ -1453,10 +1452,6 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, void *data)
} else if (sc->sc_enabled)
wi_stop(ifp, 1);
break;
- case SIOCSIFMEDIA:
- case SIOCGIFMEDIA:
- error = ifmedia_ioctl(ifp, ifr, &ic->ic_media, cmd);
- break;
case SIOCADDMULTI:
case SIOCDELMULTI:
if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c
index f662f5a3e97..8e27979c0e1 100644
--- a/sys/dev/usb/if_atu.c
+++ b/sys/dev/usb/if_atu.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atu.c,v 1.67 2019/12/01 12:47:10 maxv Exp $ */
+/* $NetBSD: if_atu.c,v 1.68 2019/12/05 03:11:41 msaitoh Exp $ */
/* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
/*
* Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.67 2019/12/01 12:47:10 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.68 2019/12/05 03:11:41 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2138,17 +2138,11 @@ static int
atu_ioctl(struct ifnet *ifp, u_long command, void *data)
{
struct atu_softc *sc = ifp->if_softc;
- struct ifreq *ifr = (struct ifreq *)data;
struct ieee80211com *ic = &sc->sc_ic;
int err = 0, s;
s = splnet();
switch (command) {
- case SIOCSIFMEDIA:
- case SIOCGIFMEDIA:
- err = ifmedia_ioctl(ifp, ifr, &ic->ic_media, command);
- break;
-
default:
DPRINTFN(15, ("%s: ieee80211_ioctl (%lu)\n",
device_xname(sc->atu_dev), command));