]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: add command to inject a frame via direct mesh link to mesh peer
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Mon, 8 Apr 2019 23:29:23 +0000 (04:59 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Apr 2019 09:54:18 +0000 (11:54 +0200)
commit24091b7f6cf613d6535f8875f5a8bd80be8f4ee8
treea295e789bc6bb49b90f6900f23497db3c9924ef4
parent2c8026de55499f0546491b90bfdd5b828a594170
iw: add command to inject a frame via direct mesh link to mesh peer

Add mpath command to inject ethernet frame over direct mesh link to
given peer, bypassing the mpath table lookup. This helps to send data
frames over unexcersized direct mesh path, which is not selected as
next_hop node. This can be helpful in measuring link metrics.

Format:
$ iw dev <devname> mpath probe <Peer MAC> frame <pattern>

Example:
$ iw wlan0 mpath probe aa:bb:cc:dd:ee:ff frame aa:bb:cc:dd:ee:ff:kk:ll:mm:nn:oo:pp:yy:zz

Frame pattern is supplied as hex pattern of the form aa:bb:cc without
leading 0x. Frame type and length are expected to be of ethernet frame
type.

Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
mpath.c