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: 7147511 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 5286ABEEC1 for ; Wed, 9 Sep 2015 16:48:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8423D209E0 for ; Wed, 9 Sep 2015 16:48:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8553D2098C for ; Wed, 9 Sep 2015 16:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754460AbbIIQsH (ORCPT ); Wed, 9 Sep 2015 12:48:07 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:35972 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbbIIQsF (ORCPT ); Wed, 9 Sep 2015 12:48:05 -0400 Received: by ioii196 with SMTP id i196so29101193ioi.3 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=Jc4x1YVo0PG0hZY2/z3oiXBbkJpYBZfbeXlOuQaJT2vAwIDuZg7OJG29ajjlJY6vVp 25rn03zbWauWLE8A4SUG5hXPcG0TCmKUN82lh6ck954ouXde1wfwHkqPdn3XAAO5Nr4y GIGVeRMc3Tq7lX/WAC9VKBde1Wnqwk+TPGTUfmmTn++2Mbb5xfSnBarILiddMru3A92j vvJ/xArdigizLsqdCRe9RSuUPmGznBmkRuSQfEpFZ/szrDWvmPyyt295RAnsAXipMKiX gTOBp11zRd5IZlACP7Z5ow1a4LEs5CF3S2Gy1IdvofwBRgKa2G/5aD0kPZ9Gx8dvpF9b tZbg== X-Gm-Message-State: ALoCoQnlWlW44d3o1JXeTaj1PEm1G4FM2FsG28byetS7vHbYKjjeMhR7SG5MmtUttwMdWGNfmd8t 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 Cc: ath10k@lists.infradead.org, Bob Copeland 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 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); }