From patchwork Thu Jul 9 11:49:56 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: 6755201 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 66EE19F319 for ; Thu, 9 Jul 2015 11:50:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CBB720722 for ; Thu, 9 Jul 2015 11:50:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 955A92070E for ; Thu, 9 Jul 2015 11:50:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbbGILug (ORCPT ); Thu, 9 Jul 2015 07:50:36 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:33973 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753234AbbGILuQ (ORCPT ); Thu, 9 Jul 2015 07:50:16 -0400 Received: by lagx9 with SMTP id x9so244487153lag.1 for ; Thu, 09 Jul 2015 04:50:15 -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; bh=iB+RUiuFAtk9d5U8JE3SBhmGN5eRPd2NZLpF0P2Zzb4=; b=uwzUcKH93N3h/yXRcpJVYtTDmpevofsdtYteT0kZjiUZsh0rPkmKThz/qxzxPBPaGF OBtYobPlTF4Tlt/o8ACYa6rqHx2EvUBUsnPqslcFzPaAcd94Z2OZvihv/M1Bh2xQ3lEK XNkdxcDTj/ZGTiBLORu0Z15bJnSrib/4KfQl8= 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=iB+RUiuFAtk9d5U8JE3SBhmGN5eRPd2NZLpF0P2Zzb4=; b=LYVvrtuAkZUjKmEF6ZszSJ8HDDLjKqW7s+GIkV+giwtd2JV5ftNJqp5QntY4YUQORv eRsPOUH9Arf6wp9HjRCchfD7OxopKU2AlFEL1DHkS+XrSHyhd59zALVAMB9k/khldXER 5l2nS3hJVZygt4CprgukxgFRKF+kvTNRvLMIhne90yImDJOHW1JFKvFdwB10p8olfQIp Y1W2uKfuQC4l15pkUYPyufs0pgLji6RJCFPyn79Dcjpr8fmybJhi5BjTfvPwFyG1mbRR EKMJ3dwXHob1nlYwqnwOw2C4bjMaO5NGK8kzrj3rBTMaMZhEQVFP3bzsaZ7+3/J1+CFx XHFA== X-Gm-Message-State: ALoCoQnQQ8gckp0XmNlEL/S3fJw2QgplLBrSd/p1uSutpuKe42Dze4Wm8RfE6XQdHpbtxOTH89nD1LuvicPdBhdNVhc/JXNzoOdCnuIXePkvgyp4aWykBfI+EMYQaGKDBypF6M/H0SSafRdE8zPvC8cgT0p+krvQarK7ovLWGHMz85E+xGJr+KucDn21qShMFLwg5XziCJEI X-Received: by 10.112.186.35 with SMTP id fh3mr14229474lbc.82.1436442615432; Thu, 09 Jul 2015 04:50:15 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id c2sm1358016laa.43.2015.07.09.04.50.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 04:50:14 -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 1/2] ath9k: setup rxfilter for all chanctx Date: Thu, 9 Jul 2015 13:49:56 +0200 Message-Id: <1436442597-6147-1-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 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=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RCVD_IN_SBL_CSS,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);