cfg80211: add support to probe unexercised mesh link

Adding support to allow mesh HWMP to measure link metrics on unexercised
direct mesh path by sending some data frames to other mesh points which
are not currently selected as a primary traffic path but only 1 hop away.
The absence of the primary path to the chosen node makes it necessary to
apply some form of marking on a chosen packet stream so that the packets
can be properly steered to the selected node for testing, and not by the
regular mesh path lookup.

Tested-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Rajkumar Manoharan
2019-04-11 13:47:24 -07:00
committed by Johannes Berg
parent 387bc00225
commit 5ab92e7fe4
5 changed files with 101 additions and 0 deletions

View File

@@ -1286,4 +1286,17 @@ static inline int rdev_update_owe_info(struct cfg80211_registered_device *rdev,
return ret;
}
static inline int
rdev_probe_mesh_link(struct cfg80211_registered_device *rdev,
struct net_device *dev, const u8 *dest,
const void *buf, size_t len)
{
int ret;
trace_rdev_probe_mesh_link(&rdev->wiphy, dev, dest, buf, len);
ret = rdev->ops->probe_mesh_link(&rdev->wiphy, dev, buf, len);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
}
#endif /* __CFG80211_RDEV_OPS */