Skip to content

Commit

Permalink
staging: rtl8187se: Fixed size of BEACON_INTERVAL register
Browse files Browse the repository at this point in the history
BEACON_INTERVAL register is 16-bit, not 32-bit

Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Maxim Mikityanskiy authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 53094af commit fbce428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1984,10 +1984,10 @@ void rtl8180_link_change(struct net_device *dev)
write_nic_dword(dev, BSSID, ((u32 *)net->bssid)[0]);
write_nic_word(dev, BSSID+4, ((u16 *)net->bssid)[2]);

beacon_interval = read_nic_dword(dev, BEACON_INTERVAL);
beacon_interval = read_nic_word(dev, BEACON_INTERVAL);
beacon_interval &= ~BEACON_INTERVAL_MASK;
beacon_interval |= net->beacon_interval;
write_nic_dword(dev, BEACON_INTERVAL, beacon_interval);
write_nic_word(dev, BEACON_INTERVAL, beacon_interval);

rtl8180_set_mode(dev, EPROM_CMD_NORMAL);

Expand Down

0 comments on commit fbce428

Please sign in to comment.