Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2454994imd; Fri, 2 Nov 2018 11:41:33 -0700 (PDT) X-Google-Smtp-Source: AJdET5cziKczkquoYbKzMbLOusTFse9MHUqmP97cy0x2K/9FaMVuSyxpzYe4oL0WQllXKqWzypY2 X-Received: by 2002:a63:6506:: with SMTP id z6-v6mr11195173pgb.219.1541184093872; Fri, 02 Nov 2018 11:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184093; cv=none; d=google.com; s=arc-20160816; b=v7D2zmRzi1qMlBBwDrxLRcS14I1oj9UrZTlBmc84eXxyxK7Jj1vcgQZvwkfGMXA/bt 6PQZR15Bpbo9kegOPOFt0ds7c7ogtAqxLV8DsT4irsKbXqlwzU+/o27+E0dETnvhg1qq 5o0JfZ7ogg8Kou4JyIS2vIRY1KALsshcF5KsxkYZ81HjeqwMLAt8sWHnsQV480cNzgO4 ew259tV576NUz3lNhVdCiyLXDW7kt6zLlOzKoRFgPf2tcCqZlZi+bhDBfP8ZcX/1Vpxt F7yYRPq74HpOT4wf1TTUUHP8LsFjRMelZkGWDd2cL/aK53hFs2KTkOALisKhJiL71RLd Gq4A== 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=cYVFKWA2pJSgMWq/963bsV6k8de4GcHdim0iygeN6rM=; b=LlUbBhodasGSmqe41QOekl/pe7g5oA0G7SwwRYtDomzOMW1hMAZ/AfVYMZUfPS8R5G z/nM/Lxs+c3Gq+dJAYgQLbGevg++R0ex2IW07b/PL5eKqMLQtMgtK7TP6JZy3VFzgmsi AAMgIfRjB0gco077HxmHq5kcLNXsaMm0AeKVfFExs35yeNbOKIeJPUMoxgTFlR1ssQqs preSt2h69M52nJkLF9VEhW8/0f3csoZgQ2/RyzZNGRyUXcPiY4/IZpqjYBwktoNXxBm3 4hvWd94Vx4BFHIgaBn1f27+F5I2EkCgDK8qAd0WIPF3MEU8c6uf6hsXlMJq0nwgmizNR 4ikA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MV8PZZrw; 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 t10si1272244pgn.551.2018.11.02.11.41.19; Fri, 02 Nov 2018 11:41:33 -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=MV8PZZrw; 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 S1728986AbeKCDrG (ORCPT + 99 others); Fri, 2 Nov 2018 23:47:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:41034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbeKCDrF (ORCPT ); Fri, 2 Nov 2018 23:47:05 -0400 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 A61352082D; Fri, 2 Nov 2018 18:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183934; bh=q1s7ptYz9Vq+8X5W1PygjbsLnXBiqx/TeyTuVLFm5+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MV8PZZrwaNzAuaFSbB+mX7Bcq4enlYT/TF+ChJj8Xp4kYvEgUDCcJGarDEPZqB5/z Fqa8TH9kOu0UIHvRCmBYM6UHGmIBqy1NqAATy8MGT6XmIPujv/KRpjsI+hAotZ5r5i p2+NsXBAVM8wECf9qjlW/kCxl3MPNoh0/hGgSgaQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Sasha Levin Subject: [PATCH 4.18 009/150] mac80211: TDLS: fix skb queue/priority assignment Date: Fri, 2 Nov 2018 19:32:51 +0100 Message-Id: <20181102182903.209165985@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@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. ------------------ [ Upstream commit cb59bc14e830028d2244861216df038165d7625d ] If the TDLS setup happens over a connection to an AP that doesn't have QoS, we nevertheless assign a non-zero TID (skb->priority) and queue mapping, which may confuse us or drivers later. Fix it by just assigning the special skb->priority and then using ieee80211_select_queue() just like other data frames would go through. Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/tdls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index 5cd5e6e5834e..6c647f425e05 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c @@ -16,6 +16,7 @@ #include "ieee80211_i.h" #include "driver-ops.h" #include "rate.h" +#include "wme.h" /* give usermode some time for retries in setting up the TDLS session */ #define TDLS_PEER_SETUP_TIMEOUT (15 * HZ) @@ -1010,14 +1011,13 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev, switch (action_code) { case WLAN_TDLS_SETUP_REQUEST: case WLAN_TDLS_SETUP_RESPONSE: - skb_set_queue_mapping(skb, IEEE80211_AC_BK); - skb->priority = 2; + skb->priority = 256 + 2; break; default: - skb_set_queue_mapping(skb, IEEE80211_AC_VI); - skb->priority = 5; + skb->priority = 256 + 5; break; } + skb_set_queue_mapping(skb, ieee80211_select_queue(sdata, skb)); /* * Set the WLAN_TDLS_TEARDOWN flag to indicate a teardown in progress. -- 2.17.1