Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5117505ybl; Tue, 10 Dec 2019 00:22:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyKZoyKfZZSivhW7lQgF8yVbGeD3TlRlYRc33IuS0Hw5yDQHB+EaOP/59DE3fTxXndXFnT1 X-Received: by 2002:aca:b808:: with SMTP id i8mr2916188oif.66.1575966165012; Tue, 10 Dec 2019 00:22:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575966165; cv=none; d=google.com; s=arc-20160816; b=hQW6317pffqQOBLrTKga8jXpQaUq7xwPy/JsXwXb8eKlH8QzjHux6Ak8B0y+op5MgC UxqtrOyC+TYLrx0fj25xOTiuwEjwL4cYPY8YM0VnZ74uPKvOShHljjawtZfavGxjMkIs 0bFkD+I7T7d+EXxANLFbnjzuOIkL2iP9eOuVhiXCIXAYR013VK6KT/AR05UXiRxrsvBM lVhovKz5l/w6x43pURNxssDGuRx/Xxt8pf7qZx/mPzlmWGpqL76YqjSKhiLWugP4VVLV lUNZftjeyDJZ74ID3j1iCGadWGU9bwl7THPjBUTEXo4qBtIXQ4fh4Nb0k1BreHlvouJI 756g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=Wqu0tGKGVL90xHMWKQw/VjaC2QWm+a3ToA8E39L6EIM=; b=OuuHKVMiCKRIrdqvSJMqIZFE0sZKqB5EdwhvoHraFJk6IH+GUJd0NQjgtDXrl2WGEO 8uY19jRIdGP8Ihcom7RzOOT3yUcQybY/A73gNNYiN3ejkFpWRs40ntcBUeE5iCw8gfZ6 iG+hHt0PRZsoKU6jLm4tgvKSIxG47+iY/DORXD588suyt0Nbyhg1nFaKjE+V4tlE/y7P 3KkauqyUpLTjhGiOBohiDh1x85Nxx2ZPyL1vg93/ZZEb+y8YH7waQkk1C20u6JcWS9bt 9mk7h5NxiWHZcxEbPBBIvcyTBvAGChR2ldKqJ1/TTPjwnDzyS+5Nheyyerl+tN/A3LTH BZIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=kmjIX7S9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="M5/ysrV1"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 m26si1423078otn.307.2019.12.10.00.22.24; Tue, 10 Dec 2019 00:22:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@kroah.com header.s=fm2 header.b=kmjIX7S9; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="M5/ysrV1"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbfLJIWA (ORCPT + 99 others); Tue, 10 Dec 2019 03:22:00 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:60145 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfLJIV7 (ORCPT ); Tue, 10 Dec 2019 03:21:59 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DBE76223C2; Tue, 10 Dec 2019 03:21:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 10 Dec 2019 03:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Wqu0tGKGVL90xHMWKQw/VjaC2QW m+a3ToA8E39L6EIM=; b=kmjIX7S9qea6pwJgG8vX1mMPBmQ4A8ftrZm0Y2FHRcf mcK3d1w1GjCgt6zo+4Mz3ZQAQGBzOQ9G7bSZtkEr4SLa5sH5CToh2JlOqLvWYBAu nEBDzot/7h+g8MKhipA+tV4QDkj/6dpz3rxrPfnkYGh0AijNejHD0Lc/GboETPh2 biQ+yHFZLquI3Qh2pCwUZ2XOcO66UlqJL8VKqd72Zd+sdoCaIQ+mpRm4ju1hWIDn qAho0jS4p3X8AYkqJscWlxVKqOnXdBenir4YMlvDB1Ys3UEd28SWJvIYK3le8GrG 7MZu/gwUdLbMGGW5LtfpfjIWhqNrgp72okbMw0YjNmQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Wqu0tG KGVL90xHMWKQw/VjaC2QWm+a3ToA8E39L6EIM=; b=M5/ysrV1hxHmTGeqxbUrsQ f1+ih1GW5UvsHDdOFQEbm1TludIAS0WMYd7l861b7qlR+8rdVzkHhxRSbM5j5I1m xmoYWOzgEmhsvijtlujC67rm7Okx/NcRkhmI9BlV26D2JZaBnLx6VZLcydR2WL9T zt3mlo6Un+ApmVbab07u27128v5nCPQU6M0wayU2NFyXdvibklJW5cZTbzuOJfGh 7h4CGw2F4fNZ9+B5zVAWC5lgNcj+RzhNcb9hmJZ1KnleZluL1eCQIbZirLSfsyNv tpEnM2JRIr9cP8NbAvG+muvwtIhbhOttxB/LXmnRAVwMD83ACXtD55K35DWzzJbQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelvddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecukfhppeekfedrkeeirdekledrud dtjeenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhmnecu vehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 2CFEF30600AB; Tue, 10 Dec 2019 03:21:58 -0500 (EST) Date: Tue, 10 Dec 2019 09:21:55 +0100 From: Greg KH To: Brian Norris Cc: stable , linux-wireless , sharvari.harisangam@nxp.com, Ganapathi Bhat Subject: Re: [REQUEST TO BACKPORT] mwifiex: update set_mac_address logic Message-ID: <20191210082155.GA3182516@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Dec 09, 2019 at 05:03:54PM -0800, Brian Norris wrote: > I'd like to request the following commit [1] go to -stable. It fixes a > regression (as far back as kernel v4.17) where the default MAC address > is computed incorrectly. This can have pretty nasty effects when > upgrading kernels, since people don't expect their HW MAC address to > change. > > It probably should have had this tag, for the record: > > Fixes: 864164683678 ("mwifiex: set different mac address for > interfaces with same bss type") > > Thanks, > Brian > > [1] > commit 7afb94da3cd8a28ed7ae268143117bf1ac8a3371 > Author: Sharvari Harisangam > Date: Wed Jun 12 20:42:11 2019 +0530 > > mwifiex: update set_mac_address logic > > In set_mac_address, driver check for interfaces with same bss_type > For first STA entry, this would return 3 interfaces since all priv's have > bss_type as 0 due to kzalloc. Thus mac address gets changed for STA > unexpected. This patch adds check for first STA and avoids mac address > change. This patch also adds mac_address change for p2p based on bss_num > type. > > Signed-off-by: Sharvari Harisangam > Signed-off-by: Ganapathi Bhat > Signed-off-by: Kalle Valo