From patchwork Wed Feb 25 17:58:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 5882161 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 979E89F373 for ; Wed, 25 Feb 2015 17:59:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2C7720121 for ; Wed, 25 Feb 2015 17:59:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16C3120103 for ; Wed, 25 Feb 2015 17:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbbBYR7I (ORCPT ); Wed, 25 Feb 2015 12:59:08 -0500 Received: from mail-pd0-f178.google.com ([209.85.192.178]:35486 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbbBYR7H (ORCPT ); Wed, 25 Feb 2015 12:59:07 -0500 Received: by pdbfl12 with SMTP id fl12so6497260pdb.2 for ; Wed, 25 Feb 2015 09:59:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Q7+9gc/sXPAGaZftEi73J/RxC6pzjUZWBweJNKZznJE=; b=Z8vfaUecWNwQpnu4gmHJCtVEoTsLl27+Aq0zdq5mb7PGkXlq9bqhbkHMoCt156kzh9 iVGPiABSkCGFb2bUAKxd+tt0Xx9xvkdAH/hp41IImAl0ciXW93FVREW8WGTFMdbUrMXX RoiDQTGlJljUzQ58k0AIe7YaVBXHdGUvOdKoXGcCCUQlCrckq0miGkUIHpWcg2z7ennE 96E4UNQr3G1s0DdmEhr4pdvIf4auTeQcZazl1aVdmEAX6gmGHCsIbFoZOR+CkAtDTDpr AdswZcffv5NHfhUWpT8t0GCP3p1tesvbgCrl8Iu1aWDiPrZAEXuTwhhJHMrTs2mkYEL0 yyHA== X-Received: by 10.66.65.234 with SMTP id a10mr7797747pat.120.1424887147466; Wed, 25 Feb 2015 09:59:07 -0800 (PST) Received: from localhost.localdomain ([210.118.75.111]) by mx.google.com with ESMTPSA id l2sm41899999pbq.50.2015.02.25.09.59.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 09:59:05 -0800 (PST) From: Taehee Yoo To: Larry.Finger@lwfinger.net, ap420073@gmail.com Cc: linux-wireless@vger.kernel.org Subject: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg Date: Thu, 26 Feb 2015 02:58:53 +0900 Message-Id: <1424887133-5670-1-git-send-email-ap420073@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process. Signed-off-by: Taehee Yoo --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index fe4b699..f6ad959 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c @@ -1589,6 +1589,12 @@ void rtl92cu_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) case HW_VAR_DATA_FILTER: *((u16 *) (val)) = rtl_read_word(rtlpriv, REG_RXFLTMAP2); break; + case HAL_DEF_WOWLAN: + if (ppsc->wo_wlan_mode) + *((bool *)(val)) = true; + else + *((bool *)(val)) = false; + break; default: RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "switch case not processed\n");