mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-05-07 10:10:08 +00:00
Several fixes + increased optimization level
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie
|
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie
|
||||||
EXTRA_CFLAGS += -O1
|
#EXTRA_CFLAGS += -O1
|
||||||
#EXTRA_CFLAGS += -O3
|
EXTRA_CFLAGS += -O3
|
||||||
EXTRA_CFLAGS += -Wno-unused-variable
|
EXTRA_CFLAGS += -Wno-unused-variable
|
||||||
EXTRA_CFLAGS += -Wno-unused-value
|
EXTRA_CFLAGS += -Wno-unused-value
|
||||||
EXTRA_CFLAGS += -Wno-unused-label
|
EXTRA_CFLAGS += -Wno-unused-label
|
||||||
|
|||||||
+1
-1
@@ -171,7 +171,7 @@ void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *d
|
|||||||
u8 bmatch = _FALSE;
|
u8 bmatch = _FALSE;
|
||||||
u8 *pie = pnetwork->IEs;
|
u8 *pie = pnetwork->IEs;
|
||||||
u8 *p = NULL, *dst_ie = NULL, *premainder_ie = NULL, *pbackup_remainder_ie = NULL;
|
u8 *p = NULL, *dst_ie = NULL, *premainder_ie = NULL, *pbackup_remainder_ie = NULL;
|
||||||
u32 i, offset, ielen, ie_offset, remainder_ielen = 0;
|
u32 i, offset, ielen = 0, ie_offset, remainder_ielen = 0;
|
||||||
|
|
||||||
for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;) {
|
for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;) {
|
||||||
pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
|
pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
|
||||||
|
|||||||
+14
-3
@@ -3744,8 +3744,10 @@ void issue_p2p_GO_request(_adapter *padapter, u8 *raddr)
|
|||||||
u8 action = P2P_PUB_ACTION_ACTION;
|
u8 action = P2P_PUB_ACTION_ACTION;
|
||||||
u32 p2poui = cpu_to_be32(P2POUI);
|
u32 p2poui = cpu_to_be32(P2POUI);
|
||||||
u8 oui_subtype = P2P_GO_NEGO_REQ;
|
u8 oui_subtype = P2P_GO_NEGO_REQ;
|
||||||
u8 wpsie[255] = { 0x00 }, p2pie[255] = { 0x00 };
|
u8 *wpsie;
|
||||||
u8 wpsielen = 0, p2pielen = 0;
|
u8 p2pie[ 255 ] = { 0x00 };
|
||||||
|
u8 p2pielen = 0;
|
||||||
|
u8 wpsielen = 0;
|
||||||
u16 len_channellist_attr = 0;
|
u16 len_channellist_attr = 0;
|
||||||
#ifdef CONFIG_WFD
|
#ifdef CONFIG_WFD
|
||||||
u32 wfdielen = 0;
|
u32 wfdielen = 0;
|
||||||
@@ -3765,6 +3767,8 @@ void issue_p2p_GO_request(_adapter *padapter, u8 *raddr)
|
|||||||
if (pmgntframe == NULL)
|
if (pmgntframe == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
wpsie = rtw_zmalloc(256);
|
||||||
|
|
||||||
RTW_INFO("[%s] In\n", __FUNCTION__);
|
RTW_INFO("[%s] In\n", __FUNCTION__);
|
||||||
/* update attribute */
|
/* update attribute */
|
||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
@@ -4128,6 +4132,8 @@ void issue_p2p_GO_request(_adapter *padapter, u8 *raddr)
|
|||||||
|
|
||||||
dump_mgntframe(padapter, pmgntframe);
|
dump_mgntframe(padapter, pmgntframe);
|
||||||
|
|
||||||
|
kfree(wpsie);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4140,7 +4146,8 @@ void issue_p2p_GO_response(_adapter *padapter, u8 *raddr, u8 *frame_body, uint l
|
|||||||
u8 action = P2P_PUB_ACTION_ACTION;
|
u8 action = P2P_PUB_ACTION_ACTION;
|
||||||
u32 p2poui = cpu_to_be32(P2POUI);
|
u32 p2poui = cpu_to_be32(P2POUI);
|
||||||
u8 oui_subtype = P2P_GO_NEGO_RESP;
|
u8 oui_subtype = P2P_GO_NEGO_RESP;
|
||||||
u8 wpsie[255] = { 0x00 }, p2pie[255] = { 0x00 };
|
u8 *wpsie;
|
||||||
|
u8 p2pie[ 255 ] = { 0x00 };
|
||||||
u8 p2pielen = 0;
|
u8 p2pielen = 0;
|
||||||
uint wpsielen = 0;
|
uint wpsielen = 0;
|
||||||
u16 wps_devicepassword_id = 0x0000;
|
u16 wps_devicepassword_id = 0x0000;
|
||||||
@@ -4164,6 +4171,8 @@ void issue_p2p_GO_response(_adapter *padapter, u8 *raddr, u8 *frame_body, uint l
|
|||||||
if (pmgntframe == NULL)
|
if (pmgntframe == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
wpsie = rtw_zmalloc(256);
|
||||||
|
|
||||||
RTW_INFO("[%s] In, result = %d\n", __FUNCTION__, result);
|
RTW_INFO("[%s] In, result = %d\n", __FUNCTION__, result);
|
||||||
/* update attribute */
|
/* update attribute */
|
||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
@@ -4546,6 +4555,8 @@ void issue_p2p_GO_response(_adapter *padapter, u8 *raddr, u8 *frame_body, uint l
|
|||||||
|
|
||||||
dump_mgntframe(padapter, pmgntframe);
|
dump_mgntframe(padapter, pmgntframe);
|
||||||
|
|
||||||
|
kfree(wpsie);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
PACKAGE_NAME="realtek-rtl8188eus"
|
PACKAGE_NAME="realtek-rtl8188eus"
|
||||||
PACKAGE_VERSION="5.7.6.1~20200204"
|
PACKAGE_VERSION="5.7.6.1~20200205"
|
||||||
CLEAN="'make' clean"
|
CLEAN="'make' clean"
|
||||||
BUILT_MODULE_NAME[0]=8188eu
|
BUILT_MODULE_NAME[0]=8188eu
|
||||||
PROCS_NUM=`nproc`
|
PROCS_NUM=`nproc`
|
||||||
|
|||||||
@@ -20,6 +20,18 @@
|
|||||||
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
|
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !((defined CONFIG_LITTLE_ENDIAN) || (defined CONFIG_BIG_ENDIAN))
|
||||||
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
|
#define CONFIG_LITTLE_ENDIAN
|
||||||
|
//#warning "Auto-detected little-endian system...hope it is correct!"
|
||||||
|
#else
|
||||||
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
|
//#warning "Auto-detected big-endian system...hope it is correct!"
|
||||||
|
#define CONFIG_BIG_ENDIAN
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_LITTLE_ENDIAN)
|
#if defined(CONFIG_LITTLE_ENDIAN)
|
||||||
#ifndef CONFIG_PLATFORM_MSTAR389
|
#ifndef CONFIG_PLATFORM_MSTAR389
|
||||||
#include <byteorder/little_endian.h>
|
#include <byteorder/little_endian.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user