Added kernel v5.3 support

This commit is contained in:
kimocoder
2019-11-29 07:16:46 +01:00
parent e10ad0223b
commit 74323579d3
4 changed files with 90 additions and 2 deletions

View File

@@ -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 */

View File

@@ -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
}
};