staging: r8188eu: copying one byte too much
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Aug 2013 21:47:01 +0000 (00:47 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 18:46:47 +0000 (11:46 -0700)
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>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c

index a43fc8892d612c0912f0fb151fd2526cb0c4f8c3..013ea487e7acc2e57726b82e6e016d4aebf60b34 100644 (file)
@@ -1592,7 +1592,7 @@ void update_bmc_sta_support_rate(struct adapter *padapter, u32 mac_id)
                /*  Only B, B/G, and B/G/N AP could use CCK rate */
                memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_cck, 4);
        } else {
-               memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 4);
+               memcpy((pmlmeinfo->FW_sta_info[mac_id].SupportedRates), rtw_basic_rate_ofdm, 3);
        }
 }