diff --git a/rtw_mlme_ext.c b/rtw_mlme_ext.c index 31a2f16..a451765 100755 --- a/rtw_mlme_ext.c +++ b/rtw_mlme_ext.c @@ -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 { diff --git a/wlan_bssdef.h b/wlan_bssdef.h index 293de03..3730ffa 100644 --- a/wlan_bssdef.h +++ b/wlan_bssdef.h @@ -5,7 +5,7 @@ #define __WLAN_BSSDEF_H__ -#define MAX_IE_SZ 768 +#define MAX_IE_SZ 1024 #define NDIS_802_11_LENGTH_SSID 32 #define NDIS_802_11_LENGTH_RATES 8