From patchwork Fri Jan 25 06:29:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siva Rebbagondla X-Patchwork-Id: 10780613 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 B93C01399 for ; Fri, 25 Jan 2019 06:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7B572F418 for ; Fri, 25 Jan 2019 06:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 991752F42F; Fri, 25 Jan 2019 06:30:22 +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 84F722F418 for ; Fri, 25 Jan 2019 06:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbfAYGaU (ORCPT ); Fri, 25 Jan 2019 01:30:20 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34941 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbfAYGaU (ORCPT ); Fri, 25 Jan 2019 01:30:20 -0500 Received: by mail-pg1-f194.google.com with SMTP id s198so3795271pgs.2 for ; Thu, 24 Jan 2019 22:30:19 -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=N962v1NYYO1siutE7EpJRXlUasnp8tyEzinNsSx9Z9I=; b=iATih+FEXvKzD3RJeQZ7TMooRFLYrg7ccPUgGK+xbqY6aYowUQPO+k6i5qCBVnT5Mr QLChBG+Tc1mCgbLDCOhghRceAO0e5z9KPsHSw5Pkjh2hlgcmMGjh6qBBrlg1GM0TFVTz qInm7HZNP2qCrgjVa2ZqOSCwDlk1reqWj8lK/oRWARVn/uqFnZgBn17buErWkSaQyCHe RfkCt0SdNbaJvPFkRK0E5NJRQbuvzNr5VvwAq997BwDOF4vpwhF6uzQB2I1x436ryRxn QanOTe0Y7nNrrHgyTRw3X1Cq8QmCSJwsaZKci+q6v/fTA9tiiBYxcqHMoZvill/4XIn/ RY2Q== 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=N962v1NYYO1siutE7EpJRXlUasnp8tyEzinNsSx9Z9I=; b=q3FUsWQLe4GNQTFV9IicxqEsQngkbjELjUpdp7sIpFBIODz2TrL7exBU+boRt7185i ClY0rXO9YD00vQMtMnEo3FXkM/HT2R1tdiUSCLJruylKvqCccgwemH0nka6gFH6KrBx5 SQMHJc6cVwo+z4dMzOsSzZVq46zrjMStSjUwGusGye67aubjmbRzN+tnZUow4JS6rZfj Ih5a5Yk2LnYlMGJDO+HVAa2xbMEldvdfi5CWVmbs47QIxGW7Qd8jv07TX9EfTuaqWzHs CQdb29+7Lox+WQBm52EYhWhSJSyfvLfQk6trtkg3PEWzgeh0N26Q7hsiedAAb/NfLOub +lJw== X-Gm-Message-State: AJcUukeBaMjznRkQS2b8WQMywIj2FF5VWeoJ0uIZk0+ws4RN8Acpf/9a MvEwlt6pKqcF252TbkIXFkz2Oa5OrMaA1g== X-Google-Smtp-Source: ALg8bN6Ez5FeHfDXObtBluIkQQ9Gp5AsUSvfED5+7DlsxT2/wkkJV6emq3Q3EnXXM32gPAM5BJWsbg== X-Received: by 2002:a62:710a:: with SMTP id m10mr9653084pfc.69.1548397819301; Thu, 24 Jan 2019 22:30:19 -0800 (PST) Received: from cpu459.localdomain ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id x19sm37384793pfk.14.2019.01.24.22.30.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 22:30:18 -0800 (PST) From: Siva Rebbagondla To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Rishikesh Basu , Siva Rebbagondla , Ganapathiraju Kondraju , krishna.pedda@redpinesignals.com Subject: [PATCH 1/5] rsi: Add debug support for wowlan wakeup confirmation Date: Fri, 25 Jan 2019 11:59:58 +0530 Message-Id: <1548397802-12180-2-git-send-email-siva8118@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1548397802-12180-1-git-send-email-siva8118@gmail.com> References: <1548397802-12180-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 When a wowlan magic-packet has received to wake up the device, currently driver is not taking care of what kind of packet has received. This patch will add debug support for wakeup reason in driver. Signed-off-by: Siva Rebbagondla --- drivers/net/wireless/rsi/rsi_91x_mgmt.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c index 4042414..4c2c776 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c +++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c @@ -2003,6 +2003,35 @@ int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg) return -1; rsi_send_beacon(common); break; + case WOWLAN_WAKEUP_REASON: + rsi_dbg(ERR_ZONE, "\n\nWakeup Type: %x\n", msg[15]); + switch (msg[15]) { + case RSI_UNICAST_MAGIC_PKT: + rsi_dbg(ERR_ZONE, + "*** Wakeup for Unicast magic packet ***\n"); + break; + case RSI_BROADCAST_MAGICPKT: + rsi_dbg(ERR_ZONE, + "*** Wakeup for Broadcast magic packet ***\n"); + break; + case RSI_EAPOL_PKT: + rsi_dbg(ERR_ZONE, + "*** Wakeup for GTK renewal ***\n"); + break; + case RSI_DISCONNECT_PKT: + rsi_dbg(ERR_ZONE, + "*** Wakeup for Disconnect ***\n"); + break; + case RSI_HW_BMISS_PKT: + rsi_dbg(ERR_ZONE, + "*** Wakeup for HW Beacon miss ***\n"); + break; + default: + rsi_dbg(ERR_ZONE, + "##### Un-intentional Wakeup #####\n"); + break; + } + break; case RX_DOT11_MGMT: return rsi_mgmt_pkt_to_core(common, msg, msg_len); default: