2432efe391d5e3c88b389d73f086b785230876f0.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. From 2432efe391d5e3c88b389d73f086b785230876f0 Mon Sep 17 00:00:00 2001
  2. From: LMA <maximleyman@yandex.ru>
  3. Date: Fri, 14 Oct 2022 14:57:23 +0700
  4. Subject: [PATCH] fix build for linux 6.0.1
  5. ---
  6. os_dep/linux/ioctl_cfg80211.c | 6 +++++-
  7. 1 file changed, 5 insertions(+), 1 deletion(-)
  8. diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
  9. index d9c81c9..cca5b3b 100644
  10. --- a/os_dep/linux/ioctl_cfg80211.c
  11. +++ b/os_dep/linux/ioctl_cfg80211.c
  12. @@ -1085,7 +1085,11 @@ void rtw_cfg80211_indicate_connect(_adapter *padapter)
  13. #endif
  14. #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
  15. + #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
  16. + roam_info.links[0].bssid = cur_network->network.MacAddress;
  17. + #else
  18. roam_info.bssid = cur_network->network.MacAddress;
  19. + #endif
  20. roam_info.req_ie = pmlmepriv->assoc_req + sizeof(struct rtw_ieee80211_hdr_3addr) + 2;
  21. roam_info.req_ie_len = pmlmepriv->assoc_req_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 2;
  22. roam_info.resp_ie = pmlmepriv->assoc_rsp + sizeof(struct rtw_ieee80211_hdr_3addr) + 6;