Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3928355imm; Mon, 8 Oct 2018 11:50:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61L2nfyYINzTk9qudJZwrl5E8EvnqfNiSU+hfiFGz0y/Yail3fjqUjhGAMjPufmzavLIcAI X-Received: by 2002:a63:c84c:: with SMTP id l12-v6mr22022120pgi.77.1539024628072; Mon, 08 Oct 2018 11:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024628; cv=none; d=google.com; s=arc-20160816; b=pcJQXQ8ax9IqXJHR2JSnS5kfMIRw32SimGIb2u3EWqmv9GDI5Io/rtNOjbhJNcDU8i Zkvw6w9sOjVuEEE1sMTUPXGS1cIDtl+p0kzzvR5kETN739Y83YCclQxlgoomCj9ZSBEi fUPWFy23NwmGAhwYAFIIufSDVCT/aIk5JnOnRg3J41t5wg5QCzqqd6I5hCY2O2eJTNJK ImUfTtGKwdmOFNrbCyLDy3u9tDrKLzSaHgI/SsMayrdZZxXOh0qO5ZV7x2NlcZYFvGNz 8Jwq8UaG8WIaBkfIhdKaoHDHTMXbxwHl8G2VTV3zvpilm2o1rE8cETl1oswZ3n9XLcsq tuJg== 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=GkMlXy1vxYkxB3Hz6K1p+HZBwoTyaz3mLVc/Tm5Qujw=; b=IWWKkP/enj+JI6fQWzOaAC7LGHy62Z72VpBqjTfTxct2vReDYCTlrdz6OgycyTnJTi oTwJ9Qz5CnCmKG+zU3tJc339u2W5hGTMxtjN1hzvhq+qM2KSE8cASbL+OthW7j+3FQd0 GQaMwk6T4EgmSCmJLE1JfF/ZMON3iYgoCPlAwEjvmMv2qrSLBND5YwBob1x9c/oajumb GvrsgH6/RvYp1vI2K2roRnvsYeqhFtfrmMDCNgBDQB1IIb9ikMvvNrBm6VyyQWRNtDsR AxivTOSPqY1XpB/Vvn0WgYnFVydvp1reNlMpgbiHnfBpWoEktMnqjgl78MRdDEVcvtwR 66rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rXHXzUo2; 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 e73-v6si18870028pfb.98.2018.10.08.11.50.13; Mon, 08 Oct 2018 11:50:28 -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=@kernel.org header.s=default header.b=rXHXzUo2; 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 S1732004AbeJICDJ (ORCPT + 99 others); Mon, 8 Oct 2018 22:03:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:52580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730559AbeJICDI (ORCPT ); Mon, 8 Oct 2018 22:03:08 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 4D686204FD; Mon, 8 Oct 2018 18:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024601; bh=zuC7Y14P9MlJBXwp0fDbgZFM/9O6QTSnvVR/fry8fKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rXHXzUo2e2OzL/Wr4fyZHydEF3j3jBo/P9k+ZckeYA4my0muJQgh+fiQWjZnm7ibw MQ9SKUqjzyFi6380WdNlBbSqk0sdOJqNWUWK6J8Pxzcnp4iIFxn9yTjc9SB0dP74fq ysBxh2rkjCay25kZNSCZmOt7u12MIom5kVBUtg1A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haim Dreyfuss , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 4.18 059/168] mac80211: fix WMM TXOP calculation Date: Mon, 8 Oct 2018 20:30:39 +0200 Message-Id: <20181008175622.293561736@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: "Dreyfuss, Haim" [ Upstream commit abd76d255d69d70206c01b9cb19ba36a9c1df6a1 ] In commit 9236c4523e5b ("mac80211: limit wmm params to comply with ETSI requirements"), we have limited the WMM parameters to comply with 802.11 and ETSI standard. Mistakenly the TXOP value was caluclated wrong. Fix it by taking the minimum between 802.11 to ETSI to make sure we are not violating both. Fixes: e552af058148 ("mac80211: limit wmm params to comply with ETSI requirements") Signed-off-by: Haim Dreyfuss Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/mac80211/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1151,8 +1151,7 @@ void ieee80211_regulatory_limit_wmm_para qparam->cw_min = max_t(u16, qparam->cw_min, wmm_ac->cw_min); qparam->cw_max = max_t(u16, qparam->cw_max, wmm_ac->cw_max); qparam->aifs = max_t(u8, qparam->aifs, wmm_ac->aifsn); - qparam->txop = !qparam->txop ? wmm_ac->cot / 32 : - min_t(u16, qparam->txop, wmm_ac->cot / 32); + qparam->txop = min_t(u16, qparam->txop, wmm_ac->cot / 32); rcu_read_unlock(); }