From patchwork Tue Jul 21 09:11:43 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: 6833601 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 81FC5C05AC for ; Tue, 21 Jul 2015 09:12:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADD5F205EC for ; Tue, 21 Jul 2015 09:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D16DA205EB for ; Tue, 21 Jul 2015 09:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633AbbGUJMl (ORCPT ); Tue, 21 Jul 2015 05:12:41 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:33577 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752690AbbGUJMj (ORCPT ); Tue, 21 Jul 2015 05:12:39 -0400 Received: by lbbyj8 with SMTP id yj8so111544300lbb.0 for ; Tue, 21 Jul 2015 02:12:38 -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=+kevpqnDLALYXpdRQ3CaVQpIXygpRajgi04OmRo4GY8=; b=J+bKZSAuSXlSEXFTgs/Am858c7K/sSUjj3LAAtU7HSlArq74Jtrqk72Eu5qG0yGpYv FMyVHbJxjFRT7NTFyhuxmckSqQIUBewqRzFFxHXpkV4VoXTM5LIDVfFKK9F5243PxLdm EIMkc2WpLGSDDbkMAK6YPRuj+FscxeHWnpV50= 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=+kevpqnDLALYXpdRQ3CaVQpIXygpRajgi04OmRo4GY8=; b=VTVDZ/w6an3GCSquQc+f5o+I/62WHqzG+IUpwe8M6Y2fG9Kl8yXMlF2M50Xno81pSM bCE/5pAl7JorZBWnbHqvtvJigDhhAMyfUZR9Yzu1N/CSDKqkCSdmRTpvwXyzjO+OREC0 n9G+UGJTInC33/kyQL6vLhZYjtl83beJO+qJ23+tRkCTpo8VV7ZYu1R9BjauXYaVPgxS Y8jbhAeJfeTs6x4kow25So0Dg50Yam+yT7L/qsoYPq5iLN4DYomL6qWo30cUmvKapP1q dNCaVIMre5v/6rNdj0xg0K/uyKt07QCM/j1QNqZh9pFG4+Ev5fcyOsgJQuc6rxkGNS44 1liA== X-Gm-Message-State: ALoCoQk6rzjM7eMej/Yjpho5vy3Me3DZTH47XPSkqh58b7u4GBgz8wT/d8roYw92JVToQr5KG1bHfL2sTW9DtD/Mt7KpTpwY2m74MFATApjPB880MvfG6ee6c0LSMpou8QwxDiv4p4EAO/G1itWthCj45dyI49MNHda+WFREE/6RNMP03E+snkuytv4/A0lwcph96gepO5hw X-Received: by 10.112.8.108 with SMTP id q12mr8024919lba.113.1437469958306; Tue, 21 Jul 2015 02:12:38 -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.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 02:12:37 -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 4/4] ath9k: setup rxfilter when offchannel Date: Tue, 21 Jul 2015 11:11:43 +0200 Message-Id: <1437469903-32362-4-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 Setup rxfiler correctly for offchannel ctx. This fix problem we didn't configure rxfilter, next didn't receive probe requests and next failed p2p_find. This was seen when ath9k loaded with use_chanctx=1 Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3de829f..c27143b 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1468,6 +1468,9 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw, spin_lock_bh(&sc->chan_lock); ath_for_each_chanctx(sc, ctx) ctx->rxfilter = *total_flags; +#ifdef CONFIG_ATH9K_CHANNEL_CONTEXT + sc->offchannel.chan.rxfilter = *total_flags; +#endif spin_unlock_bh(&sc->chan_lock); ath9k_ps_wakeup(sc);