Douglas Berry
2006-Apr-25 20:21 UTC
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)
Dlink DWL-AG530 can't scan, can't connect. ifconfig ath0 up ; ifconfig ath0 list scan returns nothing. On the same machine, same 'net, a different ath card works (TRENDnet TEW-503PI). Does anyone have this Dlink card working on RELENG_6? pciconf output: ath0@pci0:14:0: class=0x020000 card=0x3a141186 chip=0x0013168c rev=0x01 hdr=0x00 dmesg snippet: ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath_rate: version 1.2 <SampleRate bit-rate selection algorithm> pci0: driver added found-> vendor=0x1106, dev=0x3057, revid=0x40 bus=0, slot=7, func=4 class=06-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) powerspec 2 supports D0 D3 current D0 pci0:7:4: reprobing on driver added found-> vendor=0x1106, dev=0x3058, revid=0x50 bus=0, slot=7, func=5 class=04-01-00, hdrtype=0x00, mfdev=0 cmdreg=0x0001, statreg=0x0210, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=c, irq=5 powerspec 2 supports D0 D3 current D0 pci0:7:5: reprobing on driver added found-> vendor=0x168c, dev=0x0013, revid=0x01 bus=0, slot=14, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0290, cachelnsz=8 (dwords) lattimer=0x20 (960 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns) intpin=a, irq=15 powerspec 2 supports D0 D3 current D0 pci0:14:0: reprobing on driver added ath0: <Atheros 5212> mem 0xe5810000-0xe581ffff irq 15 at device 14.0 on pci0 ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xe5810000 ath0: [MPSAFE] ath0: bpf attached ath0: Ethernet address: 00:11:95:ff:fe:f0 ath0: bpf attached ath0: bpf attached ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ath0: mac 5.9 phy 4.3 radio 3.6 ath0: Use hw queue 1 for WME_AC_BE traffic ath0: Use hw queue 0 for WME_AC_BK traffic ath0: Use hw queue 2 for WME_AC_VI traffic ath0: Use hw queue 3 for WME_AC_VO traffic ath0: Use hw queue 8 for CAB traffic ath0: Use hw queue 9 for beacons pci1: driver added found-> vendor=0x1023, dev=0x8500, revid=0x6a bus=1, slot=0, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x02b0, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 1 supports D0 D1 D2 D3 current D0 pci1:0:0: reprobing on driver added ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140) Thanks for tips, doug
Sam Leffler
2006-Apr-25 20:37 UTC
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)
Douglas Berry wrote:> Dlink DWL-AG530 can't scan, can't connect. > ifconfig ath0 up ; ifconfig ath0 list scan > returns nothing. On the same machine, same 'net, a different ath > card works (TRENDnet TEW-503PI). > > Does anyone have this Dlink card working on RELENG_6? > > pciconf output: > ath0@pci0:14:0: class=0x020000 card=0x3a141186 chip=0x0013168c rev=0x01 hdr=0x00 > > dmesg snippet: > ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath_rate: version 1.2 <SampleRate bit-rate selection algorithm> > pci0: driver added > found-> vendor=0x1106, dev=0x3057, revid=0x40 > bus=0, slot=7, func=4 > class=06-80-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0000, statreg=0x0290, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > powerspec 2 supports D0 D3 current D0 > pci0:7:4: reprobing on driver added > found-> vendor=0x1106, dev=0x3058, revid=0x50 > bus=0, slot=7, func=5 > class=04-01-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0001, statreg=0x0210, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=c, irq=5 > powerspec 2 supports D0 D3 current D0 > pci0:7:5: reprobing on driver added > found-> vendor=0x168c, dev=0x0013, revid=0x01 > bus=0, slot=14, func=0 > class=02-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0006, statreg=0x0290, cachelnsz=8 (dwords) > lattimer=0x20 (960 ns), mingnt=0x0a (2500 ns), maxlat=0x1c (7000 ns) > intpin=a, irq=15 > powerspec 2 supports D0 D3 current D0 > pci0:14:0: reprobing on driver added > ath0: <Atheros 5212> mem 0xe5810000-0xe581ffff irq 15 at device 14.0 on pci0 > ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xe5810000 > ath0: [MPSAFE] > ath0: bpf attached > ath0: Ethernet address: 00:11:95:ff:fe:f0 > ath0: bpf attached > ath0: bpf attached > ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > ath0: mac 5.9 phy 4.3 radio 3.6 > ath0: Use hw queue 1 for WME_AC_BE traffic > ath0: Use hw queue 0 for WME_AC_BK traffic > ath0: Use hw queue 2 for WME_AC_VI traffic > ath0: Use hw queue 3 for WME_AC_VO traffic > ath0: Use hw queue 8 for CAB traffic > ath0: Use hw queue 9 for beacons > pci1: driver added > found-> vendor=0x1023, dev=0x8500, revid=0x6a > bus=1, slot=0, func=0 > class=03-00-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0007, statreg=0x02b0, cachelnsz=0 (dwords) > lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=255 > powerspec 1 supports D0 D1 D2 D3 current D0 > pci1:0:0: reprobing on driver added > ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)flags 0x3e0 = Passive+5Ghz+2Ghz+OFDM+CCK hal flags 0x140 = 5Ghz+OFDM Both of these make no sense for a frequency of 2432 Mhz, hence the hal got upset. What are the regulatory domain settings for the card; sysctl dev.ath.0 will show them? Please also show the output of ifconfig ath0 list channel. Sam
JoaoBR
2006-Apr-25 20:41 UTC
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)
On Tuesday 25 April 2006 17:17, Douglas Berry wrote:> Dlink DWL-AG530 can't scan, can't connect. > ifconfig ath0 up ; ifconfig ath0 list scan > returns nothing. On the same machine, same 'net, a different ath > card works (TRENDnet TEW-503PI). > > Does anyone have this Dlink card working on RELENG_6? >the card works but you need to tweak the eprom country settings I have lots of it running releng_5 and 6 in any mode (a,b and g) you can query the mobile list archive for "how to enable Dlink DWL-AG530" or so in the subject where I posted some time ago how to do it for/with FreeBSD you do not need to patch if_ath.c anymore on releng_6|5 only change the eprom setting Jo?o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br
JoaoBR
2006-Apr-25 21:16 UTC
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)
On Tuesday 25 April 2006 17:52, Sam Leffler wrote:> JoaoBR wrote: > > On Tuesday 25 April 2006 17:45, Sam Leffler wrote: > >> JoaoBR wrote: > >>> you do not need to patch if_ath.c anymore on releng_6|5 only change the > >>> eprom setting > >> > >> There should be no need to change the eeprom settings. You should never > >> get a channel list back that causes confusion for the driver. > >> > >> Sam > > > > unfortunatly the only way to make this card work with the actual ath_hal > > Hence why I asked what the eeprom settings were. If you don't want to > help get the problem fixed then please stay out of the exchange. >tststs, n?o we see why you're so angry, you forgot it ... >Hmm, 18 is a new regulatory domain and not in the tables. I"ll try to fix >this quickly. Sure would be easier if you could just override it... :) > > Sam BTW that was july 2004 .. ;) and so I still set it from 0x12 to 0x10 and clear cheers, Jo?o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br
Sam Leffler
2006-Apr-26 15:52 UTC
ath0: ath_chan_set: unable to reset channel 5 (2432 Mhz, flags 0x3e0 hal flags 0x140)
JoaoBR wrote:> On Wednesday 26 April 2006 01:02, Sam Leffler wrote: >> Attached are two patches; one for the ath driver and another for >> sys/net80211/ieee80211.c in releng6 (note changes to the latter in head > > > aplies clean and compiles on i386 and amd64, I need to reset some cards to > 0x12 to see if it works and let you know > > any chance to get similar for releng_5? > I have lots of APs around and no chance for me to upgrade them easily.No. releng5 has an older hal that does not even support regdomain 18. Backporting work to releng5 would be a massive effort for very little gain; anyone that truly wants wireless support should be running 6.x or later.> > I do not know if you remember some days ago we talked about ath rx/tx stopping > without any msg anywhere > I found out that this happens only whit rate_sample but not with rate_onoe and > since then I run some releng_6 in production without problem with this AG530 > cards > do you think that this particular problem has something to do with the > regdomain 18 issue?No. Sam