[ 0 .. CWmin ] CWmin = 31 in 802.11b CWmin = 15 in 802.11g
[ 0 .. 1023 ] (CWmax = 1023)
CW = CWmin; // Initialize the range of Congestion Window values if ( CW < CWmax (= 1023) ) CW = 2×CW + 1; // Doubling algorithm Example: CW = 15 CW = 2×CW + 1 = 2×15 + 1 = 31 CW = 2×CW + 1 = 2×31 + 1 = 63 and so on