Message ID | 20200203161918.098717194@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=s+JW=3X=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC6A8C35247 for <stable@archiver.kernel.org>; Mon, 3 Feb 2020 16:28:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9465421582 for <stable@archiver.kernel.org>; Mon, 3 Feb 2020 16:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747305; bh=AL/Lh1kxI+HWzurICUoC6PRowq7LZ0ALNgNT3Ki+fgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=O0MOCA4x/oI2lyhK/Vj1U69riaYJkZc+FRL3V6qfO0PtGGLl9oNVdEQVhL62UNAl7 NG+By3wVu6akNUdcJ0fl4ngTgOYdndjHXvOYnvT0AW3DA/hfSfsA6hsC8chahYLeZt QRZU692+psdskFujmamc8qay4qhKCy86CzYSoxrI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729581AbgBCQ2Y (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 3 Feb 2020 11:28:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:39910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729245AbgBCQ2W (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 3 Feb 2020 11:28:22 -0500 Received: from localhost (unknown [104.132.45.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 042B52080C; Mon, 3 Feb 2020 16:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747301; bh=AL/Lh1kxI+HWzurICUoC6PRowq7LZ0ALNgNT3Ki+fgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UH3+HmaTPWkFlStPsb6e83EIZHze/iFzdBoJToXKBFjwFL1E2PM6b0KTtRu9mexMm JQiCK5XibyUcHM5a4jRycyAGCqSaIWOd9BBgCswJVNIbANIBXKy5D4vOOQBPguCgpu RD9acZhwkm3b4Nour9pxoPq/sD1242GMakObMktU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Malcolm Priestley <tvboxspy@gmail.com> Subject: [PATCH 4.14 09/89] staging: vt6656: correct packet types for CTS protect, mode. Date: Mon, 3 Feb 2020 16:18:54 +0000 Message-Id: <20200203161918.098717194@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200203161916.847439465@linuxfoundation.org> References: <20200203161916.847439465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -62,6 +62,8 @@ #define RATE_AUTO 12 #define MAX_RATE 12 +#define VNT_B_RATES (BIT(RATE_1M) | BIT(RATE_2M) |\ + BIT(RATE_5M) | BIT(RATE_11M)) /* * device specific --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -825,10 +825,14 @@ int vnt_tx_packet(struct vnt_private *pr if (info->band == NL80211_BAND_5GHZ) { pkt_type = PK_TYPE_11A; } else { - if (tx_rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT) - pkt_type = PK_TYPE_11GB; - else - pkt_type = PK_TYPE_11GA; + if (tx_rate->flags & IEEE80211_TX_RC_USE_CTS_PROTECT) { + if (priv->basic_rates & VNT_B_RATES) + pkt_type = PK_TYPE_11GB; + else + pkt_type = PK_TYPE_11GA; + } else { + pkt_type = PK_TYPE_11A; + } } } else { pkt_type = PK_TYPE_11B;