From owner-cvs-src-old@FreeBSD.ORG Tue Feb 3 22:32:43 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372E61065676 for ; Tue, 3 Feb 2009 22:32:43 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 247298FC18 for ; Tue, 3 Feb 2009 22:32:43 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n13MWhAP093896 for ; Tue, 3 Feb 2009 22:32:43 GMT (envelope-from sam@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n13MWhJr093895 for cvs-src-old@freebsd.org; Tue, 3 Feb 2009 22:32:43 GMT (envelope-from sam@repoman.freebsd.org) Message-Id: <200902032232.n13MWhJr093895@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to sam@repoman.freebsd.org using -f From: Sam Leffler Date: Tue, 3 Feb 2009 22:32:26 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net80211 ieee80211.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 22:32:43 -0000 sam 2009-02-03 22:32:26 UTC FreeBSD src repository Modified files: sys/net80211 ieee80211.c Log: SVN rev 188106 on 2009-02-03 22:32:26Z by sam When crafting a media setting w/ an auto (non-fixed) rate mask out the turbo option in addition to the mode bits; otherwise if the current channel is a turbo mode channel we'll form an invalid media setting and the ifmedia_set operation in vap_attach will panic. While here use C99-style initialization for an array indexed by mode; this makes it consistent w/ other usage and avoids breakage if we should ever change the set of modes. Revision Changes Path 1.62 +14 -12 src/sys/net80211/ieee80211.c