diff options
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_dev.c | 9 |
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 | } |