Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 17:19:55 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193524 - head/usr.sbin/wpa/hostapd
Message-ID:  <200906051719.n55HJtIc032496@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Fri Jun  5 17:19:55 2009
New Revision: 193524
URL: http://svn.freebsd.org/changeset/base/193524

Log:
  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

Modified:
  head/usr.sbin/wpa/hostapd/driver_freebsd.c

Modified: head/usr.sbin/wpa/hostapd/driver_freebsd.c
==============================================================================
--- head/usr.sbin/wpa/hostapd/driver_freebsd.c	Fri Jun  5 17:06:27 2009	(r193523)
+++ head/usr.sbin/wpa/hostapd/driver_freebsd.c	Fri Jun  5 17:19:55 2009	(r193524)
@@ -161,18 +161,6 @@ bsd_set_iface_flags(void *priv, int flag
 		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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906051719.n55HJtIc032496>