From patchwork Mon Jul 31 11:14:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 9871601 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.web.codeaurora.org (Postfix) with ESMTP id 3D8BE60375 for ; Mon, 31 Jul 2017 11:14:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31BD728562 for ; Mon, 31 Jul 2017 11:14:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26B612858F; Mon, 31 Jul 2017 11:14:53 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 A816328562 for ; Mon, 31 Jul 2017 11:14:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751867AbdGaLOu (ORCPT ); Mon, 31 Jul 2017 07:14:50 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36072 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbdGaLOt (ORCPT ); Mon, 31 Jul 2017 07:14:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so1145176pfj.3 for ; Mon, 31 Jul 2017 04:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=twgvoTGQrhgtbfsc1NDi1Y2EF6PhfkLmvsiOEYju2Fw=; b=fvS/ncn0T1cKYiKWT3XR8fpZ8pPPmJO3B2A8WUOdG0AZBMWUit/Ic5oyjUbJGMkk7j 7KvTW14TnU7DefnIxIjoNj1/go8lkY9gf0vlFmA9TAaBJ5SpteQcsmoSITbFEXJGXK00 Yl+sD1EOHzR4Q+u67nHipzPyvXRoO5C0kfCsXlAyChnWL/COSXkmyrGlPRCROJ4jyg4O icDF1guQOIil5/DVjcsb5rxtOvZeRZ87NyrU0p0ii9JqZF7j2OTrdDI9YzIpYuWxWE8H welXBA4zO5b52I9lUSuio+epuUstVym2qjpCSz2qyOqvS8tKKfssR8JhqFvqwvyTvMQh 32+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=twgvoTGQrhgtbfsc1NDi1Y2EF6PhfkLmvsiOEYju2Fw=; b=Z4RUia47rmHUp5OGw30rhGPpN/MWtMlKtI6BXzQroH9A9jWGEgsHbzJ7tRPbhnFD2m jNFKgbxdyuzvZqy5RGZ4v4qVuFS5e3+jl7kq9YnkAWge1y5wZl3R8A9lEpM29/U+Lch8 YsR2yfzm0JAmJim+fJzxKSSY1wWeedx16sbQ0GpnaAw5wHIOgt0EMbjzscAm3EmIPCqh 1tJd+0GpNwBQurqxtZOKOZk+gNqyG8+s/wVHEn/7+L1+fDTll0obxomrlxGOcILzXgby LldA2F8m4scIWZq+Jkczv3TvSwPPLfEmTkX70O7ig/YEt/VlcF/cu/4xvn4wluSAqCS2 fH3Q== X-Gm-Message-State: AIVw112LidKxLcaGF4BItacvZV26sC2tmxVwvgnRrVR+eRwjPceSN7gO gKCPZYXe9g0wrELB X-Received: by 10.98.160.131 with SMTP id p3mr14928220pfl.236.1501499689140; Mon, 31 Jul 2017 04:14:49 -0700 (PDT) Received: from symbol-HP-ZBook-15 ([223.31.70.102]) by smtp.gmail.com with ESMTPSA id t64sm289118pgd.80.2017.07.31.04.14.47 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Jul 2017 04:14:48 -0700 (PDT) Date: Mon, 31 Jul 2017 16:44:45 +0530 From: Souptick Joarder To: kvalo@codeaurora.org, Larry.Finger@lwfinger.net Cc: linux-wireless@vger.kernel.org Subject: [PATCH v4] rtlwifi: Replace hardcode value with macro Message-ID: <20170731111445.GA4844@symbol-HP-ZBook-15> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro. Signed-off-by: Souptick Joarder --- drivers/net/wireless/realtek/rtlwifi/base.c | 1 - 1 file changed, 1 deletion(-) -- 1.9.1 diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c b/drivers/net/wireless/realtek/rtlwifi/base.c index f45d093..52f2d0b 100644 --- a/drivers/net/wireless/realtek/rtlwifi/base.c +++ b/drivers/net/wireless/realtek/rtlwifi/base.c @@ -422,7 +422,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw) hw->extra_tx_headroom = RTL_TX_HEADER_SIZE; /* TODO: Correct this value for our hw */ - /* defined these hard code values */ hw->max_listen_interval = MAX_LISTEN_INTERVAL; hw->max_rate_tries = MAX_RATE_TRIES; /* hw->max_rates = 1; */