mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-08 20:35:07 +00:00
Address warning in createbss_hdl()
This commit is contained in:
parent
ca797e114b
commit
6f7a4e568a
@ -13941,14 +13941,14 @@ u8 createbss_hdl(_adapter *padapter, u8 *pbuf)
|
||||
flush_all_cam_entry(padapter);
|
||||
|
||||
pdev_network->Length = get_WLAN_BSSID_EX_sz(pdev_network);
|
||||
_rtw_memcpy(pnetwork, pdev_network, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
|
||||
pnetwork->IELength = pdev_network->IELength;
|
||||
|
||||
if (pnetwork->IELength > MAX_IE_SZ) {
|
||||
if (FIELD_OFFSET(WLAN_BSSID_EX, IELength) > MAX_IE_SZ) {
|
||||
ret = H2C_PARAMETERS_ERROR;
|
||||
goto ibss_post_hdl;
|
||||
}
|
||||
|
||||
memcpy(pnetwork, pdev_network, FIELD_OFFSET(WLAN_BSSID_EX, IELength));
|
||||
pnetwork->IELength = pdev_network->IELength;
|
||||
|
||||
_rtw_memcpy(pnetwork->IEs, pdev_network->IEs, pnetwork->IELength);
|
||||
start_create_ibss(padapter);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user