Re: ath not setting media type?

From: Sam Leffler <sam_at_errno.com>
Date: Tue, 18 Oct 2005 12:07:53 -0700
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
Received on Tue Oct 18 2005 - 17:08:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:45 UTC