mac80211: update to version 6.5
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / build / 110-backport_namepace_const.patch
1 --- a/net/wireless/sysfs.c
2 +++ b/net/wireless/sysfs.c
3 @@ -154,7 +154,11 @@ static SIMPLE_DEV_PM_OPS(wiphy_pm_ops, w
4 #define WIPHY_PM_OPS NULL
5 #endif
6
7 +#if LINUX_VERSION_IS_GEQ(6,2,0)
8 static const void *wiphy_namespace(const struct device *d)
9 +#else
10 +static const void *wiphy_namespace(struct device *d)
11 +#endif
12 {
13 struct wiphy *wiphy = container_of(d, struct wiphy, dev);
14