From owner-svn-src-all@FreeBSD.ORG Fri Jun 5 17:19:55 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 854B5106568D; Fri, 5 Jun 2009 17:19:55 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 73F428FC12; Fri, 5 Jun 2009 17:19:55 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n55HJtmB032497; Fri, 5 Jun 2009 17:19:55 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n55HJtIc032496; Fri, 5 Jun 2009 17:19:55 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200906051719.n55HJtIc032496@svn.freebsd.org> From: Sam Leffler Date: Fri, 5 Jun 2009 17:19:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193524 - head/usr.sbin/wpa/hostapd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 17:19:56 -0000 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; }