Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-14 Thread Adrian Chadd
Hi,

I've committed a couple more small AR9160 related fixes. Please test
if_ath if you're using AR9160 in any mode (hostap, adhoc, station) and
provide some feedback.

Thanks,


Adrian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-12 Thread Adrian Chadd
Hi everyone,

I've just merged in some changes to the noise floor (NF) internal
calibration and NF CCA (clear channel assessment) programming. This
may (slightly) improve AR5416/AR9160 behaviour in both AP and station
mode in noisy/busy conditions.

I've only really tested this in AP mode as I don't (currently) have a
laptop or desktop with an AR5416 or AR9160 in it.

Thanks!


Adrian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread jhell
On 08/11/2010 00:11, Adrian Chadd wrote:
> On 11 August 2010 11:48, jhell  wrote:
> 
> 
>> I have attached a dump_all_config_desc for this device in case anyone
>> can identify it. Linksys WUSB54G
> 
> Check out this:
> 
> http://www.qbik.ch/usb/devices/search_res.php?pattern=802.11
> 
> ugen3.3:  at usbus3, cfg=0 md=HOST
> spd=HIGH (480Mbps) pwr=ON
> 
> That vendor:product combination is in the above list.
> 
> It looks like it's this:
> 
> http://linuxwireless.org/en/users/Drivers/zd1211rw
> 
> Would you mind trying linux + that driver, see if it works?
> 

Ill have to setup or bring up a linux VM or temporary install within the
next day or two and see what I come up with.

> 
> Adrian

Thanks for looking into this.

I have that kernel with the merged from head revisions installing right
now. Should be setup to play with in about 15 minutes then I am out of
office for the night. Ill check this in the morning and review some of
the logs.

-- 

 jhell,v

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread Adrian Chadd
On 11 August 2010 11:48, jhell  wrote:


> I have attached a dump_all_config_desc for this device in case anyone
> can identify it. Linksys WUSB54G

Check out this:

http://www.qbik.ch/usb/devices/search_res.php?pattern=802.11

ugen3.3:  at usbus3, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON

That vendor:product combination is in the above list.

It looks like it's this:

http://linuxwireless.org/en/users/Drivers/zd1211rw

Would you mind trying linux + that driver, see if it works?


Adrian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread jhell
On 08/10/2010 22:38, Adrian Chadd wrote:
> On 11 August 2010 07:48, jhell  wrote:
> 
>> I have applied the following (r211136) to my local stable/8 branch and
>> has proven to be an improvement with no drawbacks.
> 
> Ah, the calibration scheduling change. Cool!
> 
>> As for the rest I can not vouch for unless you give me a specific patch
>> to test but I am willing to merge from head to my local tree at any
>> given point in time if you can give some revisions you would like
>> tested. You "I believe" made it possible for me to use this card within
>> a week that I had reported it ~2007-2008 so I and my card are at your
>> disposal.
> 
> Merge in:
> 
> r211134 and r211135; these are the AR5416 initval changes.

Ill pull these in within the next hour and float some tests across the
bow overnight to see what happens.

> 
> I wasn't even thinking about working on atheros stuff in 2007/2008. :)
> 

Ah must of been someone else then. Nonetheless it was adapted and
committed to the sources within a weeks time and worked perfectly. And
the email I had wrote to  was answered within an hour
that I had wrote it, so due to that I owe anyone working on this card a
debt of gratitude and any tests that need to be run.

> Thanks for the offer. I've bought a pair of AR5416's for here so I can
> test regressions to the ar5416 module whilst I work on the AR9160.
> Just keep an eye on the commit logs for changes I make to sys/dev/ath/
> and consider pulling some of those in. I'd appreciate any testing. :)
> 
> 
> 
> Adrian


Regards,

-- 

On a side note I have another little nifty device that has been inactive
for over a year now that does not have a associated driver that I have
not gotten around to fixing up yet. I have the win drivers for this but
its a USB device and does not work with NDIS.

I am thinking this is just one of those quirks but like I said, I
haven't had the time to really get into it since I already have multiple
other means to use for wireless. I'd love to be able to use this as a
permanent scanning device though.

Ive tried a few different things with this device that failed to work so
anybodies guess is better than mine right now.

I have attached a dump_all_config_desc for this device in case anyone
can identify it. Linksys WUSB54G

 jhell,v

ugen3.3:  at usbus3, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON


 Configuration index 0

bLength = 0x0009 
bDescriptorType = 0x0002 
wTotalLength = 0x0051 
bNumInterfaces = 0x0001 
bConfigurationValue = 0x0001 
iConfiguration = 0x  
bmAttributes = 0x0080 
bMaxPower = 0x00fa 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0009 
  bInterfaceClass = 0x00ff 
  bInterfaceSubClass = 0x 
  bInterfaceProtocol = 0x 
  iInterface = 0x  

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0081  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 2
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0002  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 3
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0082  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 4
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x008d  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 5
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x000d  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 6
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x008e  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 7
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x000e  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bS

Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread Adrian Chadd
On 11 August 2010 07:48, jhell  wrote:

> I have applied the following (r211136) to my local stable/8 branch and
> has proven to be an improvement with no drawbacks.

Ah, the calibration scheduling change. Cool!

> As for the rest I can not vouch for unless you give me a specific patch
> to test but I am willing to merge from head to my local tree at any
> given point in time if you can give some revisions you would like
> tested. You "I believe" made it possible for me to use this card within
> a week that I had reported it ~2007-2008 so I and my card are at your
> disposal.

Merge in:

r211134 and r211135; these are the AR5416 initval changes.

I wasn't even thinking about working on atheros stuff in 2007/2008. :)

Thanks for the offer. I've bought a pair of AR5416's for here so I can
test regressions to the ar5416 module whilst I work on the AR9160.
Just keep an eye on the commit logs for changes I make to sys/dev/ath/
and consider pulling some of those in. I'd appreciate any testing. :)



Adrian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread jhell
On 08/10/2010 19:48, jhell wrote:
> On 08/10/2010 03:58, Adrian Chadd wrote:
>> On 10 August 2010 15:51, Adrian Chadd  wrote:
>>> Hi everyone,
>>>
>>> I'm committing some updates to the if_ath and ath_hal code.
>>>
>>> I've just committed updates to the AR5416 register setup values. I'd
>>> appreciate some testing by AR5416 users - eg macbook pro users - to
>>> ensure this hasn't broken functionality.
>>
>> I've also started merging in general if_ath changes; so please test
>> the ath code in -head and let me know if I've introduced any
>> regressions.
>>
> 
> I have applied the following (r211136) to my local stable/8 branch and
> has proven to be an improvement with no drawbacks.
> 
> diff -r 7d9664d4ac99 sys/dev/ath/if_ath.c
> --- a/sys/dev/ath/if_ath.c  Tue Aug 10 16:41:55 2010 -0400
> +++ b/sys/dev/ath/if_ath.c  Tue Aug 10 19:39:25 2010 -0400
> @@ -5418,6 +5418,7 @@
> longCal = (ticks - sc->sc_lastlongcal >= ath_longcalinterval*hz);
> if (longCal) {
> sc->sc_stats.ast_per_cal++;
> +   sc->sc_lastlongcal = ticks;
> if (ath_hal_getrfgain(ah) == HAL_RFGAIN_NEED_CHANGE) {
> /*
>  * Rfgain is out of bounds, reset the chip
> @@ -5466,7 +5467,6 @@
> nextcal *= 10;
> } else {
> nextcal = ath_longcalinterval*hz;
> -   sc->sc_lastlongcal = ticks;
> if (sc->sc_lastcalreset == 0)
> sc->sc_lastcalreset = sc->sc_lastlongcal;
> else if (ticks - sc->sc_lastcalreset >=
> ath_resetcalinterval*hz)
> 
> As for the rest I can not vouch for unless you give me a specific patch
> to test but I am willing to merge from head to my local tree at any
> given point in time if you can give some revisions you would like
> tested. You "I believe" made it possible for me to use this card within
> a week that I had reported it ~2007-2008 so I and my card are at your
> disposal.
> 
> 
> Thank you.
> 

PS I should probably also say that I am on i386 stable/8 with the AR5416

-- 

 jhell,v

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread jhell
On 08/10/2010 03:58, Adrian Chadd wrote:
> On 10 August 2010 15:51, Adrian Chadd  wrote:
>> Hi everyone,
>>
>> I'm committing some updates to the if_ath and ath_hal code.
>>
>> I've just committed updates to the AR5416 register setup values. I'd
>> appreciate some testing by AR5416 users - eg macbook pro users - to
>> ensure this hasn't broken functionality.
> 
> I've also started merging in general if_ath changes; so please test
> the ath code in -head and let me know if I've introduced any
> regressions.
> 

I have applied the following (r211136) to my local stable/8 branch and
has proven to be an improvement with no drawbacks.

diff -r 7d9664d4ac99 sys/dev/ath/if_ath.c
--- a/sys/dev/ath/if_ath.c  Tue Aug 10 16:41:55 2010 -0400
+++ b/sys/dev/ath/if_ath.c  Tue Aug 10 19:39:25 2010 -0400
@@ -5418,6 +5418,7 @@
longCal = (ticks - sc->sc_lastlongcal >= ath_longcalinterval*hz);
if (longCal) {
sc->sc_stats.ast_per_cal++;
+   sc->sc_lastlongcal = ticks;
if (ath_hal_getrfgain(ah) == HAL_RFGAIN_NEED_CHANGE) {
/*
 * Rfgain is out of bounds, reset the chip
@@ -5466,7 +5467,6 @@
nextcal *= 10;
} else {
nextcal = ath_longcalinterval*hz;
-   sc->sc_lastlongcal = ticks;
if (sc->sc_lastcalreset == 0)
sc->sc_lastcalreset = sc->sc_lastlongcal;
else if (ticks - sc->sc_lastcalreset >=
ath_resetcalinterval*hz)

As for the rest I can not vouch for unless you give me a specific patch
to test but I am willing to merge from head to my local tree at any
given point in time if you can give some revisions you would like
tested. You "I believe" made it possible for me to use this card within
a week that I had reported it ~2007-2008 so I and my card are at your
disposal.


Thank you.

-- 

 jhell,v

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [CFT] if_ath updates - ar5416 (macbook pro, etc)

2010-08-10 Thread Adrian Chadd
On 10 August 2010 15:51, Adrian Chadd  wrote:
> Hi everyone,
>
> I'm committing some updates to the if_ath and ath_hal code.
>
> I've just committed updates to the AR5416 register setup values. I'd
> appreciate some testing by AR5416 users - eg macbook pro users - to
> ensure this hasn't broken functionality.

I've also started merging in general if_ath changes; so please test
the ath code in -head and let me know if I've introduced any
regressions.

Thanks,


Adrian
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"