mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 14:23:39 +00:00
rtl8188eu: Fix builds for kernel 5.19.2
The changes that were in kernel 6.0 hav been backported to 5.19.2. Backporting these kind of changes is pointless. In 6.0, the way is prepared to allow multiple links per connection. In 5.19, the only one used is link 0! What is the point? Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
0a5e81555c
commit
96c88129ba
1 changed files with 3 additions and 3 deletions
|
@ -706,7 +706,7 @@ check_bss:
|
|||
|
||||
RTW_INFO(FUNC_ADPT_FMT" call cfg80211_roamed\n", FUNC_ADPT_ARG(padapter));
|
||||
#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, 19, 2)
|
||||
roam_info.channel = notify_channel;
|
||||
roam_info.bssid = cur_network->network.MacAddress;
|
||||
#else
|
||||
|
@ -4075,7 +4075,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
|||
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)
|
||||
#else
|
||||
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id)
|
||||
|
@ -6983,7 +6983,7 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
|
|||
rtw_cfg80211_indicate_scan_done(adapter, true);
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0))
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
|
||||
if (wdev->current_bss) {
|
||||
#else
|
||||
if (wdev->connected) {
|
||||
|
|
Loading…
Reference in a new issue