Commit 31a5cdda authored by John W. Linville's avatar John W. Linville

rtl8187: consolidate MSR writes in rtl8187_bss_info_changed

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0f956e71
...@@ -1176,13 +1176,12 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev, ...@@ -1176,13 +1176,12 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev,
else else
reg = 0; reg = 0;
if (is_valid_ether_addr(info->bssid)) { if (is_valid_ether_addr(info->bssid))
reg |= RTL818X_MSR_INFRA; reg |= RTL818X_MSR_INFRA;
rtl818x_iowrite8(priv, &priv->map->MSR, reg); else
} else {
reg |= RTL818X_MSR_NO_LINK; reg |= RTL818X_MSR_NO_LINK;
rtl818x_iowrite8(priv, &priv->map->MSR, reg); rtl818x_iowrite8(priv, &priv->map->MSR, reg);
}
mutex_unlock(&priv->conf_mutex); mutex_unlock(&priv->conf_mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment