1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 07:04:12 +00:00

Fix & cleanup kernel v5.3 support

This commit is contained in:
root 2019-09-08 07:40:58 +00:00
parent 57871abeba
commit 0c7cac8843
2 changed files with 209 additions and 116 deletions

View File

@ -1,5 +1,5 @@
PACKAGE_NAME="realtek-rtl88xxau" PACKAGE_NAME="realtek-rtl88xxau"
PACKAGE_VERSION="5.6.4.1~20190824" PACKAGE_VERSION="5.6.4.1~20190908"
CLEAN="'make' clean" CLEAN="'make' clean"
BUILT_MODULE_NAME[0]=88XXau BUILT_MODULE_NAME[0]=88XXau
PROCS_NUM=`nproc` PROCS_NUM=`nproc`

View File

@ -1748,178 +1748,224 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = GSCAN_SUBCMD_GET_CAPABILITIES .subcmd = GSCAN_SUBCMD_GET_CAPABILITIES
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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 .doit = rtw_cfgvendor_gscan_get_capabilities
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_SET_CONFIG .subcmd = GSCAN_SUBCMD_SET_CONFIG
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_scan_cfg .doit = rtw_cfgvendor_set_scan_cfg
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_SET_SCAN_CONFIG .subcmd = GSCAN_SUBCMD_SET_SCAN_CONFIG
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_batch_scan_cfg .doit = rtw_cfgvendor_set_batch_scan_cfg
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_ENABLE_GSCAN .subcmd = GSCAN_SUBCMD_ENABLE_GSCAN
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
.doit = rtw_cfgvendor_initiate_gscan .doit = rtw_cfgvendor_initiate_gscan
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_ENABLE_FULL_SCAN_RESULTS .subcmd = GSCAN_SUBCMD_ENABLE_FULL_SCAN_RESULTS
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_enable_full_scan_result .doit = rtw_cfgvendor_enable_full_scan_result
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_SET_HOTLIST .subcmd = GSCAN_SUBCMD_SET_HOTLIST
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_hotlist_cfg .doit = rtw_cfgvendor_hotlist_cfg
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_SET_SIGNIFICANT_CHANGE_CONFIG .subcmd = GSCAN_SUBCMD_SET_SIGNIFICANT_CHANGE_CONFIG
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_significant_change_cfg .doit = rtw_cfgvendor_significant_change_cfg
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_GET_SCAN_RESULTS .subcmd = GSCAN_SUBCMD_GET_SCAN_RESULTS
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_gscan_get_batch_results .doit = rtw_cfgvendor_gscan_get_batch_results
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = GSCAN_SUBCMD_GET_CHANNEL_LIST .subcmd = GSCAN_SUBCMD_GET_CHANNEL_LIST
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_gscan_get_channel_list .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 */ #endif /* GSCAN_SUPPORT */
#if defined(RTT_SUPPORT) && 0 #if defined(RTT_SUPPORT) && 0
{ {
{ {
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = RTT_SUBCMD_SET_CONFIG .subcmd = RTT_SUBCMD_SET_CONFIG
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_rtt_set_config .doit = rtw_cfgvendor_rtt_set_config
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = RTT_SUBCMD_CANCEL_CONFIG .subcmd = RTT_SUBCMD_CANCEL_CONFIG
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_rtt_cancel_config .doit = rtw_cfgvendor_rtt_cancel_config
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = RTT_SUBCMD_GETCAPABILITY .subcmd = RTT_SUBCMD_GETCAPABILITY
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_rtt_get_capability .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 */ #endif /* RTT_SUPPORT */
#ifdef CONFIG_RTW_CFGVEDNOR_LLSTATS #ifdef CONFIG_RTW_CFGVEDNOR_LLSTATS
{
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LSTATS_SUBCMD_GET_INFO .subcmd = LSTATS_SUBCMD_GET_INFO
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_lstats_get_info .doit = rtw_cfgvendor_lstats_get_info
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
},
{ {
.vendor_id = OUI_GOOGLE, {
#endif .vendor_id = OUI_GOOGLE,
.subcmd = LSTATS_SUBCMD_SET_INFO .subcmd = LSTATS_SUBCMD_SET_INFO
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_lstats_set_info .doit = rtw_cfgvendor_lstats_set_info
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LSTATS_SUBCMD_CLEAR_INFO .subcmd = LSTATS_SUBCMD_CLEAR_INFO
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_lstats_clear_info .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 */ #endif /* CONFIG_RTW_CFGVEDNOR_LLSTATS */
#ifdef CONFIG_RTW_CFGVEDNOR_RSSIMONITOR #ifdef CONFIG_RTW_CFGVEDNOR_RSSIMONITOR
{ {
{ {
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_SET_RSSI_MONITOR .subcmd = WIFI_SUBCMD_SET_RSSI_MONITOR
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_rssi_monitor .doit = rtw_cfgvendor_set_rssi_monitor
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
}, },
#endif /* CONFIG_RTW_CFGVEDNOR_RSSIMONITOR */ #endif /* CONFIG_RTW_CFGVEDNOR_RSSIMONITOR */
#ifdef CONFIG_RTW_CFGVENDOR_WIFI_LOGGER #ifdef CONFIG_RTW_CFGVENDOR_WIFI_LOGGER
@ -1929,32 +1975,41 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LOGGER_START_LOGGING .subcmd = LOGGER_START_LOGGING
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_start_logging .doit = rtw_cfgvendor_logger_start_logging
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_GET_FEATURE .subcmd = LOGGER_GET_FEATURE
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_feature .doit = rtw_cfgvendor_logger_get_feature
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_GET_VER .subcmd = LOGGER_GET_VER
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_version .doit = rtw_cfgvendor_logger_get_version
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
}, },
{ {
{ {
@ -1962,21 +2017,27 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LOGGER_GET_RING_STATUS .subcmd = LOGGER_GET_RING_STATUS
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_ring_status .doit = rtw_cfgvendor_logger_get_ring_status
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_GET_RING_DATA .subcmd = LOGGER_GET_RING_DATA
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_ring_data .doit = rtw_cfgvendor_logger_get_ring_data
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
}, },
{ {
{ {
@ -1984,103 +2045,132 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = LOGGER_TRIGGER_MEM_DUMP .subcmd = LOGGER_TRIGGER_MEM_DUMP
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_firmware_memory_dump .doit = rtw_cfgvendor_logger_get_firmware_memory_dump
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_START_PKT_FATE_MONITORING .subcmd = LOGGER_START_PKT_FATE_MONITORING
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_start_pkt_fate_monitoring .doit = rtw_cfgvendor_logger_start_pkt_fate_monitoring
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_GET_TX_PKT_FATES .subcmd = LOGGER_GET_TX_PKT_FATES
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_tx_pkt_fates .doit = rtw_cfgvendor_logger_get_tx_pkt_fates
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = LOGGER_GET_RX_PKT_FATES .subcmd = LOGGER_GET_RX_PKT_FATES
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_logger_get_rx_pkt_fates .doit = rtw_cfgvendor_logger_get_rx_pkt_fates
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
#endif /* CONFIG_RTW_CFGVENDOR_WIFI_LOGGER */ #endif /* CONFIG_RTW_CFGVENDOR_WIFI_LOGGER */
#ifdef CONFIG_RTW_WIFI_HAL #ifdef CONFIG_RTW_WIFI_HAL
#ifdef CONFIG_RTW_CFGVENDOR_RANDOM_MAC_OUI #ifdef CONFIG_RTW_CFGVENDOR_RANDOM_MAC_OUI
{
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_SET_PNO_RANDOM_MAC_OUI .subcmd = WIFI_SUBCMD_SET_PNO_RANDOM_MAC_OUI
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_rand_mac_oui .doit = rtw_cfgvendor_set_rand_mac_oui
},
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
#endif #endif
{
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_NODFS_SET .subcmd = WIFI_SUBCMD_NODFS_SET
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_nodfs_flag .doit = rtw_cfgvendor_set_nodfs_flag
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_SET_COUNTRY_CODE .subcmd = WIFI_SUBCMD_SET_COUNTRY_CODE
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_country .doit = rtw_cfgvendor_set_country
}, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
{ ,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_CONFIG_ND_OFFLOAD .subcmd = WIFI_SUBCMD_CONFIG_ND_OFFLOAD
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_set_nd_offload .doit = rtw_cfgvendor_set_nd_offload
},
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
},
#endif /* CONFIG_RTW_WIFI_HAL */ #endif /* CONFIG_RTW_WIFI_HAL */
{
{ {
{
.vendor_id = OUI_GOOGLE, .vendor_id = OUI_GOOGLE,
.subcmd = WIFI_SUBCMD_GET_FEATURE_SET .subcmd = WIFI_SUBCMD_GET_FEATURE_SET
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_get_feature_set .doit = rtw_cfgvendor_get_feature_set
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
}, },
{ {
{ {
@ -2088,10 +2178,13 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
.subcmd = WIFI_SUBCMD_GET_FEATURE_SET_MATRIX .subcmd = WIFI_SUBCMD_GET_FEATURE_SET_MATRIX
}, },
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .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, .policy = VENDOR_CMD_RAW_DATA,
#endif
.doit = rtw_cfgvendor_get_feature_set_matrix .doit = rtw_cfgvendor_get_feature_set_matrix
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
,
.policy = VENDOR_CMD_RAW_DATA,
.maxattr = 1
#endif
} }
}; };