]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/mac80211/rc80211_minstrel.c
Merge branch 'nfs-for-2.6.33'
[mv-sheeva.git] / net / mac80211 / rc80211_minstrel.c
index 7c5142988bbb77f140d373e26414f9bd0dec31b7..6e5d68b4e427a232dfeebcfe98f666bb2618bb1c 100644 (file)
@@ -418,7 +418,7 @@ minstrel_rate_init(void *priv, struct ieee80211_supported_band *sband,
 
                        /* contention window */
                        tx_time_single += t_slot + min(cw, mp->cw_max);
-                       cw = (cw + 1) << 1;
+                       cw = (cw << 1) | 1;
 
                        tx_time += tx_time_single;
                        tx_time_cts += tx_time_single + mi->sp_ack_dur;