Add a vocal warning to ath_hal_computetxtime() function is used for non-11n rates.
It's used to calculate: * the initial per-rate entries for short/long preamble ACK durations; * packet durations for TDMA slot decisions; * RTS/CTS protection durations; * updating the duration field in the 802.11 frame header This way invalid durations will generate a warning, prompting for it to be fixed.
This commit is contained in:
parent
3283511248
commit
4a02016d6e
@ -318,6 +318,11 @@ ath_hal_computetxtime(struct ath_hal *ah,
|
||||
uint32_t bitsPerSymbol, numBits, numSymbols, phyTime, txTime;
|
||||
uint32_t kbps;
|
||||
|
||||
/* Warn if this function is called for 11n rates; it should not be! */
|
||||
if (IS_HT_RATE(rates->info[rateix].rateCode))
|
||||
ath_hal_printf(ah, "%s: MCS rate? (index %d; hwrate 0x%x)\n",
|
||||
__func__, rateix, rates->info[rateix].rateCode);
|
||||
|
||||
kbps = rates->info[rateix].rateKbps;
|
||||
/*
|
||||
* index can be invalid duting dynamic Turbo transitions.
|
||||
|
Loading…
Reference in New Issue
Block a user