Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f18f112b authored by Andrea Merello's avatar Andrea Merello Committed by John W. Linville
Browse files

rtl8180: don't write MAR registers for rtl8187se



MAR registers are not present in rtl8187se, and attempting to
write to them must be avoided

Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 732c8932
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -779,8 +779,13 @@ static int rtl8180_start(struct ieee80211_hw *dev)


	rtl8180_int_enable(dev);
	rtl8180_int_enable(dev);


	/* in rtl8187se at MAR regs offset there is the management
	 * TX descriptor DMA addres..
	 */
	if (priv->chip_family != RTL818X_CHIP_FAMILY_RTL8187SE) {
		rtl818x_iowrite32(priv, &priv->map->MAR[0], ~0);
		rtl818x_iowrite32(priv, &priv->map->MAR[0], ~0);
		rtl818x_iowrite32(priv, &priv->map->MAR[1], ~0);
		rtl818x_iowrite32(priv, &priv->map->MAR[1], ~0);
	}


	reg = RTL818X_RX_CONF_ONLYERLPKT |
	reg = RTL818X_RX_CONF_ONLYERLPKT |
	      RTL818X_RX_CONF_RX_AUTORESETPHY |
	      RTL818X_RX_CONF_RX_AUTORESETPHY |