Skip to content

Commit

Permalink
rtl8723du: Fix some 5.19.2 incompatibilities
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
lwfinger committed Aug 22, 2022
1 parent a0a8799 commit 39c864c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os_dep/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ void rtw_cfg80211_indicate_connect(struct adapter *adapt)
#endif

#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.bssid = cur_network->network.MacAddress;
#else
roam_info.links[0].bssid = cur_network->network.MacAddress;
Expand Down Expand Up @@ -3787,7 +3787,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)
Expand Down Expand Up @@ -5836,7 +5836,7 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
rtw_cfg80211_indicate_scan_done(adapter, true);

#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(5, 19, 2)
if (wdev->current_bss) {
#else
if (wdev->connected) {
Expand Down

0 comments on commit 39c864c

Please sign in to comment.