Skip to content

Instantly share code, notes, and snippets.

@kode54
Created March 13, 2026 09:25
Show Gist options
  • Select an option

  • Save kode54/e1c5897c2b2ec1de0734e1d887fad604 to your computer and use it in GitHub Desktop.

Select an option

Save kode54/e1c5897c2b2ec1de0734e1d887fad604 to your computer and use it in GitHub Desktop.
Fix for broadcom wl for kernel built with FORTIFY_SOURCE
diff -urN a/src/wl/sys/wl_cfg80211_hybrid.h b/src/wl/sys/wl_cfg80211_hybrid.h
--- a/src/wl/sys/wl_cfg80211_hybrid.h 2015-09-18 15:47:30.000000000 -0700
+++ b/src/wl/sys/wl_cfg80211_hybrid.h 2026-03-13 02:21:35.954510499 -0700
@@ -103,7 +103,7 @@
__le64 timestamp;
__le16 beacon_int;
__le16 capab_info;
- u8 variable[0];
+ u8 variable[];
} __attribute__ ((packed));
struct wl_cfg80211_conf {
@@ -198,7 +198,7 @@
bool offloads;
u8 *ioctl_buf;
u8 *extra_buf;
- u8 ci[0] __attribute__ ((__aligned__(NETDEV_ALIGN)));
+ u8 ci[] __attribute__ ((__aligned__(NETDEV_ALIGN)));
};
#define wl_to_dev(w) (wiphy_dev(wl->wdev->wiphy))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment