FIX: [mac80211] fix openwrt subsys patch for kernel 5.10
BugzId: 78943
This commit is contained in:
parent
de05b7fbd8
commit
c8db6d9e9d
|
|
@ -369,7 +369,7 @@ index a331431..c85050f 100644
|
||||||
struct ieee80211_sta *sta, u8 flowid);
|
struct ieee80211_sta *sta, u8 flowid);
|
||||||
+ int (*set_radar_background)(struct ieee80211_hw *hw,
|
+ int (*set_radar_background)(struct ieee80211_hw *hw,
|
||||||
+ struct cfg80211_chan_def *chandef);
|
+ struct cfg80211_chan_def *chandef);
|
||||||
+#if LINUX_VERSION_IS_GEQ(5,10,0)
|
+#if LINUX_VERSION_IS_GEQ(5,13,0)
|
||||||
+ int (*net_fill_forward_path)(struct ieee80211_hw *hw,
|
+ int (*net_fill_forward_path)(struct ieee80211_hw *hw,
|
||||||
+ struct ieee80211_vif *vif,
|
+ struct ieee80211_vif *vif,
|
||||||
+ struct ieee80211_sta *sta,
|
+ struct ieee80211_sta *sta,
|
||||||
|
|
@ -1266,7 +1266,7 @@ index 912c75d..2df420b 100644
|
||||||
trace_drv_return_void(local);
|
trace_drv_return_void(local);
|
||||||
}
|
}
|
||||||
|
|
||||||
+#if LINUX_VERSION_IS_GEQ(5,10,0)
|
+#if LINUX_VERSION_IS_GEQ(5,13,0)
|
||||||
+static inline int drv_net_fill_forward_path(struct ieee80211_local *local,
|
+static inline int drv_net_fill_forward_path(struct ieee80211_local *local,
|
||||||
+ struct ieee80211_sub_if_data *sdata,
|
+ struct ieee80211_sub_if_data *sdata,
|
||||||
+ struct ieee80211_sta *sta,
|
+ struct ieee80211_sta *sta,
|
||||||
|
|
@ -1657,7 +1657,7 @@ index b6dc214..b777921 100644
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
+#if LINUX_VERSION_IS_GEQ(5,10,0)
|
+#if LINUX_VERSION_IS_GEQ(5,13,0)
|
||||||
+static int ieee80211_netdev_fill_forward_path(struct net_device_path_ctx *ctx,
|
+static int ieee80211_netdev_fill_forward_path(struct net_device_path_ctx *ctx,
|
||||||
+ struct net_device_path *path)
|
+ struct net_device_path *path)
|
||||||
+{
|
+{
|
||||||
|
|
@ -1725,7 +1725,7 @@ index b6dc214..b777921 100644
|
||||||
.ndo_get_stats64 = bp_ieee80211_get_stats64,
|
.ndo_get_stats64 = bp_ieee80211_get_stats64,
|
||||||
#endif
|
#endif
|
||||||
-
|
-
|
||||||
+#if LINUX_VERSION_IS_GEQ(5,10,0)
|
+#if LINUX_VERSION_IS_GEQ(5,13,0)
|
||||||
+ .ndo_fill_forward_path = ieee80211_netdev_fill_forward_path,
|
+ .ndo_fill_forward_path = ieee80211_netdev_fill_forward_path,
|
||||||
+#endif
|
+#endif
|
||||||
};
|
};
|
||||||
|
|
@ -2332,7 +2332,7 @@ index 9e8381b..bbda9e9 100644
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
+#if LINUX_VERSION_IS_GEQ(5,10,0)
|
+#if LINUX_VERSION_IS_GEQ(5,13,0)
|
||||||
+DEFINE_EVENT(sta_event, drv_net_fill_forward_path,
|
+DEFINE_EVENT(sta_event, drv_net_fill_forward_path,
|
||||||
+ TP_PROTO(struct ieee80211_local *local,
|
+ TP_PROTO(struct ieee80211_local *local,
|
||||||
+ struct ieee80211_sub_if_data *sdata,
|
+ struct ieee80211_sub_if_data *sdata,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue