Move slot-time, CTS/RTS, and ACK timeout calculations into the driver. Corrected...
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 10 Apr 2008 03:46:54 +0000 (03:46 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 10 Apr 2008 03:46:54 +0000 (03:46 +0000)
commitafadc9b41d4bff5f037f9a4a1d10b44ce98855a3
treeebc0b1769ecc57eb7abe02850c428c6482699f14
parentcee1c3f7f981003ca33566283b26b8afbf43c062
Move slot-time, CTS/RTS, and ACK timeout calculations into the driver.  Corrected logic for the relationships between slot time and cts timeout and ack timeout have been added and the athctrl now delegates to the driver instead.

You can override:
- slottime
- ctstimeout
- acktimeout

acktimeout and ctstimeout will be selected from the first available of:

1) the explicitly specified override value [if present]
2) a value derived from an explicitly specified slottime [if present]
3) the HALs default behavior / standard settings for the PHY mode

Setting the distance is shorthand for updating the slottime, and both cts and ack timeout values based upon the usual equations for air propagation, speed of light, etc..etc..

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3508 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath/if_ath.c
ath/if_athvar.h
tools/athctrl.c