rtl8180: make sure RTL818X_MSR_ENEDCA is set for rtl8187se
authorAndrea Merello <andrea.merello@gmail.com>
Wed, 26 Mar 2014 20:03:17 +0000 (21:03 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:09 +0000 (14:20 -0400)
MSR register for rtl8187se must always have ENEDCA flag set.
Write it accordingly when updated on BSS change.

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 6f9da01a90964ce1c3f0c15433fa05446cb1f2ea..eb678dae16535e435f71aecfb3b4f4114bf212ac 100644 (file)
@@ -1373,6 +1373,10 @@ static void rtl8180_bss_info_changed(struct ieee80211_hw *dev,
                                reg = RTL818X_MSR_INFRA;
                } else
                        reg = RTL818X_MSR_NO_LINK;
+
+               if (priv->chip_family == RTL818X_CHIP_FAMILY_RTL8187SE)
+                       reg |= RTL818X_MSR_ENEDCA;
+
                rtl818x_iowrite8(priv, &priv->map->MSR, reg);
        }