summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrea merello <andrea.merello@gmail.com>2014-02-18 02:10:40 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 14:08:27 -0500
commite74075a936a894b85ddf25b882ac813323aae4ef (patch)
treebd4591435f293c03812031aa96b772b9505c391c
parentedb6e3ec374d5630dfc7a93ddd5c0f4864e98a9d (diff)
rtl818x: Explicitly enable contetion window
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>
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c
index 7980ab1f9eca..470a1e32aa4e 100644
--- a/drivers/net/wireless/rtl818x/rtl8180/dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c
@@ -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;