diff options
author | 2017-10-18 13:00:27 +0000 | |
---|---|---|
committer | 2017-10-18 13:00:27 +0000 | |
commit | b80c95be190e32bb09e6eeeb158dfaa5bdd08c3a (patch) | |
tree | 7a5cc7837c6d3a45e3980c922eaf79441ae3cb4d | |
parent | Extract supported frequencies and HT/VHT mode from the firmware instead (diff) | |
download | wireguard-openbsd-b80c95be190e32bb09e6eeeb158dfaa5bdd08c3a.tar.xz wireguard-openbsd-b80c95be190e32bb09e6eeeb158dfaa5bdd08c3a.zip |
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.c | 10 |
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; |