From 2432efe391d5e3c88b389d73f086b785230876f0 Mon Sep 17 00:00:00 2001
From: LMA <maximleyman@yandex.ru>
Date: Fri, 14 Oct 2022 14:57:23 +0700
Subject: [PATCH] fix build for linux 6.0.1

---
 os_dep/linux/ioctl_cfg80211.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
index d9c81c9..cca5b3b 100644
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -1085,7 +1085,11 @@ void rtw_cfg80211_indicate_connect(_adapter *padapter)
 		#endif
 
 		#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+		#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)
+        roam_info.links[0].bssid = cur_network->network.MacAddress;
+        #else
 		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 = 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;
