mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 02:37:16 +09:00
Added kernel v5.3 support
This commit is contained in:
parent
e10ad0223b
commit
74323579d3
2
Makefile
2
Makefile
@ -23,6 +23,8 @@ EXTRA_CFLAGS += -Wno-date-time
|
||||
#EXTRA_CFLAGS += -Wno-sign-compare
|
||||
#EXTRA_CFLAGS += -Wno-missing-field-initializers
|
||||
#EXTRA_CFLAGS += -Wno-type-limits
|
||||
EXTRA_CFLAGS += -Wno-implicit-fallthrough
|
||||
EXTRA_CFLAGS += -Wno-maybe-uninitialized
|
||||
|
||||
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||
ifeq ($(GCC_VER_49),1)
|
||||
|
@ -1,5 +1,5 @@
|
||||
PACKAGE_NAME="realtek-rtl8188eus"
|
||||
PACKAGE_VERSION="5.3.9~20190523"
|
||||
PACKAGE_VERSION="5.3.9~20191129"
|
||||
CLEAN="'make' clean"
|
||||
BUILT_MODULE_NAME[0]=8188eu
|
||||
PROCS_NUM=`nproc`
|
||||
|
@ -4126,6 +4126,7 @@ static int cfg80211_rtw_flush_pmksa(struct wiphy *wiphy,
|
||||
#ifdef CONFIG_AP_MODE
|
||||
void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint frame_len)
|
||||
{
|
||||
u8 ie_offset;
|
||||
s32 freq;
|
||||
int channel;
|
||||
struct wireless_dev *pwdev = padapter->rtw_wdev;
|
||||
@ -4138,7 +4139,7 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
|
||||
{
|
||||
struct station_info sinfo;
|
||||
_rtw_memset(&sinfo, 0, sizeof(struct station_info));
|
||||
u8 ie_offset;
|
||||
|
||||
if (get_frame_sub_type(pmgmt_frame) == WIFI_ASSOCREQ)
|
||||
ie_offset = _ASOCREQ_IE_OFFSET_;
|
||||
else /* WIFI_REASSOCREQ */
|
||||
|
@ -1300,6 +1300,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_gscan_get_capabilities
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1308,6 +1313,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_set_scan_cfg
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1316,6 +1326,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_set_batch_scan_cfg
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1324,6 +1339,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_initiate_gscan
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1332,6 +1352,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_enable_full_scan_result
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1340,6 +1365,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_hotlist_cfg
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1348,6 +1378,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_significant_change_cfg
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1356,6 +1391,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_gscan_get_batch_results
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1364,6 +1404,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_gscan_get_channel_list
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif /* GSCAN_SUPPORT */
|
||||
#if defined(RTT_SUPPORT) && 0
|
||||
@ -1374,6 +1419,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_rtt_set_config
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1382,6 +1432,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_rtt_cancel_config
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1390,6 +1445,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_rtt_get_capability
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif /* RTT_SUPPORT */
|
||||
#ifdef CONFIG_RTW_CFGVEDNOR_LLSTATS
|
||||
@ -1400,6 +1460,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_lstats_get_info
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1408,6 +1473,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_lstats_set_info
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1416,6 +1486,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_lstats_clear_info
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif /* CONFIG_RTW_CFGVEDNOR_LLSTATS */
|
||||
{
|
||||
@ -1425,6 +1500,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_get_feature_set
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1433,6 +1513,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_get_feature_set_matrix
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user