From patchwork Wed Jul 11 08:28:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 1180911 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 684AF3FC5A for ; Wed, 11 Jul 2012 08:29:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756857Ab2GKI3M (ORCPT ); Wed, 11 Jul 2012 04:29:12 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:65501 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056Ab2GKI3E (ORCPT ); Wed, 11 Jul 2012 04:29:04 -0400 Received: by ghrr11 with SMTP id r11so944093ghr.19 for ; Wed, 11 Jul 2012 01:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=dysxayLmmK0K/vRKHpp9DN096Z7PHwy44H8FfkfpXuY=; b=sZJ54pCSgWN00+xJ0JdohoJYeV2YFV5TDVXRhchOuquRKhbM2PYhF7mu+8gxLCNUsv +o0Ks4C2Y9JuvSxMj06MUmiY+ITAN8PWDIPD2YE0OeLv1WVyhaT7KpBVqJWOP6D3Z+XB UderOVAkZDWlV7Inal+7ec3WlNGPsDj7uuCPBz+O31KJmkffbbX3zcsHNeS9YSiBfMf+ bfkr2DJXXwS3CahunmOIv4RDaC4wdTUa4p8VLJV65MlzpbdMN3o7bipCT9piDYR1rVrB LtaIiIAK90ymTXQx4Ru4Hcn+UNvEmRDLEIh8BTn7xx8vV/iWmcnz5w4Orcc2vxYW0hJ2 Gx4A== Received: by 10.66.83.200 with SMTP id s8mr80247811pay.10.1341995342303; Wed, 11 Jul 2012 01:29:02 -0700 (PDT) Received: from localhost.localdomain ([58.26.233.146]) by mx.google.com with ESMTPS id pj10sm1281576pbb.46.2012.07.11.01.28.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jul 2012 01:29:01 -0700 (PDT) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, linville@tuxdriver.com, devel@lists.open80211s.org, Chun-Yeow Yeoh Subject: [PATCH] mac80211: Fix the Problem of Unreachable Mesh STA from DS Date: Wed, 11 Jul 2012 16:28:21 +0800 Message-Id: <1341995301-24611-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 Signed-off-by: Chun-Yeow Yeoh --- net/mac80211/tx.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 07bd305..dd5b151 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1817,6 +1817,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;