1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-12-31 07:03:59 +00:00

Fix & cleanup kernel v5.3 support

This commit is contained in:
root 2019-09-08 07:40:58 +00:00 committed by Carlos Garces
parent 76c8b70a00
commit 839d24223d

View File

@ -1296,10 +1296,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_GET_CAPABILITIES
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_gscan_get_capabilities
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1307,10 +1309,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_SET_CONFIG
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_scan_cfg
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1318,10 +1322,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_SET_SCAN_CONFIG
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_batch_scan_cfg
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1330,6 +1336,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
},
{
{
@ -1337,10 +1348,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_ENABLE_FULL_SCAN_RESULTS
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_enable_full_scan_result
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1348,10 +1361,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_SET_HOTLIST
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_hotlist_cfg
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1359,10 +1374,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_SET_SIGNIFICANT_CHANGE_CONFIG
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_significant_change_cfg
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1370,10 +1387,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_GET_SCAN_RESULTS
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_gscan_get_batch_results
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1381,10 +1400,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_GET_CHANNEL_LIST
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.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
@ -1394,10 +1415,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = RTT_SUBCMD_SET_CONFIG
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_rtt_set_config
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1405,10 +1428,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = RTT_SUBCMD_CANCEL_CONFIG
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_rtt_cancel_config
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1416,11 +1441,13 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = RTT_SUBCMD_GETCAPABILITY
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.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
{
@ -1429,10 +1456,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LSTATS_SUBCMD_GET_INFO
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_lstats_get_info
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1440,10 +1469,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LSTATS_SUBCMD_SET_INFO
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_lstats_set_info
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1451,10 +1482,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LSTATS_SUBCMD_CLEAR_INFO
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.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 */
{
@ -1463,10 +1496,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = WIFI_SUBCMD_GET_FEATURE_SET
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_get_feature_set
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{
{
@ -1474,10 +1509,12 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = WIFI_SUBCMD_GET_FEATURE_SET_MATRIX
},
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
.policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_get_feature_set_matrix
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
}
};