Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3280079ybi; Sun, 14 Jul 2019 10:27:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5hybLf/WHET5tQ+YOvHr9Ef5al5X93imTXC5/hHR1vPGQwGud9Eoml/B6c7b5UZU1MCBH X-Received: by 2002:a17:90a:28e4:: with SMTP id f91mr23815969pjd.99.1563125245642; Sun, 14 Jul 2019 10:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563125245; cv=none; d=google.com; s=arc-20160816; b=Us4ejJHnyAGsGljJyFY0kQAcpQ6gnroAHUosnf9T0e4UtM9RspiecioUn4R+32dM5y q+bIhRLRNsTx0UJohDSI3VEd/+P7pghBDC4eYNH9JBfWqMnEG1uaa5IllzdsPIBTAoTx Rr5p5zoyMLxIsJ2QW8W+zolzxYANAw4lZ4CG/Ap4sbUY/TPVoVGm6Ipfmn5vmS2G5W0e 5woJLV6sWWHEoE+gV1O8qWuuV8ozjDOgwckwTNZhUp0Yx+v7X5VGFpcVtlvRhp9Bqy3i BScSgoZQFWPQP5Nk5rAZImRp3zGMoJS2i8hzkGdAoBHvxBMSHGE6d57PUpYyQP/6ZPED UgPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=2pbMNaC4Dad7U4b1ohLm6/S8pl6bc6ilVpOGqbkUqAU=; b=1IbA0tpTyfW1Q+mW40B6lmZi50v1BI/uoXlS6fK3J63Qdt6dy7jRaHiNJPPWbnaek6 hKDLN1DUodsKYcttumx2r3SPF0eob0Czq5GPxtA8oaG89A0Yu/6fGe5CkZZv9dn8BGrA SG33WZmfReHSULxwEklrtI+NjofX++GiRV9vFGfaT/25LuHWO+lzqe09AW0BXjiR4Cs2 WUmFER+WdJxSzbgzJnHBdQr8Hh+n5omhA/7aoAvV89IjAmK6WA3OzhqUh55x20eLTFg2 s00LQLs+HEm2648B+Qze0zkucqcIHFKeDeutVBsodwh0fata+bHYlm+pKSVTsema7qdz FVSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L3FbQxlU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc10si13028372plb.43.2019.07.14.10.27.09; Sun, 14 Jul 2019 10:27:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L3FbQxlU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbfGNRY7 (ORCPT + 99 others); Sun, 14 Jul 2019 13:24:59 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34105 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbfGNRY6 (ORCPT ); Sun, 14 Jul 2019 13:24:58 -0400 Received: by mail-pg1-f195.google.com with SMTP id n9so391593pgc.1 for ; Sun, 14 Jul 2019 10:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=2pbMNaC4Dad7U4b1ohLm6/S8pl6bc6ilVpOGqbkUqAU=; b=L3FbQxlUt6QOMgJibrCgsFLEMZaCbxHxYOTNTouv4U83dvyhQXBwR5wKoArg5xPdk5 8oq8VgPUrj/guQV9+qVLGARPN7/eDjO5Yb6DLuJ7N0E4HvmHuyt/Z8AwbpUFyhGOYvn8 mLJlHyjLcQ0cbBzqeWg4U0OUxHwohTJj2DtxI7QB6jOiELCdt3SHrztCnBWUZoRkMXhv FDJRexUpjWMzLxXN2bkAL2ogNWP7SNY4N1ZptSXImBTTZFLj74GHoyrFYxRx8bNVJLPz NJa2zdh1uhx6yr2K4T6UJ1jCH3kuo6s0v72iaAsMRroTncW0+J1JgdVEzew7hfhCbiMb AaVQ== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=2pbMNaC4Dad7U4b1ohLm6/S8pl6bc6ilVpOGqbkUqAU=; b=ToWJxwi4L0wQuU85GblxHbAiFfH375p2afacV46X66k/nzrnXFjBf+cG0cEXRABVPo UtIa2UZqrnunuPb0L1gtDICpXkm0onmCa37Z5yuo7qaUEVWcMgfHR3uohROQ+V8xTP3r yaENOUzPtjcG3L6mOYTUIAEeXW9KhpqEPjsLIDkJOsmw8VZOVj1NgtEPwLKT14+42pup uMiQFA4mVLBfowbHCAXEColQkoe8v93FJHhmZm1Kjl2hMNZJ8PGL66r3Yt3FBBoZiP1z /9JrPe918AwK2lb740p7Xd4nT4EnpSZVCeewNMltEw7YxRpyjs+tS9j2nC18y7lJwrCK Uaiw== X-Gm-Message-State: APjAAAVVZjBsHSkjvmbasX1Og+uJ2a5iroe86ZKA0y5Vm/LHdn+TMvgN N0Tl7A32PTMCdr17fu9DklY= X-Received: by 2002:a63:3d8f:: with SMTP id k137mr22863673pga.337.1563125098142; Sun, 14 Jul 2019 10:24:58 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id c26sm14189820pfr.172.2019.07.14.10.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 10:24:57 -0700 (PDT) Date: Sun, 14 Jul 2019 22:54:51 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Himadri Pandya , Nishka Dasgupta , Puranjay Mohan , Colin Ian King , Payal Kshirsagar , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: hal: Remove code valid only for 5GHz Message-ID: <20190714172451.GA6779@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As per TODO ,remove code valid only for 5 GHz(channel > 14). Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/hal_com.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index 638b12a..eddd56a 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -152,10 +152,7 @@ bool HAL_IsLegalChannel(struct adapter *Adapter, u32 Channel) { bool bLegalChannel = true; - if (Channel > 14) { - bLegalChannel = false; - DBG_871X("Channel > 14 but wireless_mode do not support 5G\n"); - } else if ((Channel <= 14) && (Channel >= 1)) { + if ((Channel <= 14) && (Channel >= 1)) { if (IsSupported24G(Adapter->registrypriv.wireless_mode) == false) { bLegalChannel = false; DBG_871X("(Channel <= 14) && (Channel >= 1) but wireless_mode do not support 2.4G\n"); -- 2.7.4