From patchwork Thu Nov 12 13:15:46 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: 7602161 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 3A6F2BF90C for ; Thu, 12 Nov 2015 13:16:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30A0920737 for ; Thu, 12 Nov 2015 13:16:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 444DA20434 for ; Thu, 12 Nov 2015 13:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753107AbbKLNQY (ORCPT ); Thu, 12 Nov 2015 08:16:24 -0500 Received: from mail-lf0-f43.google.com ([209.85.215.43]:36270 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbbKLNQW (ORCPT ); Thu, 12 Nov 2015 08:16:22 -0500 Received: by lfs39 with SMTP id 39so33705537lfs.3 for ; Thu, 12 Nov 2015 05:16:21 -0800 (PST) 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=+vWyi6jqKTh5zXPb1yrfszKwi6AnQrY14dqiNq5qMWI=; b=pwMHnyN42E5+6RAlu7cFsC0794sOlPvjY+LURpykf+KSxtNRBGVK5vOQCm4JWdzm5d qgYh457IWhKV4Zlm2ME2zY8/ThHvJY3UyayY1LLs+MmP9KjUeVINRkc1I2HgRhNK21F5 sor23Qrr8tHjpkTEhsHkiRaHpWLU2dauyN2Ms= 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=+vWyi6jqKTh5zXPb1yrfszKwi6AnQrY14dqiNq5qMWI=; b=E8m5wXlKhiBJZ/SuM+MQZFGSmwAQhVpoiAcC2kGl9RL70C57+xQpVVKin/J7IYFdDi VQVJL+OPNG0M1hZbMJwR5/jl1e0qPpC4WWHOGzEsOzoqLuqvmXwkFfCW5TE7BY+nLRM7 MXvhuNNx2FziiaFqrdv/ANNcoa1J07ZzwIN8r0gjWiyNrc4KmqkCaUffQJOdhk9/+gZR HYcgGYFxQ4gJSPmGblkXbcGLmpc+fz89eAH2dTeQFz+6jvEtJ7jb6H5XYuvjt2XcvJ9n 5Vy9xJkvPC8mjfs6D3L/k9LxQfbj+r0/dN4OsMxzdbtPvxZ1b/P/IXVVXMRrsDz2Pk0f wYdg== X-Gm-Message-State: ALoCoQnuERPRnpS1ObcI9wuQQZ16yspBNSA5wjg6+aBG7Ia0s/I357OEQ05zmLACoX26MEU/CnkWVj+W+QwysUxN5utwpFF3udiLg/j4N1z5fSeXpiZwxqi55mxYaqefWB2ai+O0DvaHYE1IPbJlwVSbwmUCRKgdFgC8oCOg13QKDRkoeXvhdKH0HpBXBkwzjat/8HcfPgUX X-Received: by 10.25.160.213 with SMTP id j204mr6969396lfe.85.1447334181008; Thu, 12 Nov 2015 05:16:21 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id i7sm2251430lbo.39.2015.11.12.05.16.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 05:16:20 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, Janusz Dziedzic Subject: [PATCH 09/12] ath9k: request NOA update when chanctx active Date: Thu, 12 Nov 2015 14:15:46 +0100 Message-Id: <1447334149-15507-9-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447334149-15507-1-git-send-email-janusz.dziedzic@tieto.com> References: <1447334149-15507-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=-7.2 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 Request NOA update when chanctx active, also in case of STA. Signed-off-by: Janusz Dziedzic --- This depends on: [PATCH] mac80211: add new IEEE80211_VIF_GET_NOA_UPDATE flag drivers/net/wireless/ath/ath9k/channel.c | 2 +- drivers/net/wireless/ath/ath9k/main.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index db49bc5..4320928 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -1439,7 +1439,7 @@ static void ath9k_update_p2p_ps(struct ath_softc *sc, struct ieee80211_vif *vif) if (!sc->p2p_ps_timer) return; - if (vif->type != NL80211_IFTYPE_STATION || !vif->p2p) + if (vif->type != NL80211_IFTYPE_STATION) return; sc->p2p_ps_vif = avp; diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index d184e68..ab46a4d 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -974,7 +974,7 @@ static void ath9k_update_bssid_mask(struct ath_softc *sc, if (ctx->nvifs_assigned != 1) continue; - if (!avp->vif->p2p || !iter_data->has_hw_macaddr) + if (!iter_data->has_hw_macaddr) continue; ether_addr_copy(common->curbssid, avp->bssid); @@ -1251,6 +1251,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, ath_dbg(common, CONFIG, "Attach a VIF of type: %d\n", vif->type); sc->cur_chan->nvifs++; + if (vif->type == NL80211_IFTYPE_STATION && ath9k_is_chanctx_enabled()) + vif->driver_flags |= IEEE80211_VIF_GET_NOA_UPDATE; + if (ath9k_uses_beacons(vif->type)) ath9k_beacon_assign_slot(sc, vif);