From patchwork Tue Jul 21 09:11:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 6833611 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 0AA579F38B for ; Tue, 21 Jul 2015 09:12:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F952205EB for ; Tue, 21 Jul 2015 09:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F73220693 for ; Tue, 21 Jul 2015 09:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753622AbbGUJMk (ORCPT ); Tue, 21 Jul 2015 05:12:40 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:33561 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752670AbbGUJMi (ORCPT ); Tue, 21 Jul 2015 05:12:38 -0400 Received: by lbbyj8 with SMTP id yj8so111543879lbb.0 for ; Tue, 21 Jul 2015 02:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iB+RUiuFAtk9d5U8JE3SBhmGN5eRPd2NZLpF0P2Zzb4=; b=RyBXRfgNMF1+uMOeZ53UScQwa8G/8NEAdJcksUpjYl3kKu/S3eVnW5UmJQVusF5nl4 zD3aWLlWtD5AP0rBk9EykLTfzMj/g4aFtFvZP5JgWXzXkMjjsSIaE8gDoH1N1hNLCAr4 etWVGfZL+Yi9mdpBLCL+5lWY/fa6vFI9MjEsM= 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=iB+RUiuFAtk9d5U8JE3SBhmGN5eRPd2NZLpF0P2Zzb4=; b=PLWMxBt5wayCFWRzyzE8Rkh93c6zUdEWssPFzLffr6j5oU/DP3e8yJl3EMtlIMGlrc KdlY8KQWW7VVOhvSCFigmFQqk6fUf1ZNbSW8o9BR+C2Ldm9Hj+Z2V0EF/OkBsOx3VLu0 hNQuZBiVoauZ4DHebBmLuFFlkZlGSOugDovW3YC0ibBmXlwHSiutdcTzId1bEW1Hl97A 3E7wOiyglama6Vg3xIyi4f1NXzmfdTpdvpt6JhFoKxRIlzljKbAnguYcJIA67Qe/0AFb pqPXoMuTuBEvmPvIdFnSu/wzd7JF5ljBq+L/2sfTlRJxJjKxBLsj+FXqi1logI1ID8VQ xVeQ== X-Gm-Message-State: ALoCoQlkTlwOd8lAFm1cJ/aIUj6K5NPx24hy+jn2Hz/66vhOISn/8wg1eZvM12jwyjCu+PnpDOyz7udc5RopiPaqPDGoidP9GjYjdSVfKTA8h+Tyg/Lw7ZV6JOG1sRnpnDFxYVMPl2lyKoKfq5EK/p0pVZGexxoAc+TyFAFKbFEXZ/7JMU/LbghIcLqEri5vYiZeIkt8fHWi X-Received: by 10.112.123.69 with SMTP id ly5mr9179377lbb.57.1437469956761; Tue, 21 Jul 2015 02:12:36 -0700 (PDT) Received: from localhost.localdomain (apn-37-7-180-144.dynamic.gprs.plus.pl. [37.7.180.144]) by smtp.gmail.com with ESMTPSA id r4sm5862088lag.46.2015.07.21.02.12.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 02:12:35 -0700 (PDT) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, nbd@openwrt.org, sujith@msujith.org, Janusz Dziedzic Subject: [PATCH v3 3/4] ath9k: setup rxfilter for all chanctx Date: Tue, 21 Jul 2015 11:11:42 +0200 Message-Id: <1437469903-32362-3-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437469903-32362-1-git-send-email-janusz.dziedzic@tieto.com> References: <1437469903-32362-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 While mac80211 setup this per HW, set same rxfilter configuration for all chanctx. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index b7b77e0..3de829f 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1459,13 +1459,15 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw, u64 multicast) { struct ath_softc *sc = hw->priv; + struct ath_chanctx *ctx; u32 rfilt; changed_flags &= SUPPORTED_FILTERS; *total_flags &= SUPPORTED_FILTERS; spin_lock_bh(&sc->chan_lock); - sc->cur_chan->rxfilter = *total_flags; + ath_for_each_chanctx(sc, ctx) + ctx->rxfilter = *total_flags; spin_unlock_bh(&sc->chan_lock); ath9k_ps_wakeup(sc);