From ca95522030078c3a093ebb5327025f2d70cfd488 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Mon, 17 Oct 2022 23:18:37 +0200 Subject: [PATCH] Re-introduce code for Linux version < 6.0.0. Signed-off-by: Giulio Benetti --- ioctl_cfg80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ioctl_cfg80211.c b/ioctl_cfg80211.c index 782767c..0ea5460 100644 --- a/ioctl_cfg80211.c +++ b/ioctl_cfg80211.c @@ -706,6 +706,10 @@ 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) + roam_info.channel = notify_channel; + roam_info.bssid = cur_network->network.MacAddress; +#endif roam_info.req_ie = pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2; roam_info.req_ie_len =