Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2648280imj; Mon, 11 Feb 2019 06:26:43 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib5R+OjnxpS1WqM4iFDd6oARe8JO4wnZTG4x0MaDB5iGAs2tBKbS/dNUTaGkoEM6yyfOBVf X-Received: by 2002:a17:902:e090:: with SMTP id cb16mr23176920plb.32.1549895203743; Mon, 11 Feb 2019 06:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895203; cv=none; d=google.com; s=arc-20160816; b=NGpeTPUPaAgQgvwwbc4Pa3oonHZmuoWv/PfQcOEmCRApHLHgIpOsdmT8/t6NfySw0j TV1n2sstAm98PRhKToyXUQ0Krj3y/v+p9VL4Wl1pOD4B49+VSVl9fgJdI7EoCEZ6P4Fg QoONzh6hSJJa9gBdhvt5VYWqLKv0ZKKGTqv4jx7xsqarrTXF12Fo8+jWzMob5MZBz8A6 PTquoTCPhPkXXmSqMerKAgFp8S0T5lauS3MQaZDOX5JuGW0uSuiCOtPGmasRECTvk/Md jFyE+qciYWqID12eetx7BDMG0Z6kpXcRObZTRQpT8++cZniRM2nEYnfQDeJmhNV8fjAb Bk2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0uq9IcmyS5MEZX+r3FGZKjuxt7IaJ7ymrsCtimQ30jE=; b=dp+UrBF3RVt38G/sGUEUbIQFe/NIUPbz0XKAbcgBk7bTNe2caQ4iprG+1h1jhPXBMi n/3dKQ5VyeKQjCSMzpRrauarZbQL7+C5xkjnMDAuOHyymn/dOoLoy2PXBywrkZd2HoMN lxq2nBPZvRme50JmeUF7sgiGVdnEeDkbCtjhhzd5WkdYxPNjF3j5uBqvseHR9AYFJACC X9fupyjSzBVqh9XgWrBoW0LWMvRQbt+HkGt+jMrvCHwk6XfQglkVlRoOUsrWeDPL9mDk 0yhbzNUPFxoNjUB8yZcxHkVfmMu/6Y1piTaVimZtlm/eE0j8iAPt1n5Ij1VWRgjBpQuo W7Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iTN40pjO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si10545827plc.87.2019.02.11.06.26.26; Mon, 11 Feb 2019 06:26:43 -0800 (PST) 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=@kernel.org header.s=default header.b=iTN40pjO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728705AbfBKOWO (ORCPT + 99 others); Mon, 11 Feb 2019 09:22:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:55126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbfBKOWN (ORCPT ); Mon, 11 Feb 2019 09:22:13 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 1FFB9222A1; Mon, 11 Feb 2019 14:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894932; bh=F3hdFsiNZ5gxs62tsLl7NDbkUz6RZKGc/Gwh2HbVGAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iTN40pjOSc+Q7gWEig53pqkbw5T7GjHBHohenzxRNLsJq2VpXz7oV3UeXdiqFTgOd diLBF1CbiDykGaVEEfvqHbuZZPrYBbnCvrH3cXm33DOmH3o2VzPsYStkhnjwQkhosN /o26BuTeJKNqYtAbhODx+pB66jUPWpqZk5OI+MNM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naftali Goldstein , Luca Coelho , Sasha Levin Subject: [PATCH 4.20 035/352] iwlwifi: fw: do not set sgi bits for HE connection Date: Mon, 11 Feb 2019 15:14:22 +0100 Message-Id: <20190211141848.573801604@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 5c2dbebb446539eb9640bf59a02756d6e7f1fc53 ] If the association supports HE, HT/VHT rates will never be used for Tx and therefore there's no need to set the sgi-per-channel-width-support bits, so don't set them in this case. Fixes: 110b32f065f3 ("iwlwifi: mvm: rs: add basic implementation of the new RS API handlers") Signed-off-by: Naftali Goldstein Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c index 7a98e1a1dc40..dabbc04853ac 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c @@ -98,8 +98,12 @@ static u8 rs_fw_sgi_cw_support(struct ieee80211_sta *sta) { struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap; + struct ieee80211_sta_he_cap *he_cap = &sta->he_cap; u8 supp = 0; + if (he_cap && he_cap->has_he) + return 0; + if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) supp |= BIT(IWL_TLC_MNG_CH_WIDTH_20MHZ); if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) -- 2.19.1