svn commit: r193782 - stable/7/usr.sbin/wpa/hostapd

Sam Leffler sam at FreeBSD.org
Mon Jun 8 23:47:48 UTC 2009


Author: sam
Date: Mon Jun  8 23:47:47 2009
New Revision: 193782
URL: http://svn.freebsd.org/changeset/base/193782

Log:
  MFC r193524: do not force the mtu to 2290

Modified:
  stable/7/usr.sbin/wpa/hostapd/driver_freebsd.c

Modified: stable/7/usr.sbin/wpa/hostapd/driver_freebsd.c
==============================================================================
--- stable/7/usr.sbin/wpa/hostapd/driver_freebsd.c	Mon Jun  8 23:36:52 2009	(r193781)
+++ stable/7/usr.sbin/wpa/hostapd/driver_freebsd.c	Mon Jun  8 23:47:47 2009	(r193782)
@@ -244,18 +244,6 @@ bsd_set_iface_flags(void *priv, int dev_
 		perror("ioctl[SIOCSIFFLAGS]");
 		return -1;
 	}
-
-	if (dev_up) {
-		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-stable mailing list