From owner-p4-projects@FreeBSD.ORG Thu Apr 3 16:38:43 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 02F05106566C; Thu, 3 Apr 2008 16:38:43 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8D42106564A for ; Thu, 3 Apr 2008 16:38:42 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A334F8FC2B for ; Thu, 3 Apr 2008 16:38:42 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m33GcgVL085514 for ; Thu, 3 Apr 2008 16:38:42 GMT (envelope-from thompsa@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m33GcgTt085512 for perforce@freebsd.org; Thu, 3 Apr 2008 16:38:42 GMT (envelope-from thompsa@freebsd.org) Date: Thu, 3 Apr 2008 16:38:42 GMT Message-Id: <200804031638.m33GcgTt085512@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to thompsa@freebsd.org using -f From: Andrew Thompson To: Perforce Change Reviews Cc: Subject: PERFORCE change 139272 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 16:38:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=139272 Change 139272 by thompsa@thompsa_burger on 2008/04/03 16:37:53 Set the default opmode or we panic with an unknown media type on ifmedia_set(). Affected files ... .. //depot/projects/vap/sys/dev/wpi/if_wpi.c#13 edit Differences ... ==== //depot/projects/vap/sys/dev/wpi/if_wpi.c#13 (text+ko) ==== @@ -614,7 +614,8 @@ } ic->ic_ifp = ifp; - ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ + ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ + ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */ /* set device capabilities */ ic->ic_caps =