From patchwork Thu Aug 27 10:57:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Copeland X-Patchwork-Id: 7083171 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 94B869F1C2 for ; Thu, 27 Aug 2015 10:58:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC38620985 for ; Thu, 27 Aug 2015 10:58:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B16B220981 for ; Thu, 27 Aug 2015 10:58:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUusV-000196-9T; Thu, 27 Aug 2015 10:57:55 +0000 Received: from mail-io0-f181.google.com ([209.85.223.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUusT-00014f-5F for ath10k@lists.infradead.org; Thu, 27 Aug 2015 10:57:53 +0000 Received: by iodv127 with SMTP id v127so52236810iod.3 for ; Thu, 27 Aug 2015 03:57:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L4B4CDfWjAA9GDVJogNCERuv2KFJTcvXCP+KuKUDsGU=; b=ZA0hfrdJPCQ9AIAADaR+F8Ik/giG+WhoCQaLj38wPO7gmvRu6b1FWDPOCV3CkMNfwF k1Gq/d8cdz9HuKBX4b0/JksY1U7H/nx3Uri3sfEobdlhE6thiUjR0lbieQ9d4eY03QRB 4hWsCBsoVnNTXncO5q/3ADFTRqTo7DVMBKrEfmhA45IW2E4PRwDkiOonZDzCliAFMJhb 8An552IJthzwJVg2OH4yfXT50jQ02YovptaZCgpMddX49gwAUZ6cLCPnseYhbJLhNgp1 5UL0mMKT1F8FRzJSvRGNtCgSZGQMHLEaNwJxMjNrewIg+kcrEMQuUqU9w/RGLgqgI9NU KbjA== X-Gm-Message-State: ALoCoQkcjziC7x6xRCH/RPXvnQjdB7tWxi1Agi6R1t6vxRlO4A33hH6/BLYTUdFPgFXkRsDWBFjP X-Received: by 10.107.132.73 with SMTP id g70mr9061457iod.14.1440673051007; Thu, 27 Aug 2015 03:57:31 -0700 (PDT) Received: from hash ([2001:470:1d:6db:230:48ff:fe9d:9c89]) by smtp.gmail.com with ESMTPSA id y6sm1428069igl.17.2015.08.27.03.57.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 03:57:30 -0700 (PDT) Received: from bob by hash with local (Exim 4.84) (envelope-from ) id 1ZUurn-0003Zd-By; Thu, 27 Aug 2015 06:57:11 -0400 From: Bob Copeland To: linux-wireless@vger.kernel.org Subject: [PATCH 1/3] ath10k: enable monitor when OTHER_BSS requested Date: Thu, 27 Aug 2015 06:57:02 -0400 Message-Id: <1440673024-13696-2-git-send-email-me@bobcopeland.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440673024-13696-1-git-send-email-me@bobcopeland.com> References: <1440673024-13696-1-git-send-email-me@bobcopeland.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150827_035753_258332_D16BF66A X-CRM114-Status: UNSURE ( 9.03 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bob Copeland , ath10k@lists.infradead.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP By default, ath10k restricts received frames to those matching BSSID. When other BSS frames are requested (e.g. in mesh mode), add an internal monitor device so those frames are not filtered. Signed-off-by: Bob Copeland --- drivers/net/wireless/ath/ath10k/mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 64674c9..7dfe37f 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1070,6 +1070,7 @@ static bool ath10k_mac_monitor_vdev_is_needed(struct ath10k *ar) return false; return ar->monitor || + ar->filter_flags & FIF_OTHER_BSS || test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags); }