diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2011-01-30 07:23:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-31 15:06:25 -0500 |
commit | 10026f77b3555af13e43b8de0a91ad94cd2119d7 (patch) | |
tree | bb6eb17d7129f6399c9a3882ee75bb5ba85c1bfb | |
parent | a45f369d477c0e1b15b77c7b09ccfa043097e9ab (diff) |
rt2x00: Copy the MAC address to the WCID entry properly.
Use the specific mac field of the wcid_entry structure to copy the MAC
address to, instead of just overwriting the structure.
Previous code resulted in the same, but this form is cleaner.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 4c34fceaec11..c9bf074342ba 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -1030,7 +1030,7 @@ static void rt2800_config_wcid_attr(struct rt2x00_dev *rt2x00dev, | |||
1030 | 1030 | ||
1031 | memset(&wcid_entry, 0, sizeof(wcid_entry)); | 1031 | memset(&wcid_entry, 0, sizeof(wcid_entry)); |
1032 | if (crypto->cmd == SET_KEY) | 1032 | if (crypto->cmd == SET_KEY) |
1033 | memcpy(&wcid_entry, crypto->address, ETH_ALEN); | 1033 | memcpy(wcid_entry.mac, crypto->address, ETH_ALEN); |
1034 | rt2800_register_multiwrite(rt2x00dev, offset, | 1034 | rt2800_register_multiwrite(rt2x00dev, offset, |
1035 | &wcid_entry, sizeof(wcid_entry)); | 1035 | &wcid_entry, sizeof(wcid_entry)); |
1036 | } | 1036 | } |