Search Linux Wireless

Re: [PATCH 4/4] ath5k: Implement mac80211 callback set_coverage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6.12.2009 20:20 Felix Fietkau wrote:
> In 2.4 GHz, regular slot time is 20 usec, unless short slot is enabled.
> 2.4 GHz with short slot and 5 GHz both use 9 usec.
Yes, but where the short slot time gets enabled? According to the standard 
(don't have the reference now) all stations in 802.11g network should switch 
to 20 usec slot time when 802.11b-only station connects. But I can't find 
this anywhere in the driver, the only write to AR5K_DCU_GBL_IFS_SLOT is in 
initvals.c - it seems it's not implemented yet.

After some more digging I found that the function ath5k_hw_clocktoh is wrong, 
there are more possible clock rates than 40 and 80, this is in FreeBSD 
driver:
                                     /* 11a Turbo  11b  11g  108g */
static const uint8_t CLOCK_RATE[]  = { 40,  80,   22,  44,   88  };

Now the values in initvals.c finally make sense:

	a/XR	aTurbo	b	g (DYN)	gTurbo
hex	0x168	0x1e0	0x1b8	0x18c	0x1e0
clocks	360	480	440	396	480
usec	9	6	20	9	6

Unfortunately I still don't know how to calculate the ACK timeout for 
different slot time than 9. The formula in athctrl is
  2 * slot_time + 3
and I don't know where the '3' comes from. Any ideas?

Lukas Turek

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux