From: Jes Sorensen Date: Sat, 21 Jun 2014 14:50:18 +0000 (+0200) Subject: staging: rtl8723au: issue_probersp(): Don't insert beacon data twice X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d642a0a0b91d220f3c44bba84e54f8983b781fde;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: issue_probersp(): Don't insert beacon data twice In case of AP mode, we were inserting the beacon data twice in the probe_resp frame, leading to a corrupted on the wire frame. Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index d1c40ae46541..4f9e5a918bb0 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c @@ -2592,7 +2592,8 @@ static void issue_probersp(struct rtw_adapter *padapter, unsigned char *da, cur_network->IELength - _FIXED_IE_LENGTH_); - memcpy(pframe, cur_network->IEs, cur_network->IELength); + memcpy(pframe, cur_network->IEs + _FIXED_IE_LENGTH_, + cur_network->IELength - _FIXED_IE_LENGTH_); pframe += cur_network->IELength; pattrib->pktlen += cur_network->IELength;