aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-07-29 21:52:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-16 14:39:47 -0400
commit31a5cddaaed9c04ef653e3c2900cfb5a646fe686 (patch)
tree2d7f124dd2f7258af58e563b91756ac4e7b977b8 /drivers/net
parent0f956e7107fe5069767323a1bf2a522f5f37cc2c (diff)
rtl8187: consolidate MSR writes in rtl8187_bss_info_changed
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rtl818x/rtl8187_dev.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c
index 5738a55c1b06..0801c1d7c8d4 100644
--- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -1176,13 +1176,12 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev,
1176 else 1176 else
1177 reg = 0; 1177 reg = 0;
1178 1178
1179 if (is_valid_ether_addr(info->bssid)) { 1179 if (is_valid_ether_addr(info->bssid))
1180 reg |= RTL818X_MSR_INFRA; 1180 reg |= RTL818X_MSR_INFRA;
1181 rtl818x_iowrite8(priv, &priv->map->MSR, reg); 1181 else
1182 } else {
1183 reg |= RTL818X_MSR_NO_LINK; 1182 reg |= RTL818X_MSR_NO_LINK;
1184 rtl818x_iowrite8(priv, &priv->map->MSR, reg); 1183
1185 } 1184 rtl818x_iowrite8(priv, &priv->map->MSR, reg);
1186 1185
1187 mutex_unlock(&priv->conf_mutex); 1186 mutex_unlock(&priv->conf_mutex);
1188 } 1187 }