From patchwork Mon Feb 4 06:33:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Rebbagondla X-Patchwork-Id: 10794985 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-2.web.codeaurora.org (Postfix) with ESMTP id 93981922 for ; Mon, 4 Feb 2019 06:34:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 832411FFD8 for ; Mon, 4 Feb 2019 06:34:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7717F21FAD; Mon, 4 Feb 2019 06:34: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 2DA5B1FFD8 for ; Mon, 4 Feb 2019 06:34:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbfBDGeG (ORCPT ); Mon, 4 Feb 2019 01:34:06 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46942 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfBDGeG (ORCPT ); Mon, 4 Feb 2019 01:34:06 -0500 Received: by mail-pf1-f194.google.com with SMTP id c73so6279356pfe.13 for ; Sun, 03 Feb 2019 22:34:05 -0800 (PST) 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=9c5Qv3xKOnSbwK7hxSyqCi1So4hNP+y66JHHTtRgqGg=; b=sZ2WYW0Qub0ZWOMCSGxSE1YW1VkNUH+cqe7TTBhWfFXYrjogJjUCg8dyX6ImR7yj6P rnnLdx0HfZYLBtqsmGO+uStFt1zBhDlw13rPkjztH469GS4v2+Qwd3YK1+PjBf9TWTUU q8SnU738lDeAO2Thi3xQOMNWX8z9z9VywoXO3eOFK/tj1CLI/378TtO+qpNX/6zF3LWV oBnOtJSbMoDfgnQgyi1v/4g9xaZ5LaaMDwyUKuDBc23YESQF+Nj0MLnby0m83rGuw5e3 Vsrh88wIw/ITtydMN+Kad3PhZ3F9iWa/c5quK5tqYslaT1cwRODg3v93bmthMND008DK wxsQ== 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=9c5Qv3xKOnSbwK7hxSyqCi1So4hNP+y66JHHTtRgqGg=; b=RDKxdb8RZV1rVjLhn8LfLv3xtfcrRx1kZB352L7UzPFj0KQw5Lmn4eRsrtvpsM9WUU Dn8O+Jk3juwiEOb4M1pkSNwG4t7xLUGU25lApC8i38uRkKxj0iHLdV5ZxWiTDm8wIx0a pD6Cw80ae7PDg8z9SyelZe2BrI9alwtl/nlOBMkurPx/wLFYbcCZ8x4JGgNFr49bDFA1 yUL0K2TfjWyGt3Zd1yFB+YwiK9GsxHeavOCuYr7GlNBjSRprZF9RIMvkg4bWiwBstRga 6iyMJhzHx7URQUP49rqVL/SC/iovKURpUrevuJs5VKwtbx4gYPjiHyRQJOxyfT2xqrqJ DPsA== X-Gm-Message-State: AHQUAuZ2omw1sfxbBD+QtvNxv4/urNokcJKimyp6g7nWy48+YOuW9zdO T6hvd8X7fHqY3alVCtj2+wg= X-Google-Smtp-Source: AHgI3IaRlFYBvH/iv9xRsXUx7HwdzJ0zgffCaoA3MkwD2YvbPeA0B71bNHI+nph06MZUve2MJ6WQHg== X-Received: by 2002:a63:2ccd:: with SMTP id s196mr11798433pgs.194.1549262045405; Sun, 03 Feb 2019 22:34:05 -0800 (PST) Received: from cpu459.localdomain ([27.59.252.63]) by smtp.gmail.com with ESMTPSA id t21sm20240438pgg.24.2019.02.03.22.34.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Feb 2019 22:34:04 -0800 (PST) From: Siva Rebbagondla To: Kalle Valo Cc: linux-wireless@vger.kernel.org, rishikesh.basu@redpinesignals.com, siva.rebbagondla@redpinesignals.com, krishna.pedda@redpinesignals.com, amitkarwar@gmail.com Subject: [v3 5/5] rsi: fix for wowlan wakeup failure Date: Mon, 4 Feb 2019 12:03:29 +0530 Message-Id: <1549262009-8766-6-git-send-email-siva8118@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1549262009-8766-1-git-send-email-siva8118@gmail.com> References: <1549262009-8766-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: Siva Rebbagondla During wowlan regression tests, sometimes radio is not waking up for wowlan packet in coex mode. This is because of power save is enabled by default in case of coex mode greater than one. Hence, disable power save in coex mode to avoid radio loss. Signed-off-by: Siva Rebbagondla --- drivers/net/wireless/rsi/rsi_91x_mac80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c index 7bc8da6..3fd2571 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c @@ -1901,6 +1901,10 @@ int rsi_config_wowlan(struct rsi_hw *adapter, struct cfg80211_wowlan *wowlan) return 0; } rsi_dbg(INFO_ZONE, "TRIGGERS %x\n", triggers); + + if (common->coex_mode > 1) + rsi_disable_ps(adapter, adapter->vifs[0]); + rsi_send_wowlan_request(common, triggers, 1); /**