Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2005 12:07:53 -0700
From:      Sam Leffler <sam@errno.com>
To:        Niki Denev <nike_d@cytexbg.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ath not setting media type?
Message-ID:  <43554809.4060900@errno.com>
In-Reply-To: <43552836.3000503@cytexbg.com>
References:  <200510181233.47769.nike_d@cytexbg.com>	<43551DF7.3060000@errno.com> <43552124.2030400@cytexbg.com> <435524D2.1050306@errno.com> <43552836.3000503@cytexbg.com>

index | next in thread | previous in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43554809.4060900>