|
|
|
|
@ -417,7 +417,11 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8
|
|
|
|
|
if (ret != _SUCCESS)
|
|
|
|
|
goto exit;
|
|
|
|
|
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
|
|
|
|
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
|
|
|
|
#else
|
|
|
|
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
int freq = rtw_ch2freq(ch);
|
|
|
|
|
@ -1085,7 +1089,9 @@ check_bss:
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
|
|
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
|
|
|
|
|
roam_info.links[0].bssid = cur_network->network.MacAddress;
|
|
|
|
|
#endif /*LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)*/
|
|
|
|
|
roam_info.req_ie = pmlmepriv->assoc_req + sizeof(struct rtw_ieee80211_hdr_3addr) + 2;
|
|
|
|
|
roam_info.req_ie_len = pmlmepriv->assoc_req_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 2;
|
|
|
|
|
roam_info.resp_ie = pmlmepriv->assoc_rsp + sizeof(struct rtw_ieee80211_hdr_3addr) + 6;
|
|
|
|
|
@ -1635,8 +1641,11 @@ exit:
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
|
|
int link_id, u8 key_index
|
|
|
|
|
static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
|
|
, int link_id
|
|
|
|
|
#endif
|
|
|
|
|
, u8 key_index
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
, bool pairwise
|
|
|
|
|
#endif
|
|
|
|
|
@ -1779,8 +1788,11 @@ addkey_end:
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
|
|
int link_id, u8 keyid
|
|
|
|
|
static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
|
|
, int link_id
|
|
|
|
|
#endif
|
|
|
|
|
, u8 keyid
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
, bool pairwise
|
|
|
|
|
#endif
|
|
|
|
|
@ -1944,7 +1956,10 @@ exit:
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev, int link_id,
|
|
|
|
|
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
|
|
int link_id,
|
|
|
|
|
#endif
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
u8 key_index, bool pairwise, const u8 *mac_addr)
|
|
|
|
|
#else /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) */
|
|
|
|
|
@ -1965,7 +1980,11 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev, in
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
|
|
|
|
struct net_device *ndev, int link_id, u8 key_index
|
|
|
|
|
struct net_device *ndev
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
|
|
, int link_id
|
|
|
|
|
#endif
|
|
|
|
|
, u8 key_index
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
|
, bool unicast, bool multicast
|
|
|
|
|
#endif
|
|
|
|
|
@ -2013,7 +2032,11 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
|
|
|
|
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30))
|
|
|
|
|
int cfg80211_rtw_set_default_mgmt_key(struct wiphy *wiphy,
|
|
|
|
|
struct net_device *ndev, int link_id, u8 key_index)
|
|
|
|
|
struct net_device *ndev
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
|
|
, int link_id
|
|
|
|
|
#endif
|
|
|
|
|
, u8 key_index)
|
|
|
|
|
{
|
|
|
|
|
#define SET_DEF_KEY_PARAM_FMT " key_index=%d"
|
|
|
|
|
#define SET_DEF_KEY_PARAM_ARG , key_index
|
|
|
|
|
@ -4929,7 +4952,11 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id)
|
|
|
|
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
|
|
|
|
|
, unsigned int link_id
|
|
|
|
|
#endif
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
|
|
|
|
|
|
|
|
|
|
|