rtl818x: Explicitly enable contetion window
authorandrea merello <andrea.merello@gmail.com>
Tue, 18 Feb 2014 01:10:40 +0000 (02:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:08:27 +0000 (14:08 -0500)
Currently the contention window enable/disable HW flag is not
touched by the driver.

This patch explicitly set it to the correct value to make sure
contention window is enabled (AFAIK contention window must be
enabled in most (if not all) cases.

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8180/dev.c

index 7980ab1..470a1e3 100644 (file)
@@ -642,6 +642,8 @@ static int rtl8180_start(struct ieee80211_hw *dev)
        else
                reg &= ~RTL818X_TX_CONF_HW_SEQNUM;
 
+       reg &= ~RTL818X_TX_CONF_DISCW;
+
        /* different meaning, same value on both rtl8185 and rtl8180 */
        reg &= ~RTL818X_TX_CONF_SAT_HWPLCP;