mac80211: Fix the Problem of Unreachable Mesh STA from DS
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Wed, 11 Jul 2012 08:28:21 +0000 (16:28 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Jul 2012 20:24:54 +0000 (16:24 -0400)
This patch fixes the problem of unreachable mesh STA from
Distribution System (DS) due to the introduction of previous
patch solving the mesh STA joining from one MBSS to another
MBSS.

Reported-by: Georgiewskiy Yuriy <bottleman@icf.org.ru>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c

index 85cf32d2f7b50084ca4f0d7476125e1fe72741cc..eab0d19eb4bd82f5511abdb29a47ee2321673b47 100644 (file)
@@ -1836,6 +1836,9 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
                                        /* RA TA mDA mSA AE:DA SA */
                                        mesh_da = mppath->mpp;
                                        is_mesh_mcast = 0;
+                               } else if (mpath) {
+                                       mesh_da = mpath->dst;
+                                       is_mesh_mcast = 0;
                                } else {
                                        /* DA TA mSA AE:SA */
                                        mesh_da = bcast;