Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2475775pxj; Sat, 19 Jun 2021 13:32:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Moa/fswZKIMxih88NNObn5iOockhMjMp0X15+9CHeXs4hfmAk+XvINVoYleLcyodADwf X-Received: by 2002:a17:906:9486:: with SMTP id t6mr16636678ejx.271.1624134774008; Sat, 19 Jun 2021 13:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134774; cv=none; d=google.com; s=arc-20160816; b=YuqlOKuCkPwRg9/E/kQQrg8bH7n+rPGC+dddKCiuhbTDx4K/O8TL9lMIM/Ggjxum+R 9YT9ak/MCXAs8REzKnbJ+ec2Df4kPPzgKaktyB2bRxeig83WrNX6jD7L4uKVrrDoarH2 fmmNQVHnUVGGn8EqHxmwJCz36+sMshL5w81tyA+eXs0BUTLfg7FDt7RhyJTQai6zMVGr oJZAATS5Mkm1YhAaTSiEnDWpJiHBp3pYfMfkfNcQuRb9Y4X8An9SDNP17L49+MOQRrGI 5scxbLWY2Kdo8dkbQ+c3Ez7+CQowu5+1iciNrLh7p9pnL4hVG/KbX2vxHq0RL5a0lyNH +FUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gNOemOTras9F985BUt7jkfUSz/FQKfSLHckmy+4u2+Q=; b=TGg+VHcNHr8NxNupchCluk+Y16roCs0w1U93YXjZ3UOe1J0D76mGEdSWQrDju3xD/X yDDh0QAet2a4hg8SmCFhk59WmkMuo1ce4M5VY0H07yNOcP3wXMvf7f0xeCfH4fZZto70 59Wzo7Z/pWdiz7KjCBquC7TWhBvYKTGSKky4+8ERhDRG7+oQEpaIiURGB8F8h7cV4f82 YCVF7M0oBTLL1EQi9Oka1stDg3t+xoz3k0hca29LwLhD4hy7zoOFNuO9MiJE2Bs49F+L arH0tIdttZ0qswodOm/Ttd9DmYBTGwmxm8BER0u2WmY+Ek1vcBoc81wCd3AEy4aOgE7y rdgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDBD8xtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f17si12634084eds.78.2021.06.19.13.32.28; Sat, 19 Jun 2021 13:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BDBD8xtz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233967AbhFSKvH (ORCPT + 99 others); Sat, 19 Jun 2021 06:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233189AbhFSKt6 (ORCPT ); Sat, 19 Jun 2021 06:49:58 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8C04C0617AF for ; Sat, 19 Jun 2021 03:47:47 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id b3so3459379wrm.6 for ; Sat, 19 Jun 2021 03:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gNOemOTras9F985BUt7jkfUSz/FQKfSLHckmy+4u2+Q=; b=BDBD8xtztljbm6h7TOYCBuGpI54y9JGm3EMTi0BKlhmA6/h1e71zHv1rRfadK/n0QS nmp3KmbtwuTItlUvX+H7b4roU14CIzp7Uf4g+xpbxt5auQbHGQbQEpA/pMLpRmFUSR7C 9lRunf2wsBV5GKKC77Bei4aUpPwSWWtQJ5fvygtgIgTAD1+CUE7zhIYVSXSyyRvRk5To 9LtIu3WALsEcMpkCMhoqwuF1UPSSmGy2qsG00pConutb3dO7Qq9TiCdOTg8HirtzUTGy 0vGexY7v7eJfKZzSKES7sW+HUbwXwy7rW0qDFGUOMFuNPjVw81sccK6yD+QXNGFMOQou 5vtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gNOemOTras9F985BUt7jkfUSz/FQKfSLHckmy+4u2+Q=; b=M1PEfagdO5Sksq1PL6WzqQoDMF9mQrvEFM1pjS+oSTyWRJEcVCOPgXqg4FI8pH51Hk hNXmMJEoeJSaMhgaoTbSM6+bHRRlcqHMl0dEU9m6HPHfSrh4so4hCbDQ3gmwRQpyga0J m61kWyCzpyiVY3XaPE+TWuT9e89kDiNnSjKXo84y6FQsogFXWgaaJWY1ApcmAEmY8jDm hGshCZSyOh7NhjVmc1eWIRUxhe/1gqOB+vrYN2VncUjPgkN5jx7baeUD29RUNgs7Bnb7 Bh2VdUaDIfsyUnDY7/ApReiWVhoPgZ887IzWNUQ+LCQel46OZrUMwcGbubcI7p8xPSu1 WAvQ== X-Gm-Message-State: AOAM532nz+kwWL4gmZSpcAEaKuHtdAu5WIeFps85nrf/msSB7Ik6EClH nDdpt5nBbT770/Vfs4FvgV1rNFuuS6RoVw== X-Received: by 2002:a5d:49ce:: with SMTP id t14mr16915770wrs.365.1624099666240; Sat, 19 Jun 2021 03:47:46 -0700 (PDT) Received: from agape ([5.171.81.81]) by smtp.gmail.com with ESMTPSA id e3sm1056119wro.26.2021.06.19.03.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Jun 2021 03:47:46 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 17/18] staging: rtl8723bs: fix check allowing 5Ghz settings Date: Sat, 19 Jun 2021 12:47:20 +0200 Message-Id: <76a466525997ca006707bc2115705995892d420e.1624099126.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix check allowing 5Ghz settings, only disabled and 2.4Ghz enabled states are allowed. Fix comment accordingly. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index afefc2c8a2ac..e73fb13f8968 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2572,10 +2572,9 @@ static int rtw_dbg_port(struct net_device *dev, case 0x12: /* set rx_stbc */ { struct registry_priv *pregpriv = &padapter->registrypriv; - /* 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, 0x3: enable both 2.4g and 5g */ - /* default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ */ - if (extra_arg == 0 || extra_arg == 1 || - extra_arg == 2 || extra_arg == 3) + /* 0: disable, bit(0):enable 2.4g */ + /* default is set to enable 2.4GHZ */ + if (extra_arg == 0 || extra_arg == 1) pregpriv->rx_stbc = extra_arg; } break; -- 2.20.1