ath9k: General code scrub
Replace TRUE/FALSE macros with VALID/INVALID macros. Follow a consistent variable convention. Remove unnecessary comments. Add all RC phy macros into a single enum. Merge functions into reasonably sized entities. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e63835b0f4
commit
46d14a58ff
6 changed files with 277 additions and 412 deletions
|
@ -155,14 +155,14 @@ u16 ath9k_hw_computetxtime(struct ath_hal *ah,
|
|||
return 0;
|
||||
|
||||
switch (rates->info[rateix].phy) {
|
||||
case PHY_CCK:
|
||||
case WLAN_RC_PHY_CCK:
|
||||
phyTime = CCK_PREAMBLE_BITS + CCK_PLCP_BITS;
|
||||
if (shortPreamble && rates->info[rateix].short_preamble)
|
||||
phyTime >>= 1;
|
||||
numBits = frameLen << 3;
|
||||
txTime = CCK_SIFS_TIME + phyTime + ((numBits * 1000) / kbps);
|
||||
break;
|
||||
case PHY_OFDM:
|
||||
case WLAN_RC_PHY_OFDM:
|
||||
if (ah->ah_curchan && IS_CHAN_QUARTER_RATE(ah->ah_curchan)) {
|
||||
bitsPerSymbol = (kbps * OFDM_SYMBOL_TIME_QUARTER) / 1000;
|
||||
numBits = OFDM_PLCP_BITS + (frameLen << 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue