From owner-freebsd-current@FreeBSD.ORG Tue Oct 18 19:08:13 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABA6E16A41F for ; Tue, 18 Oct 2005 19:08:13 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 568B043D46 for ; Tue, 18 Oct 2005 19:08:13 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.200] ([10.0.0.200]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j9IJ89pU055738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Oct 2005 12:08:10 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <43554809.4060900@errno.com> Date: Tue, 18 Oct 2005 12:07:53 -0700 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050927) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Niki Denev References: <200510181233.47769.nike_d@cytexbg.com> <43551DF7.3060000@errno.com> <43552124.2030400@cytexbg.com> <435524D2.1050306@errno.com> <43552836.3000503@cytexbg.com> In-Reply-To: <43552836.3000503@cytexbg.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: ath not setting media type? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 19:08:13 -0000 Niki Denev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sam Leffler wrote: > >>I use this card in a t42 w/o issue. If ifconfig shows the device is a >>wireless card then devd will find the same info. I can't recall what >>devd prints for debug msgs here. >> >> Sam >> > > > The strange thing is that if i comment the line : > media-type "802.11"; > in devd.conf then devd catches the LINK_UP event and fires dhclient. > Maybe i've messed something up.. i will check again just in case. > > As for devd, there is %s in the format string that must print the media > type in debug mode, but it seems it's always empty, regardless of the > interface (ethernet or 802.11). I still haven't seen you say what os version you're running or what ifconfig ath0 shows. Here is what I see when devd runs at boot on my t42. Processing event '+ath0 vendor=0x168c device=0x1014 subvendor=0x17ab subdevice=0 x8331 class=0x020000 at slot=2 function=0 vendor=0x168c device=0x1014 subvendor= 0x17ab subdevice=0x8331 class=0x020000 on pci2' Pushing table setting device-name=ath0 setting vendor=0x168c setting device=0x1014 setting subvendor=0x17ab setting subdevice=0x8331 setting class=0x020000 Processing attach event Testing device-name=ath0 against ^ed50 Testing device-name=ath0 against ^ukbd0 Testing device-name=ath0 against ^ums[0-9]+ Testing media type of ath0 against 0x20 ath0 has media type 0x80 Testing media type of ath0 against 0x80 ath0 has media type 0x80 Executing '/etc/pccard_ether ath0 start' The machine is running a recent vintage of current. If you don't see the interface name then devd cannot query the media type so you won't match based on media type. Sam