]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't initiate path discovery when forwarding frame with unknown DA
authorThomas Pedersen <thomas@cozybit.com>
Fri, 25 Nov 2011 01:15:25 +0000 (17:15 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 19:44:07 +0000 (14:44 -0500)
commit133f4666c004b2edad729929f4ec0be495ce48bd
tree55f917c9402c0164a76c80b4675ea173562a869f
parenta51ef5d29c84d73d1295bc7b7658563435d65f3c
mac80211: don't initiate path discovery when forwarding frame with unknown DA

We used to initiate a path discovery when receiving a frame for which
there is no forwarding information. To cut down on PREQ spam, just send
a (gated) PERR in response.

Also separate path discovery logic from nexthop querying. This patch
means we no longer queue frames when forwarding, so kill the PERR TX
stuff in discard_frame().

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/mesh_pathtbl.c
net/mac80211/rx.c
net/mac80211/tx.c