From patchwork Thu Nov 12 13:15:44 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: 7602151 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 E0C299F443 for ; Thu, 12 Nov 2015 13:16:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F36920434 for ; Thu, 12 Nov 2015 13:16:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D1F1207A2 for ; Thu, 12 Nov 2015 13:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753078AbbKLNQW (ORCPT ); Thu, 12 Nov 2015 08:16:22 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:35183 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbbKLNQT (ORCPT ); Thu, 12 Nov 2015 08:16:19 -0500 Received: by lbbsy6 with SMTP id sy6so6136596lbb.2 for ; Thu, 12 Nov 2015 05:16:18 -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=PufykEI8WjWSjut+Ol2AkIteEbgjTnqcf7uqIxa6KY4=; b=j1vCeva3bpu2rE6slA433WQh+5xHya9mmJ0B7wyEgGI4D60B86efpv7zs7Fsjytkss ICiVmL1F8zXh/TGiWUZlhX8ZXWB/jBvOOHlMPfuu5pWDtwVXDqzVSRfwNnH5vvfow5r1 Ay3ehRY6PGmGJOhLIZwoA/evLfKDl2Cm8Snpk= 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=PufykEI8WjWSjut+Ol2AkIteEbgjTnqcf7uqIxa6KY4=; b=QXvEAC31eVYwyx+u7faBia/2XGrABwuZ4Dch212c8E+jOrHoFzSOC5qdS0M5mBFphr 9kmZhzlqlAE6R5jmJPL/D8m4b0PDs87YujDQb12rAQQJgvcoge2uvyFIA7IiBtVDefuP APaxCS6BKWs4lu4/r5cpgLaB1I00pnOp2OrWzJpK41jejqH5W6HPw9OonktpzCKiniD2 B5VO/wnEAy3am+IO/RC3GVsg7oq5clDlKx6J+0nIqjwkCMdi+ucvjnk5nFGw9bLK8STw x3KVhMAXSyvzCWT3s1NaNi3kPm1kYuogD+JZsDSdxIK0c+D3PkANRGqvxD1cQjVWOQif nWSg== X-Gm-Message-State: ALoCoQlautywGhpviskFGJGVBcSBcrHGG2RPv2qFVENkXz8AiZtCKMjxtAcRkYhcgSMRUZqp1ylTHHoJApQ3JiNJJOLzWuGQdVO4z6JTxq380PpKANoqZyuZkt0TUeRbC8RO578suaUgLaF1/r1MDa7f/7JTOPwKYi/reP8y2IQhPGwVb9zBMuSBpcziT7wbdvc0p58z7dgv X-Received: by 10.112.131.8 with SMTP id oi8mr5891995lbb.99.1447334178208; Thu, 12 Nov 2015 05:16:18 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id i7sm2251430lbo.39.2015.11.12.05.16.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Nov 2015 05:16:17 -0800 (PST) From: Janusz Dziedzic To: linux-wireless@vger.kernel.org Cc: ath9k-devel@lists.ath9k.org, Janusz Dziedzic Subject: [PATCH 07/12] ath9k: MCC enable Opportunistic Power Save Date: Thu, 12 Nov 2015 14:15:44 +0100 Message-Id: <1447334149-15507-7-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 When adding NOA attr enable Opportunistiv Power Save. Before we calculate ctwindow but didn't enable oppps. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath9k/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index 4f60ddb..2615392 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -1505,6 +1505,8 @@ void ath9k_beacon_add_noa(struct ath_softc *sc, struct ath_vif *avp, noa->index = avp->noa_index; noa->oppps_ctwindow = ath9k_get_ctwin(sc, avp); + if (noa->oppps_ctwindow) + noa->oppps_ctwindow |= BIT(7); if (avp->noa_duration) { if (avp->periodic_noa) {