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 <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jes Sorensen 2014-06-21 16:50:18 +02:00 committed by Greg Kroah-Hartman
parent 2bde052753
commit d642a0a0b9
1 changed files with 2 additions and 1 deletions

View File

@ -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;