From: Jes Sorensen Date: Tue, 24 Jun 2014 13:03:26 +0000 (+0200) Subject: staging: rtl8723au: issue_beacon23a(): Fix another case issuing a corrupted beacon X-Git-Tag: firefly_0821_release~176^2~3491^2~1593 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89060370dbc34cffcce925712eb5b796c6731744;p=firefly-linux-kernel-4.4.55.git staging: rtl8723au: issue_beacon23a(): Fix another case issuing a corrupted beacon 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 6791ad7f9ade..cb882fb616e5 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c @@ -2420,6 +2420,7 @@ void issue_beacon23a(struct rtw_adapter *padapter, int timeout_ms) if ((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE) { u8 *iebuf; int buflen; + pframe -= _BEACON_IE_OFFSET_; /* DBG_8723A("ie len =%d\n", cur_network->IELength); */ memcpy(pframe, cur_network->IEs, cur_network->IELength); len_diff = update_hidden_ssid(pframe + _BEACON_IE_OFFSET_,