aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2022-02-25 08:11:36 +0100
committerChristian Lamparter <chunkeey@gmail.com>2022-02-25 17:27:28 +0100
commite126a1e4137f5c7fba00e762369eb30a16f8fbf4 (patch)
tree61f26b87ad2940dc71bea40634d0174e291893a7 /package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch
parent68a20d86313a58128cc8c17a58d5bd38c603c673 (diff)
downloadupstream-e126a1e4137f5c7fba00e762369eb30a16f8fbf4.tar.gz
upstream-e126a1e4137f5c7fba00e762369eb30a16f8fbf4.tar.bz2
upstream-e126a1e4137f5c7fba00e762369eb30a16f8fbf4.zip
mac80211: add #if guards against 5.4 compile failures
Both struct net_device_path_ctx and struct net_device_path are not available in 5.4. This causes an build error on the bcm63xx target. |mac80211/driver-ops.h: In function 'drv_net_fill_forward_path': |driver-ops.h:1502:57: error: passing argument 4 of |'local->ops->net_fill_forward_path' from incompatible pointer type | [-Werror=incompatible-pointer-types] | 1502 | ctx, path); | | ^~~ | | | | | struct net_device_path_ctx * Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch')
-rw-r--r--package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch b/package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch
index 127b86e76d..eb80afbccb 100644
--- a/package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch
+++ b/package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch
@@ -35,9 +35,9 @@ Signed-off-by: Johannes Berg <johannes.berg@intel.com>
struct ieee80211_sta *sta, u8 flowid);
+ int (*set_radar_offchan)(struct ieee80211_hw *hw,
+ struct cfg80211_chan_def *chandef);
+ #if LINUX_VERSION_IS_GEQ(5,10,0)
int (*net_fill_forward_path)(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
- struct ieee80211_sta *sta,
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -4344,6 +4344,18 @@ out: