From patchwork Thu Jul 9 11:49:57 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: 6755191 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 8F1F69F319 for ; Thu, 9 Jul 2015 11:50:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1D462070E for ; Thu, 9 Jul 2015 11:50:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8EBA620760 for ; Thu, 9 Jul 2015 11:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbbGILu2 (ORCPT ); Thu, 9 Jul 2015 07:50:28 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:34842 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753247AbbGILuT (ORCPT ); Thu, 9 Jul 2015 07:50:19 -0400 Received: by lblf12 with SMTP id f12so4005433lbl.2 for ; Thu, 09 Jul 2015 04:50:16 -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=WUOVodBDXFYRjolER8p9gow74nolM/y+njzzorXKiTg=; b=t1hAdvMswkZTcBbIorsit5idqMrRK2FbniGrUUvdT2UrG3ZRvS/5gOFOx4o7KNq+3E uv/Kp/vRpSh3UuLnYGltU52JupQbJEp8iL1gUJgsYzhR41eBHxXK3Yn7QX8lIcZ1ISCc 3D2odaVpEw9sQGr25RkjGQaoGTs0ALs3TGGAM= 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=WUOVodBDXFYRjolER8p9gow74nolM/y+njzzorXKiTg=; b=mRzjvWcQH1rDVSIEFrn4sJ55wjZd/SbEm3rKSLP2+RnVNRl5I4k8t6+TKIWFdEDNrY z+pyXWstb/0hV3nv74q1SKrcZyjCnFOfXpFTj2zYMfUnpFM9rKUBGDqNLF5Bg6m0GBk0 QSiS6kYXdlPaODpZRBYeStEfXHNjErku+MTnhVXHCz8wY++VRxKa8PRf/d8gt/pX9Ir3 ybrf9Ybo1rqObX9osS3wqsLxIZAnG3Yd/KTNA/1pjYnh4J/to2Ow03dvdPzcVyfmkVgX l8GsDQWcZDdK/kE2azLzhtBOJLqufWN+SPKwoGRJN0NJLUJLd1ex9LnpmPyY/4Axpb1J Fn0g== X-Gm-Message-State: ALoCoQkQ0XBphbSMC3G7S22eKt4IXOp09neQiTv0WFXzknPD9wMlm64Q+pH9FVhpPFcCz/IylNXRIr85qpffvhfsV0BDIY6JpCI2wKwWvGlC7Q2dVMImCl+XJzSJNMrftJWVP9FNNxG8Vpw6SD4MGQIu+lpB903N58/8GQ9zxHDC6OucKMTXu8qCleM1fXInBpK9uBc0fy2b X-Received: by 10.112.50.148 with SMTP id c20mr14183742lbo.27.1436442616719; Thu, 09 Jul 2015 04:50:16 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id c2sm1358016laa.43.2015.07.09.04.50.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 04:50:15 -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 2/2] ath9k: setup rxfilter when offchannel Date: Thu, 9 Jul 2015 13:49:57 +0200 Message-Id: <1436442597-6147-2-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436442597-6147-1-git-send-email-janusz.dziedzic@tieto.com> References: <1436442597-6147-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=-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 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3de829f..b45084d 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1468,6 +1468,7 @@ 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; + sc->offchannel.chan.rxfilter = *total_flags; spin_unlock_bh(&sc->chan_lock); ath9k_ps_wakeup(sc);