diff options
author | Henning Rogge <hrogge@gmail.com> | 2014-09-12 02:58:49 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-09 05:19:07 -0400 |
commit | 66be7d2bcd826344894be09dc385f9f805136b84 (patch) | |
tree | 9f9acb5aae9025d59db6520412f4d26044436a4d /net/wireless/rdev-ops.h | |
parent | cc61d8df0a0157fabae2a3422f0b7f9f18f81c82 (diff) |
cfg80211: add ops to query mesh proxy path table
Add two new cfg80211 operations for querying a table with proxied mesh
paths.
Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/rdev-ops.h')
-rw-r--r-- | net/wireless/rdev-ops.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index f6d457d6a558..c09e697bcb15 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h | |||
@@ -263,6 +263,18 @@ static inline int rdev_get_mpath(struct cfg80211_registered_device *rdev, | |||
263 | 263 | ||
264 | } | 264 | } |
265 | 265 | ||
266 | static inline int rdev_get_mpp(struct cfg80211_registered_device *rdev, | ||
267 | struct net_device *dev, u8 *dst, u8 *mpp, | ||
268 | struct mpath_info *pinfo) | ||
269 | { | ||
270 | int ret; | ||
271 | |||
272 | trace_rdev_get_mpp(&rdev->wiphy, dev, dst, mpp); | ||
273 | ret = rdev->ops->get_mpp(&rdev->wiphy, dev, dst, mpp, pinfo); | ||
274 | trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); | ||
275 | return ret; | ||
276 | } | ||
277 | |||
266 | static inline int rdev_dump_mpath(struct cfg80211_registered_device *rdev, | 278 | static inline int rdev_dump_mpath(struct cfg80211_registered_device *rdev, |
267 | struct net_device *dev, int idx, u8 *dst, | 279 | struct net_device *dev, int idx, u8 *dst, |
268 | u8 *next_hop, struct mpath_info *pinfo) | 280 | u8 *next_hop, struct mpath_info *pinfo) |
@@ -271,7 +283,20 @@ static inline int rdev_dump_mpath(struct cfg80211_registered_device *rdev, | |||
271 | int ret; | 283 | int ret; |
272 | trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop); | 284 | trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop); |
273 | ret = rdev->ops->dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop, | 285 | ret = rdev->ops->dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop, |
274 | pinfo); | 286 | pinfo); |
287 | trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); | ||
288 | return ret; | ||
289 | } | ||
290 | |||
291 | static inline int rdev_dump_mpp(struct cfg80211_registered_device *rdev, | ||
292 | struct net_device *dev, int idx, u8 *dst, | ||
293 | u8 *mpp, struct mpath_info *pinfo) | ||
294 | |||
295 | { | ||
296 | int ret; | ||
297 | |||
298 | trace_rdev_dump_mpp(&rdev->wiphy, dev, idx, dst, mpp); | ||
299 | ret = rdev->ops->dump_mpp(&rdev->wiphy, dev, idx, dst, mpp, pinfo); | ||
275 | trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); | 300 | trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); |
276 | return ret; | 301 | return ret; |
277 | } | 302 | } |