From patchwork Tue Apr 10 15:04:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Rebbagondla X-Patchwork-Id: 10333313 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A65566053B for ; Tue, 10 Apr 2018 15:03:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96C8820700 for ; Tue, 10 Apr 2018 15:03:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 956A426CFC; Tue, 10 Apr 2018 15:03:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67A98285D3 for ; Tue, 10 Apr 2018 15:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754335AbeDJPB7 (ORCPT ); Tue, 10 Apr 2018 11:01:59 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40897 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754332AbeDJPB6 (ORCPT ); Tue, 10 Apr 2018 11:01:58 -0400 Received: by mail-pf0-f196.google.com with SMTP id y66so8520705pfi.7 for ; Tue, 10 Apr 2018 08:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qWaZhbBACBRd+RhuVDjhitcJ2lqnynk7DPPTZEN+4h4=; b=hcs3fiszbhqGagA2sRFs4S3fe79VNm1C9Sr4k6tdOKgfPrihB5hQmgNJAsepri4fjm vbjvdUZmf5zEHd9TmEc0fctoZjRre16xSVWC8qM74cyvu1hlS8gSMGotNe3BxcDjEq66 gYMNYNXGUYyUjfpRgCDDYpXIkd+gY14kdKsxpjfk85vF0aAOIRSGaKP6ct+6OGUBsLaR k3g+r0YlNHOyd58jXCN/02a/iQvnw+ruIxVZTYeJoJkMrq078PrLU0C/0eWh+lZt4NXb jWhDRbMT1NGLCAtX38YOlghwpjpmtgj5/XJZFGVfS5SCDh8YJlE0mdGkyBCEw/WoMrqz JECg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qWaZhbBACBRd+RhuVDjhitcJ2lqnynk7DPPTZEN+4h4=; b=lJqdAc3F+ikOUmALzU/aG9qhjezHJRVzBRTJiP3Fb4idcAWqnzVvPUuQ1isAJuzjkg vRoW/ClP7w1y6k2NZwXS+2yUCAC/oqQSMcNo2asGU/w/3uayxCI1/lMtuKxChjFO+1ua Gfnt4VlDlEwC8UhVDaL7qsaRO52xQybZf02AVizSXMid7CpeC5VI4CcKlru4e4aUsjCY Lh88A05e1UKSTeVsfcZm1hM9vMcqPfXPipAegryCkmZaYsBeRDFa7fiGTR724s1naS0P 5JIXUTfo3DdR2jpvJ/EiWuZr+m3SsN4o0g9xNT+WC7DJaU/aZRI7Bp1jMFiBjwPUlA5S Kydg== X-Gm-Message-State: ALQs6tAkVEcUQdUDs4ZjKfa0et2gtUz6FoOpmzs+52Jj/Kzbw21kyHyy USYrm+unAdR7RqWffW9aJeQ= X-Google-Smtp-Source: AIpwx4/eFxEhUhtn84FCS3TSzUvd9P+jEn8NEavbMEkKF+6NNkiaJuze33/iNy0eQB26eH/NePMMng== X-Received: by 10.101.74.9 with SMTP id s9mr560594pgq.91.1523372517169; Tue, 10 Apr 2018 08:01:57 -0700 (PDT) Received: from cpu459.localdomain ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id a1sm5913864pff.5.2018.04.10.08.01.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 08:01:56 -0700 (PDT) From: Siva Rebbagondla To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla , Sushant Mishra Subject: [v2 6/7] rsi: enable power save by default for coex Date: Tue, 10 Apr 2018 20:34:16 +0530 Message-Id: <1523372657-6067-7-git-send-email-siva8118@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1523372657-6067-1-git-send-email-siva8118@gmail.com> References: <1523372657-6067-1-git-send-email-siva8118@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Amitkumar Karwar Power save is by default enabled for WLAN and BT coex mode. Signed-off-by: Amitkumar Karwar Signed-off-by: Siva Rebbagondla --- drivers/net/wireless/rsi/rsi_91x_mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c index 2a77743..bb497bd 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c @@ -2008,6 +2008,9 @@ int rsi_mac80211_attach(struct rsi_common *common) wiphy->iface_combinations = rsi_iface_combinations; wiphy->n_iface_combinations = ARRAY_SIZE(rsi_iface_combinations); + if (common->coex_mode > 1) + wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; + status = ieee80211_register_hw(hw); if (status) return status;