From 021999951dd424aac30bcd427567758516afbe00 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Mon, 15 Aug 2022 14:32:24 +0000 Subject: [PATCH] bcm_sta: patch to compile with Linux 6.0 --- .../patches/bcm_sta-0600-kernel-6.0-fix.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/linux-drivers/bcm_sta/patches/bcm_sta-0600-kernel-6.0-fix.patch diff --git a/packages/linux-drivers/bcm_sta/patches/bcm_sta-0600-kernel-6.0-fix.patch b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0600-kernel-6.0-fix.patch new file mode 100644 index 0000000000..42744d114b --- /dev/null +++ b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0600-kernel-6.0-fix.patch @@ -0,0 +1,17 @@ +diff -Nur a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c +--- a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c 2022-08-15 14:06:51.943852581 +0000 ++++ b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c 2022-08-15 14:24:49.917982457 +0000 +@@ -2393,8 +2393,13 @@ + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) + { + struct cfg80211_roam_info roam_info = { ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) ++ .links[0].channel = &wl->conf->channel, ++ .links[0].bssid = (u8 *)&wl->bssid, ++#else + .channel = &wl->conf->channel, + .bssid = (u8 *)&wl->bssid, ++#endif + .req_ie = conn_info->req_ie, + .req_ie_len = conn_info->req_ie_len, + .resp_ie = conn_info->resp_ie,