aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-29 17:47:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-30 14:46:47 -0400
commit15f7af8be40e7db5cd642d2ffbbe15e5d8bc1ed8 (patch)
treefa67ad0fe7ebb718b5508ade0cb925c4698841e1
parent976e0cf6855da26995c0560f4befd66c3b06de9f (diff)
staging: r8188eu: copying one byte too much
There is a copy and paste bug here so we copy 4 bytes instead of 3. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_wlan_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
index a43fc8892d61..013ea487e7ac 100644
--- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c
@@ -1592,7 +1592,7 @@ void update_bmc_sta_support_rate(struct adapter *padapter, u32 mac_id)
1592 /* Only B, B/G, and B/G/N AP could use CCK rate */ 1592 /* Only B, B/G, and B/G/N AP could use CCK rate */
1593 memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_cck, 4); 1593 memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_cck, 4);
1594 } else { 1594 } else {
1595 memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 4); 1595 memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 3);
1596 } 1596 }
1597} 1597}
1598 1598