From patchwork Sat Jun 6 11:02:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 6559291 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 67E99C0020 for ; Sat, 6 Jun 2015 11:02:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E63B22060F for ; Sat, 6 Jun 2015 11:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 723A62060A for ; Sat, 6 Jun 2015 11:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbbFFLCf (ORCPT ); Sat, 6 Jun 2015 07:02:35 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36702 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751148AbbFFLCd (ORCPT ); Sat, 6 Jun 2015 07:02:33 -0400 Received: by pabqy3 with SMTP id qy3so65063442pab.3 for ; Sat, 06 Jun 2015 04:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=2/swO1rm8j+sKRkvvMDSgEMqKeWV832j5f6kjYxgI1M=; b=dVC/1O55pY0E9LtjNky+0+7Aop5UiURnB2tdLeFhS6eE5t7Pd3avjvIXeyHacfDQIl la53JtxEQrncalz1qzCaOuiBgXEBvQ6ad18KHioOVLK5WMCo8eQIVNUY5T/X8guX8u72 zVXJTH479pAWurSzBEQ8xLbcia/YlOyq7EbCm30C4DyBUvkx0UN43NOkP3/FtXw6P//G c917d1XxKtsyDi2oEnRAfSYHTaV8TePXGsPpcssXK5AGfvQj5XIRr3g7CT2Ic5kroEcP nvtDu19TnrA+MwjiZaKkBDT7mwDPFNUT7LfRi6Zfq/EYlE0YH0rOMtSJ/KuJ+GGCFBJ1 PATw== X-Received: by 10.66.197.231 with SMTP id ix7mr13429712pac.9.1433588552995; Sat, 06 Jun 2015 04:02:32 -0700 (PDT) Received: from localhost.localdomain ([112.153.155.138]) by mx.google.com with ESMTPSA id dd3sm9436522pad.45.2015.06.06.04.02.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Jun 2015 04:02:31 -0700 (PDT) From: Taehee Yoo To: Larry.Finger@lwfinger.net Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org Subject: [PATCH] rtlwifi: rtl8192c: Add init codes for "fw_version" and "fw_subversion". Date: Sat, 6 Jun 2015 20:02:17 +0900 Message-Id: <1433588537-27853-1-git-send-email-ap420073@gmail.com> X-Mailer: git-send-email 2.1.4 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 The variable "fw_version" is used in the _ResetDigitalProcedure1(). but It is not initialized. so I add init codes for "fw_version" and "fw_subversion". Signed-off-by: Taehee Yoo --- drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c index 29983bc..9b5ce28 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c +++ b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c @@ -233,6 +233,8 @@ int rtl92c_download_fw(struct ieee80211_hw *hw) pfwheader = (struct rtl92c_firmware_header *)rtlhal->pfirmware; pfwdata = (u8 *)rtlhal->pfirmware; fwsize = rtlhal->fwsize; + rtlhal->fw_version = pfwheader->version; + rtlhal->fw_subversion = pfwheader->subversion; if (IS_FW_HEADER_EXIST(pfwheader)) { RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG,