Skip to content

Commit

Permalink
rtl8187: consolidate MSR writes in rtl8187_bss_info_changed
Browse files Browse the repository at this point in the history
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Aug 16, 2010
1 parent 0f956e7 commit 31a5cdd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/net/wireless/rtl818x/rtl8187_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1176,13 +1176,12 @@ static void rtl8187_bss_info_changed(struct ieee80211_hw *dev,
else
reg = 0;

if (is_valid_ether_addr(info->bssid)) {
if (is_valid_ether_addr(info->bssid))
reg |= RTL818X_MSR_INFRA;
rtl818x_iowrite8(priv, &priv->map->MSR, reg);
} else {
else
reg |= RTL818X_MSR_NO_LINK;
rtl818x_iowrite8(priv, &priv->map->MSR, reg);
}

rtl818x_iowrite8(priv, &priv->map->MSR, reg);

mutex_unlock(&priv->conf_mutex);
}
Expand Down

0 comments on commit 31a5cdd

Please sign in to comment.