From patchwork Fri May 3 02:33:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Pedersen X-Patchwork-Id: 2514871 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 50DC8DF215 for ; Fri, 3 May 2013 02:36:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762300Ab3ECCg2 (ORCPT ); Thu, 2 May 2013 22:36:28 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:61092 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762292Ab3ECCg1 (ORCPT ); Thu, 2 May 2013 22:36:27 -0400 Received: by mail-pa0-f41.google.com with SMTP id rl6so682088pac.28 for ; Thu, 02 May 2013 19:36:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=g2pS6r/kMf+Ug49Mt6NlJUfADsf6CGqZGCncuVal1m4=; b=NmXrFua6BRCtVUweX56J+deRGPqvfGrLMXINHnmR6bLvwG7KrKKozAD88sfcMpZ/0l WEoj9LN3Cx2cW1n+4MirtmGYPfzmp64Gf2PKvLPDm2Zd6bxBoXVJzR6MKyrG0IK7fNka CnaZQwC6sJt2iXbohMQi7pi5G3o/keXx//EMc0np+RIWx1ADLctrxAVF7YgNByw3Dnm4 XuvAIg662O5/UgzB1ahu9gHVj1tNIQ3kOFDadrDL8HtV6WZxx9LKj5EMevXYaTkUION1 0lirc/b2trcNvNc5JqHfNkbh5HgAiNhcBEmm6C3Ty26LaPNO0HlgZ1tegb+oNxLHmzvG 9pZg== X-Received: by 10.68.160.226 with SMTP id xn2mr11576807pbb.174.1367548586666; Thu, 02 May 2013 19:36:26 -0700 (PDT) Received: from cable.lan (70-35-43-50.static.wiline.com. [70.35.43.50]) by mx.google.com with ESMTPSA id az5sm7391484pbc.18.2013.05.02.19.36.24 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 19:36:25 -0700 (PDT) From: Thomas Pedersen To: Johannes Berg Cc: linux-wirelss , me@bobcopeland.com, open80211s Subject: [RFC 08/12] mac80211: forward group frames on mbss-shared interfaces Date: Thu, 2 May 2013 19:33:58 -0700 Message-Id: <1367548442-8229-9-git-send-email-thomas@cozybit.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367548442-8229-1-git-send-email-thomas@cozybit.com> References: <1367548442-8229-1-git-send-email-thomas@cozybit.com> X-Gm-Message-State: ALoCoQmeO/aPlMqddRC875Cx81JIss3jTHbY9+R1b2MwN4/lKlHY8U5R/BvhilRJH/z4HGQKU/9g Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Bob Copeland When multiple local interfaces are in the same MBSS, we should forward group-directed data frames received on one interface for transmit on the other interfaces, so that the frames may be seen on other channels. Signed-off-by: Bob Copeland --- net/mac80211/rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 0c5f870..850bfe3 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -2142,6 +2142,8 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx) IEEE80211_IFSTA_MESH_CTR_INC(ifmsh, fwded_frames); ieee80211_add_pending_skb(local, fwd_skb); + if (is_multicast_ether_addr(fwd_hdr->addr1)) + mesh_bss_forward_tx(sdata, fwd_skb); out: if (is_multicast_ether_addr(hdr->addr1) || sdata->dev->flags & IFF_PROMISC)