mirror of
https://github.com/brektrou/rtl8821CU.git
synced 2025-12-26 04:36:18 +08:00
Fixed: driver doesn't work on Linux 5.3.x
Solution: https://github.com/aircrack-ng/rtl8812au/pull/432
This commit is contained in:
parent
23c0a81b57
commit
db47217e31
@ -1756,6 +1756,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1764,6 +1769,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1772,6 +1782,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1780,6 +1795,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1788,6 +1808,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1796,6 +1821,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1804,6 +1834,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1812,6 +1847,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1820,6 +1860,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
|
||||
@ -1830,6 +1875,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1838,6 +1888,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1846,6 +1901,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
|
||||
@ -1856,6 +1916,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1864,6 +1929,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1872,6 +1942,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 */
|
||||
#ifdef CONFIG_RTW_CFGVEDNOR_RSSIMONITOR
|
||||
@ -1882,6 +1957,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_rssi_monitor
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif /* CONFIG_RTW_CFGVEDNOR_RSSIMONITOR */
|
||||
#ifdef CONFIG_RTW_CFGVENDOR_WIFI_LOGGER
|
||||
@ -1892,6 +1972,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_logger_start_logging
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1900,6 +1985,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_logger_get_feature
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1908,6 +1998,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_logger_get_version
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1916,6 +2011,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_logger_get_ring_status
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1924,6 +2024,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.doit = rtw_cfgvendor_logger_get_ring_data
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1932,6 +2037,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1940,6 +2050,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1948,6 +2063,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1956,6 +2076,11 @@ static const struct wiphy_vendor_command rtw_vendor_cmds[] = {
|
||||
},
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
|
||||
.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 */
|
||||
#ifdef CONFIG_RTW_WIFI_HAL
|
||||
@ -1967,6 +2092,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_rand_mac_oui
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif
|
||||
{
|
||||
@ -1976,6 +2106,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_nodfs_flag
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
|
||||
},
|
||||
{
|
||||
@ -1985,6 +2120,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_country
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -1993,6 +2133,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_nd_offload
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
|
||||
,
|
||||
.policy = VENDOR_CMD_RAW_DATA,
|
||||
.maxattr = 1
|
||||
#endif
|
||||
},
|
||||
#endif /* CONFIG_RTW_WIFI_HAL */
|
||||
{
|
||||
@ -2002,6 +2147,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
|
||||
},
|
||||
{
|
||||
{
|
||||
@ -2010,6 +2160,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