Module Name: src
Committed By: msaitoh
Date: Thu Dec 5 03:11:41 UTC 2019
Modified Files:
src/sys/dev/ic: awi.c wi.c
src/sys/dev/usb: if_atu.c
Log Message:
Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/dev/ic/awi.c
cvs rdiff -u -r1.253 -r1.254 src/sys/dev/ic/wi.c
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/usb/if_atu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/awi.c
diff -u src/sys/dev/ic/awi.c:1.98 src/sys/dev/ic/awi.c:1.99
--- src/sys/dev/ic/awi.c:1.98 Tue May 28 07:41:48 2019
+++ src/sys/dev/ic/awi.c Thu Dec 5 03:11:40 2019
@@ -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,
} 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);
Index: src/sys/dev/ic/wi.c
diff -u src/sys/dev/ic/wi.c:1.253 src/sys/dev/ic/wi.c:1.254
--- src/sys/dev/ic/wi.c:1.253 Tue May 28 07:41:48 2019
+++ src/sys/dev/ic/wi.c Thu Dec 5 03:11:40 2019
@@ -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,
{
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,
} 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) {
Index: src/sys/dev/usb/if_atu.c
diff -u src/sys/dev/usb/if_atu.c:1.67 src/sys/dev/usb/if_atu.c:1.68
--- src/sys/dev/usb/if_atu.c:1.67 Sun Dec 1 12:47:10 2019
+++ src/sys/dev/usb/if_atu.c Thu Dec 5 03:11:41 2019
@@ -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));