From patchwork Wed Sep 9 16:47:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Copeland X-Patchwork-Id: 7147541 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88C44BEEC1 for ; Wed, 9 Sep 2015 16:48:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4ABF209FF for ; Wed, 9 Sep 2015 16:48:39 +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 E0BEF2098C for ; Wed, 9 Sep 2015 16:48:38 +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 1ZZiXr-0005ao-34; Wed, 09 Sep 2015 16:48:27 +0000 Received: from mail-io0-f171.google.com ([209.85.223.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZZiXo-0005WZ-Mw for ath10k@lists.infradead.org; Wed, 09 Sep 2015 16:48:25 +0000 Received: by iofb144 with SMTP id b144so29370283iof.1 for ; Wed, 09 Sep 2015 09:48:03 -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; bh=yudfK7nuACeopehKE10EXMiYYjZiH7773BShKEAe+BA=; b=Ifzr6fScDRR2Yc77LfB5+UaBvQTqIMBgMR/Nh1xKo1B7UwXwlaRETm+oBo8grzRIqo 5obzDq1Dvh0dpT1eFNmWMFhWkwCPBMwsRssVlEaKRJ7+E+S0OeeWzh0Mp9cEsGIq0b1a oV+TwqcBC5D9txqoOZCO5XRxVKmlPOTnHUBwVJcXZ1rXV8nsctZLoyWnHcA4qPv8yJFN YXJlej/1Bt8nXRsjHjyOe5Mxj9acx1fP/B/NmTe4yHvMhwtqcgnocA2W9tORxUkQepBC e4DMgHzfkLBPdvlh992/Msp6KLw276J6oMvO/IRuK2zY2eb2dB8BOaJi+/ywfrMFHoBz 2g8A== X-Gm-Message-State: ALoCoQncLRIVNuf+CGqhGZuZ44waEml7CC3G4V6KM86whU9/1hOCuwoFBFlNv4MPuxS75pTCC7eQ X-Received: by 10.107.15.69 with SMTP id x66mr51030809ioi.156.1441817283655; Wed, 09 Sep 2015 09:48:03 -0700 (PDT) Received: from hash ([2001:470:1d:6db:230:48ff:fe9d:9c89]) by smtp.gmail.com with ESMTPSA id lp1sm2076503igb.10.2015.09.09.09.48.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 09:48:02 -0700 (PDT) Received: from bob by hash with local (Exim 4.84) (envelope-from ) id 1ZZiXS-000139-3r; Wed, 09 Sep 2015 12:48:02 -0400 From: Bob Copeland To: linux-wireless@vger.kernel.org Subject: [PATCH v3 1/3] ath10k: enable monitor when OTHER_BSS requested Date: Wed, 9 Sep 2015 12:47:34 -0400 Message-Id: <1441817256-3997-1-git-send-email-me@bobcopeland.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150909_094824_787008_5117F806 X-CRM114-Status: UNSURE ( 8.96 ) 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 989d2a1..80efcc8 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); }