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: 7083121 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 C1F8A9F1C2 for ; Thu, 27 Aug 2015 10:57:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E80C120980 for ; Thu, 27 Aug 2015 10:57:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C16872097D for ; Thu, 27 Aug 2015 10:57:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753505AbbH0K5g (ORCPT ); Thu, 27 Aug 2015 06:57:36 -0400 Received: from mail-io0-f180.google.com ([209.85.223.180]:35396 "EHLO mail-io0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbbH0K5c (ORCPT ); Thu, 27 Aug 2015 06:57:32 -0400 Received: by iodt126 with SMTP id t126so52456818iod.2 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=Ng4ukdos2s2BbEqF7FVxe4W2SZ9NMc2aVUU9+ez1MATICtz1g6CtsR4mjz8s6lr143 6gPbehR1CmRaOMX3tVSNK7bg7kap7T0a6l4rUVLP24YnU1F12ll4klhcYlhTxtwdV3T3 QcnKrklHD1/Qacu1yGnKNWozLhNNLA+DLaww0P4NiRDcD2gFHOebnT2sal6S25U+URet IESMzKHBS7Nueqxn1mdBqYz6nU37D0cTlb5kd95VsDk44PWCvQizUEacqky/Y4RO9s1A BXdwbztyFX2ZKBopJSNw93Yus1HMxIDAgZ9v3t46HXwTj6kInrGpzHXPw4BKlMPV+x6K 4qfA== X-Gm-Message-State: ALoCoQll82cdCw+Gn6eCgI7a8zo43R+mRmsVGt2hdHbsxpenzGycdQsmo1mxdS8R5KWsrqBCYnN5 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 Cc: ath10k@lists.infradead.org, Bob Copeland 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> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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); }