summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-18 13:00:28 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-18 13:00:28 +0000
commit6e0a45d34abaf797c66e2b8d4da948d4c7e6fc4b (patch)
treedda15fce003a3a0bf8f450bdad43417e8a81bcfa
parent427ad42df1d8df653bba0adb8acd586c62c7e1d7 (diff)
Stop handling SIOCSIFMTU like in the wireless stack.
This driver does not use the net80211 stack, so let ether_ioctl() handle it like any other Ethernet driver. Suggested by and ok patrick@, ok stsp@
-rw-r--r--sys/dev/ic/bwfm.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c
index 6b20515421d..1215bb0570f 100644
--- a/sys/dev/ic/bwfm.c
+++ b/sys/dev/ic/bwfm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwfm.c,v 1.8 2017/10/18 12:58:45 patrick Exp $ */
+/* $OpenBSD: bwfm.c,v 1.9 2017/10/18 13:00:27 mpi Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
@@ -520,14 +520,6 @@ bwfm_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCGIFMEDIA:
error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, cmd);
break;
- case SIOCSIFMTU:
- ifr = (struct ifreq *)data;
- if (!(IEEE80211_MTU_MIN <= ifr->ifr_mtu &&
- ifr->ifr_mtu <= IEEE80211_MTU_MAX))
- error = EINVAL;
- else
- ifp->if_mtu = ifr->ifr_mtu;
- break;
case SIOCG80211ALLNODES:
na = (struct ieee80211_nodereq_all *)data;
na->na_nodes = i = 0;