Subject: Re: latest ath/net80211 from freebsd
To: None <tech-net@netbsd.org>
From: Petar Bogdanovic <p+netbsd@2005.smokva.net>
List: tech-net
Date: 06/07/2005 21:48:11
Hello,

 > I have imported ath/net80211 of 18 May 2005 from FreeBSD into
 > NetBSD-current.  Please test and send your feedback.  I have done the
 > most rudimentary tests of ath(4) in ad hoc mode, only.

thank you for your effort. I am now a lucky guy with a D-Link DWL-G520 
(H/W Ver.: B3, F/W Ver.: 4.11) which gets recognised by the kernel! 
(see: "ath(4), HAL status 13" on tech-kern)

I followed the discussion, applied the missing files, the patches from 
Jukka and added " & rijndael" to sys/conf/files. (BTW: I'm not familiar 
with the 'files'-format at all, but it seems that there is something 
wrong with the syntax if you just add ", rijndael")

However, I tried to play around with a GENERIC_LAPTOP (3.99.5/i386) on a 
Soekris net4501, but I wasn't very successful. In most cases, ifconfig 
returned something like: "unable to reset hardware" and in one case:

#ifconfig ath0 up chan 7 media OFDM54 mode 11g mediaopt adhoc ssid 
TESTNETZ 130.92.178.20 netmask 255.255.255.0 broadcast 130.92.178.255

..I was kicked to db. Here is the output of a trace:

*******************************************
uvm_fault(0xc5fe88c0, 0x4320000, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 333.1 (ifconfig) at 
netbsd:_bus_dmamap_load_mbuf+0x44:      m
ovl     0x10(%ebx),%ecx
db> t
_bus_dmamap_load_mbuf(c0607520,c08ce3c0,c0896a00,1,9) at 
netbsd:_bus_dmamap_load
_mbuf+0x44
ath_beacon_alloc(c08cf000,c0926400,0,197,c0926400) at 
netbsd:ath_beacon_alloc+0x
49
ath_newstate(c08cf3e0,4,ffffffff,8000019,1) at netbsd:ath_newstate+0x216
ieee80211_sta_join(c08cf3e0,c0926400,0,c08aaf60,c08d2662) at 
netbsd:ieee80211_st
a_join+0x6f
ieee80211_newstate(c08cf3e0,1,ffffffff,c0000071,c08cf3e0) at 
netbsd:ieee80211_ne
wstate+0x270
ath_newstate(c08cf3e0,1,ffffffff,98a,b) at netbsd:ath_newstate+0x17f
ath_init(c08cf038,246,30,c6010010,c08cf038) at netbsd:ath_init+0x16f
ath_media_change(c08cf038,30191,0,0,c08aaec0) at 
netbsd:ath_media_change+0x39
ifmedia_ioctl(c08cf038,c6b23ea4,c08cfbe0,c0206935,0) at 
netbsd:ifmedia_ioctl+0x1
92
ieee80211_ioctl(c08cf3e0,c0206935,c6b23ea4,0,c0206921) at 
netbsd:ieee80211_ioctl
+0x689
ath_ioctl(c08cf038,c0206935,c6b23ea4,2d,c5fe88c4) at netbsd:ath_ioctl+0x7d
ifioctl(c088d438,c0206935,c6b23ea4,c6899664,0) at netbsd:ifioctl+0x47a
sys_ioctl(c5feb738,c6b23f64,c6b23f5c,0,c08cf3e0) at netbsd:sys_ioctl+0x122
syscall_plain() at netbsd:syscall_plain+0x7e
--- syscall (number 54) ---
0xbdbba3e3:
*******************************************

So far, so good. :)


Kind regards,

Petar