提交 31a5cdda 编写于 作者: J John W. Linville

rtl8187: consolidate MSR writes in rtl8187_bss_info_changed

Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册