mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 07:04:12 +00:00
Add kernel 5.19.2 support
This commit is contained in:
parent
3854a61113
commit
c65315c178
@ -472,7 +472,7 @@ 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, 0, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||||
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);
|
||||||
@ -5227,7 +5227,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||||
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
|
#else
|
||||||
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
||||||
@ -6104,7 +6104,7 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||||
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){
|
||||||
@ -10413,6 +10413,8 @@ 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(6, 0, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0))
|
||||||
if (wdev->links[0].client.current_bss) {
|
if (wdev->links[0].client.current_bss) {
|
||||||
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19, 2))
|
||||||
|
if (wdev->connected) {
|
||||||
#else
|
#else
|
||||||
if (wdev->current_bss) {
|
if (wdev->current_bss) {
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user