svn commit: r193524 - head/usr.sbin/wpa/hostapd

Sam Leffler sam at FreeBSD.org
Fri Jun 5 17:19:56 UTC 2009


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 at 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;
 }
 


More information about the svn-src-all mailing list