mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 15:14:02 +00:00
fixing 'too few arguments to function cfg80211_ch_switch_started_notify'
This commit is contained in:
parent
d40f33b617
commit
1698bf7fe3
@ -460,9 +460,9 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
|
|||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
|
||||||
if (started) {
|
if (started) {
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 9, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 9, 0))
|
||||||
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
|
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
|
||||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
|
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
|
||||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0))
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0))
|
||||||
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
|
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
|
||||||
@ -476,9 +476,9 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
|
|||||||
if (!rtw_cfg80211_allow_ch_switch_notify(adapter))
|
if (!rtw_cfg80211_allow_ch_switch_notify(adapter))
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 9, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 9, 0))
|
||||||
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
||||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
||||||
#else
|
#else
|
||||||
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
||||||
@ -1155,7 +1155,9 @@ check_bss:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
|
roam_info.links[0].bssid = cur_network->network.MacAddress;
|
||||||
|
#else
|
||||||
roam_info.channel = notify_channel;
|
roam_info.channel = notify_channel;
|
||||||
roam_info.bssid = cur_network->network.MacAddress;
|
roam_info.bssid = cur_network->network.MacAddress;
|
||||||
#endif
|
#endif
|
||||||
@ -1738,7 +1740,7 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev
|
static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
, int link_id
|
, int link_id
|
||||||
#endif
|
#endif
|
||||||
, u8 key_index
|
, u8 key_index
|
||||||
@ -1885,7 +1887,7 @@ addkey_end:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
|
static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
, int link_id
|
, int link_id
|
||||||
#endif
|
#endif
|
||||||
, u8 keyid
|
, u8 keyid
|
||||||
@ -2053,7 +2055,7 @@ exit:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
int link_id,
|
int link_id,
|
||||||
#endif
|
#endif
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
||||||
@ -2077,7 +2079,7 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||||||
|
|
||||||
static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
||||||
struct net_device *ndev,
|
struct net_device *ndev,
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
int link_id,
|
int link_id,
|
||||||
#endif
|
#endif
|
||||||
u8 key_index
|
u8 key_index
|
||||||
@ -2129,7 +2131,7 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
|||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30))
|
||||||
int cfg80211_rtw_set_default_mgmt_key(struct wiphy *wiphy,
|
int cfg80211_rtw_set_default_mgmt_key(struct wiphy *wiphy,
|
||||||
struct net_device *ndev,
|
struct net_device *ndev,
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
int link_id,
|
int link_id,
|
||||||
#endif
|
#endif
|
||||||
u8 key_index)
|
u8 key_index)
|
||||||
@ -5318,10 +5320,10 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
|
||||||
#else
|
|
||||||
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, unsigned int link_id)
|
||||||
|
#else
|
||||||
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
|
_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
|
||||||
@ -6194,7 +6196,7 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, unsigned int link_id, struct cfg80211_chan_def *chandef){
|
static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, unsigned int link_id, struct cfg80211_chan_def *chandef){
|
||||||
#else
|
#else
|
||||||
static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, struct cfg80211_chan_def *chandef){
|
static int cfg80211_rtw_get_channel(struct wiphy *wiphy, struct wireless_dev *wdev, struct cfg80211_chan_def *chandef){
|
||||||
@ -10489,7 +10491,7 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
|
|||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
||||||
if (wdev->links[0].client.current_bss) {
|
if (wdev->links[0].client.current_bss) {
|
||||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 78))
|
||||||
if (wdev->connected) {
|
if (wdev->connected) {
|
||||||
#else
|
#else
|
||||||
if (wdev->current_bss) {
|
if (wdev->current_bss) {
|
||||||
|
Loading…
Reference in New Issue
Block a user