summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-06-05 17:19:55 +0000
committersam <sam@FreeBSD.org>2009-06-05 17:19:55 +0000
commitae91f641c2b6614ceb14a8b3d0e650deabb4d5ff (patch)
tree9416f42a8ee0d6e8fdd6d42d2f99250ccb4558fb /usr.sbin/wpa
parent24bb8c9e98a1034e78861fd575eba6bd63d68073 (diff)
downloadFreeBSD-src-ae91f641c2b6614ceb14a8b3d0e650deabb4d5ff.zip
FreeBSD-src-ae91f641c2b6614ceb14a8b3d0e650deabb4d5ff.tar.gz
Do not force the mtu to 2290; this was done to insure large EAPOL frames
could be handled w/o fragmentation but clobbers user-specified values such as those required when the interface is bridged. Submitted by: jim@netgate.com Reviewed by: Jouni Malinen MFC after: 3 days
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r--usr.sbin/wpa/hostapd/driver_freebsd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/usr.sbin/wpa/hostapd/driver_freebsd.c b/usr.sbin/wpa/hostapd/driver_freebsd.c
index b418306..89d0051 100644
--- a/usr.sbin/wpa/hostapd/driver_freebsd.c
+++ b/usr.sbin/wpa/hostapd/driver_freebsd.c
@@ -161,18 +161,6 @@ bsd_set_iface_flags(void *priv, int flags)
perror("ioctl[SIOCSIFFLAGS]");
return -1;
}
-
- if (flags > 0) {
- memset(&ifr, 0, sizeof(ifr));
- snprintf(ifr.ifr_name, IFNAMSIZ, "%s", drv->iface);
- ifr.ifr_mtu = HOSTAPD_MTU;
- if (ioctl(drv->ioctl_sock, SIOCSIFMTU, &ifr) != 0) {
- perror("ioctl[SIOCSIFMTU]");
- printf("Setting MTU failed - trying to survive with "
- "current value\n");
- }
- }
-
return 0;
}
OpenPOWER on IntegriCloud