Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5845592ybn; Sun, 29 Sep 2019 07:00:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqytT72Mw1/1W6+f3yPLDrp1arqqsYwom1jMmXRwHDHPJjP2tl1HPD00yWcuf9QXphcSwIj/ X-Received: by 2002:a50:d49c:: with SMTP id s28mr14880900edi.101.1569765605228; Sun, 29 Sep 2019 07:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765605; cv=none; d=google.com; s=arc-20160816; b=Z9o+/1n1IzvXHVpDiURiJxxsi+KKg/dGOf7n2O4mGpU323ccWo0STwVBc0WCj+hZj4 SJULa3IT3oQD7Ka1Ea6ACfJ1vIlv1+1mkBL/1NoqV0FcGm62Kih3SKU1WBxJz3zl6CT2 PbmO0cO5upKnJG7xOAGzBYHqEGg5Ggf+Mdv6NQLnUY6WmIRkRVmIU0BJOxivQAWjvgNQ z2ISCZFar0K6zNfwggv2nn0KllocPtckNYCFzejQUQPofEZ+ebl7MTEDjlD0Wjs2iB83 S1JviOsykbWggbCxepaHH9JhwuycaOY0WnRiN8gb1dF/PlpDMr1//woZA4cmOrPGTzLx s+bA== 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=uYI5XoKHAq8OidjfeeX795fP61eJEnOtytz6S+0wnNk=; b=1IpwDtg2yi/F5TrP4aXg/Q70VglhxzaQzbt8X5e974tJGcisDpE1xs2zqDbWnqB+tM r6TYEUXXgd47gsydNoollGvpDWjaqFUH+uRSrUzT8Wz8LZGrpn0TY3VsH6xtenLwgra2 ihCQDzHrVvfMrTcQNoB/ejnczSeRM3yMUMpfcIokzyYwaTnncR3LV46sBvxwOXor1opx FQvu+UHHi1VP2xcbURJvm90L8z29gJm3iuhKRcfIiSrLs/MniH/Ot1qwpOEwHYBou+ri 5vXLml3Q5GFBebzcH8D2p/ENAQlkWbftAfZvZiJsU0THUErJ7LZigidi0N4HgOBLuWGL 9haw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="o/TkdMdP"; 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 l22si4960695edq.174.2019.09.29.06.59.41; Sun, 29 Sep 2019 07:00:05 -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="o/TkdMdP"; 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 S1729468AbfI2N6V (ORCPT + 99 others); Sun, 29 Sep 2019 09:58:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729461AbfI2N6T (ORCPT ); Sun, 29 Sep 2019 09:58:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 5034721906; Sun, 29 Sep 2019 13:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765499; bh=PkXjBr9+cpxtf25fZEakENcrT1468XWH7Wv7LDd+vmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o/TkdMdPh/4AEZ6Cn4LcnitXFrzE1l5v4MI4cxEb4Xv4mBPCc7zCIrTUgxn8DSwi8 jgscfck3j1W9BaBVEHbt/XBxcytwh8+bupwujaHFRQLNv5w7j/1uCvChtDthyg2M0O a7z3IBYNjWite13hSUDiipx77ms9OGWOcIbqvS6c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Luca Coelho Subject: [PATCH 4.19 22/63] iwlwifi: mvm: send BCAST management frames to the right station Date: Sun, 29 Sep 2019 15:53:55 +0200 Message-Id: <20190929135036.583424206@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135031.382429403@linuxfoundation.org> References: <20190929135031.382429403@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Emmanuel Grumbach commit 65c3b582ecab7a403efdf08babbf87fdbe27369c upstream. Probe responses were sent to the multicast station while they should be routed to the broadcast station. This has no negative effect since the frame was still routed to the right queue, but it looked very fishy to send a frame to a (queue, station) tuple where 'queue' is not mapped to 'station'. Fixes: 7c305de2b954 ("iwlwifi: mvm: Direct multicast frames to the correct station") Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c @@ -671,7 +671,7 @@ int iwl_mvm_tx_skb_non_sta(struct iwl_mv if (info.control.vif->type == NL80211_IFTYPE_P2P_DEVICE || info.control.vif->type == NL80211_IFTYPE_AP || info.control.vif->type == NL80211_IFTYPE_ADHOC) { - if (info.control.vif->type == NL80211_IFTYPE_P2P_DEVICE) + if (!ieee80211_is_data(hdr->frame_control)) sta_id = mvmvif->bcast_sta.sta_id; else sta_id = mvmvif->mcast_sta.sta_id;