From patchwork Thu Jun 4 08:43:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 6544831 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 9004C9F3D1 for ; Thu, 4 Jun 2015 08:44:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0A462075A for ; Thu, 4 Jun 2015 08:44:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CBDEE20752 for ; Thu, 4 Jun 2015 08:44:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752074AbbFDIoC (ORCPT ); Thu, 4 Jun 2015 04:44:02 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:35804 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbbFDIoA (ORCPT ); Thu, 4 Jun 2015 04:44:00 -0400 Received: by pdbnf5 with SMTP id nf5so26402408pdb.2 for ; Thu, 04 Jun 2015 01:43:59 -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:in-reply-to:references; bh=DHYfTGmJWIGcAIVobUal8u7ROMdfZV8wqnNiRiSTD5Y=; b=VhuzeTEUbZk2ZyKnL89IJPGUJae4ffgfJeDbaCg//uy8VomZDuCK0ExI2WpesOQGzh xLuCPOTtt3old3ke0jjI0TaMFQeCWr0n6PjbhwWW7gLv4dYSOmOpKJCg7ODJzbIk+AAx d4puTRd9Gn+6oZylTIiRRkBDO64/wbwJH8kWZ3W+EHfJggEIu+e+NzSWtDwQDJHT8nsa 9Ldsi29Pb5XCCco4dlCOwolYtR6s1tTEQcnKhm2CKyzmJhReynapypjS4W/v5NNgK1C0 i9i+H1jb1GE8zKs/eRB4vBYsefLK6NZiooi+LSZYj0QosKbIs8MdF9qgZS0AzUbBdP8C Q1uQ== X-Received: by 10.66.236.226 with SMTP id ux2mr67859455pac.64.1433407439626; Thu, 04 Jun 2015 01:43:59 -0700 (PDT) Received: from localhost.localdomain ([112.153.155.138]) by mx.google.com with ESMTPSA id ho10sm3003176pbc.27.2015.06.04.01.43.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 01:43:58 -0700 (PDT) From: Taehee Yoo To: Larry.Finger@lwfinger.net Cc: ap420073@gmail.com, linux-wireless@vger.kernel.org Subject: [PATCH 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB Date: Thu, 4 Jun 2015 17:43:35 +0900 Message-Id: <1433407416-752-2-git-send-email-ap420073@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433407416-752-1-git-send-email-ap420073@gmail.com> References: <1433407416-752-1-git-send-email-ap420073@gmail.com> 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 in the rtlwifi/rtl8192cu, INTF_PCI and INTF_USB is unnecessary. because RTL8192CU chipset is only USB interface. Signed-off-by: Taehee Yoo --- drivers/net/wireless/rtlwifi/rtl8192cu/rf.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c index b878d56..4440a37 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c @@ -74,14 +74,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, u8 idx1, idx2; u8 *ptr; - if (rtlhal->interface == INTF_PCI) { - if (rtlefuse->eeprom_regulatory != 0) - turbo_scanoff = true; - } else { - if ((rtlefuse->eeprom_regulatory != 0) || - (rtlefuse->external_pa)) - turbo_scanoff = true; - } + if ((rtlefuse->eeprom_regulatory != 0) || (rtlefuse->external_pa)) + turbo_scanoff = true; if (mac->act_scanning) { tx_agc[RF90_PATH_A] = 0x3f3f3f3f; tx_agc[RF90_PATH_B] = 0x3f3f3f3f; @@ -90,11 +84,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, (ppowerlevel[idx1] << 8) | (ppowerlevel[idx1] << 16) | (ppowerlevel[idx1] << 24); - if (rtlhal->interface == INTF_USB) { - if (tx_agc[idx1] > 0x20 && - rtlefuse->external_pa) - tx_agc[idx1] = 0x20; - } + if (tx_agc[idx1] > 0x20 && rtlefuse->external_pa) + tx_agc[idx1] = 0x20; } } else { if (rtlpriv->dm.dynamic_txhighpower_lvl ==