mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 22:13:41 +00:00
Revert "rtl8188eu: Address warning in createbss_hdl()"
This reverts commit 573b2f4e6e
.
This commit is contained in:
parent
573b2f4e6e
commit
361da16739
2 changed files with 5 additions and 5 deletions
|
@ -12891,15 +12891,15 @@ u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
|
|||
/* clear CAM */
|
||||
flush_all_cam_entry(padapter);
|
||||
|
||||
pdev_network->Length = get_WLAN_BSSID_EX_sz(pdev_network);
|
||||
memcpy(pnetwork, pdev_network, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
|
||||
pnetwork->IELength = pdev_network->IELength;
|
||||
|
||||
if (pnetwork->IELength > MAX_IE_SZ) {
|
||||
ret = H2C_PARAMETERS_ERROR;
|
||||
goto ibss_post_hdl;
|
||||
}
|
||||
|
||||
pdev_network->Length = get_WLAN_BSSID_EX_sz(pdev_network);
|
||||
memcpy(pnetwork, pdev_network, pdev_network->IELength);
|
||||
pnetwork->IELength = pdev_network->IELength;
|
||||
|
||||
memcpy(pnetwork->IEs, pdev_network->IEs, pnetwork->IELength);
|
||||
start_create_ibss(padapter);
|
||||
} else {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#define __WLAN_BSSDEF_H__
|
||||
|
||||
|
||||
#define MAX_IE_SZ 1024
|
||||
#define MAX_IE_SZ 768
|
||||
|
||||
#define NDIS_802_11_LENGTH_SSID 32
|
||||
#define NDIS_802_11_LENGTH_RATES 8
|
||||
|
|
Loading…
Reference in a new issue