alloc_algorithm_b: Set tx_range to 8, if all 8 TS are supported by MS

This commit is contained in:
Andreas Eversberg 2014-01-04 15:25:18 +01:00 committed by Holger Hans Peter Freyther
parent ccde4c462d
commit 7a16d46fdc
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ static void tx_win_from_rx(const int ms_type,
}
*tx_range = (*tx_win_max - *tx_win_min + 1) & 7;
/* if TX window fills complete range */
if (*tx_range == 0)
*tx_range = 8;
LOGP(DRLCMAC, LOGL_DEBUG, "- TX-Window is: %d..%d\n", *tx_win_min,
*tx_win_max);
}