Parcourir la source

Update for 6.0 compatiblity.
Tested by @TheNoGoat.

loqs il y a 3 ans
Parent
commit
c3aa2e653c
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      os_dep/linux/ioctl_cfg80211.c

+ 6 - 0
os_dep/linux/ioctl_cfg80211.c

@@ -1080,7 +1080,13 @@ check_bss:
 		#endif
 
 		#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;
+		#else
+		roam_info.links[0].channel = notify_channel;
+		roam_info.links[0].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 = pmlmepriv->assoc_req_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 2;
 		roam_info.resp_ie = pmlmepriv->assoc_rsp + sizeof(struct rtw_ieee80211_hdr_3addr) + 6;