fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Stefan Sperling
As reported a while ago (see http://marc.info/?l=openbsd-miscm=132911890531492w=2) athn(4) attaches to some ar9003 chips but fails to get past the hardware rfkill switch. It always reports radio is disabled by hardware switch regardless of the actual state of the switch. I've got an ar9485 which

Re: fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Mark Kettenis
Date: Sun, 7 Oct 2012 18:02:23 +0200 From: Stefan Sperling s...@openbsd.org As reported a while ago (see http://marc.info/?l=openbsd-miscm=132911890531492w=2) athn(4) attaches to some ar9003 chips but fails to get past the hardware rfkill switch. It always reports radio is disabled by

Re: fix athn(4) rfkill switch detection for ar9003

2012-10-07 Thread Stefan Sperling
On Sun, Oct 07, 2012 at 07:41:58PM +0200, Mark Kettenis wrote: Hmm, the AR9300_GPIO_IN_VAL define you introduce isn't actually used. Thanks, I forgot about using it. Not sure if it is important though maybe the upper bits of the register aren't always stable? In any case we should just use the