Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3710543imu; Mon, 28 Jan 2019 09:26:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6118pVZEsLG054lGBXIQqmBA69nQCftyR56S+abEwUvX2aoddrko821Af4LDsgkVRpRpxh X-Received: by 2002:a63:fa06:: with SMTP id y6mr20658496pgh.177.1548696361017; Mon, 28 Jan 2019 09:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696360; cv=none; d=google.com; s=arc-20160816; b=jCv1VHVYmVDXGjxnY6qERTV0OWCM1hx8bh/+2dXCyzrFADPD/iLbXrRztYKxt0i7Ji mpHzB1VaJNZbZpoeR9moE8pRsiZDWkx3QZY+mwgphM5j5UG1ttSkpVcKhhR599+ufGMj WV41XiXegH4Zv59TBGycZn2f0EDURMR6yOHOVn2+r4AyBUKbUqSz5Oj8i1COgwx/ECYT mPg3jcTVzpW/c7wS2XXEpstmmF/hSE8R2nV4GKI/b2qIXXQtnrIZI7vrs6x9ckF1Zrwp Au5PfySCjvlmuor/UBhxoJQhBBbAhVgAQ7BnZhybHiloKkvr8/rTp+r9ARyz+AvqKT1+ ULcQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XXHdLsWXhK9lVSpxF4lSDNr2OQB5lfQxRgxlJ+g3LeQ=; b=wgAfqQWIHEhfFztQtMiL8FRDG5w9r52sxxxFRvSkzlAsU4sDfzRLX4VTAAUdhvmJGk KcR0wuPt2NKPXqW3BqR4+6QmsDQ/XD/6UIcQlwAS6ChwcShWOQH8U/ulgZnqqEGSJpWy Hu8JdST29ZUF+4GHSlDFlPe+wWfke+qMInGQAjrP0HVdB8quHUG2Za3w5nlfYD7eIG3D NPj1zUCGtIEw1Jk0HpWzhywwlYfakl1LTuN6bg0bn72BIs47LYmtzE9nIfF7x5WVhrLj HQJ6+Jh3/sSvWp/A8HvR84Z4xah2Ju4JOPQAWwyRzmpd3kHWKQNz5To0ZIAOX1mydCIC BdJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rztJtzxw; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si3261996plg.250.2019.01.28.09.25.45; Mon, 28 Jan 2019 09:26:00 -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=rztJtzxw; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729652AbfA1QBE (ORCPT + 99 others); Mon, 28 Jan 2019 11:01:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:46300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730898AbfA1QBA (ORCPT ); Mon, 28 Jan 2019 11:01:00 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0B5B62175B; Mon, 28 Jan 2019 16:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691259; bh=29jjvKe5CMJnihePTpcwea7edh2rWu3tC/8FLhquHPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rztJtzxwhTr4t4IaBDDVkL8ABMei16uWqmu6fzEbrZ6Uh8YCFgzP40EKNmVEEwXBZ si+8WJZZ/UhkXpAse2PoCtHTWo0Ws6GfbHeo+p3st4wJC8yjeGqUMA3Y+F7QUDm9sF JQNfvvVUnuTlqn4LGZo7X3PeFWiO8Ez4mlN2eSNc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Naftali Goldstein , Luca Coelho , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 035/258] iwlwifi: fw: do not set sgi bits for HE connection Date: Mon, 28 Jan 2019 10:55:41 -0500 Message-Id: <20190128155924.51521-35-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Naftali Goldstein [ 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 8169d1450b3b..d1c1a8069c7e 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