Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4795778ybl; Mon, 9 Dec 2019 17:04:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy+NVDtHx/KV4jMfGsKBrw7rWv8oBiU47fYcy57lHo2ZN7NFZmQccscO5cHr3nu/plgV5R5 X-Received: by 2002:a54:4085:: with SMTP id i5mr1869639oii.17.1575939887844; Mon, 09 Dec 2019 17:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575939887; cv=none; d=google.com; s=arc-20160816; b=uDQti9nZavfX/82dqNmARUTbMprfBukdILaTVEsLa0irOVA+lDO6HHY7hYMY1YqQhy gJAdYANsOJERsjd0goLWA8CJZt/+x+veS2YeiIcJ71P7tM5gPG49fvB1N7P9kUVh2sFX 8j1lpf8c5HhY90tN4BIdwRtQtbwSs5rfiIe+0kj+k5oANyza2IIIAxW86W/CyBq9sINl moot8BtfAldjmU7siFob/4+ubYdpo3FUQD8/v4hfs2bVoRu4lXIiZhUsL1QtwEsylc4e VqRKpYcYGChQoM4UPVLWTG3HBr6T/wyAT5SeIW2itplYN6/0iuvSbG1N4Q157vP9SVPk P1EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=lvaBXglD3Me5cNqFIlUfSPJqoa/gW/7ZAnezNsBsRcI=; b=uLAXd0/b+sSEc3m4rJKwA1mr2uwMf/GqH+DPQa0Nr2z4OKW7xTjcmAu3O8Hz/vIyx1 GkaOpWYzMRsb7WC/CBhF95OrRxXmFkntidU8Zn18A3VHCYwh+Onetu0Bs+oVy5j3d7/v pjTwU3EqkcH/ICsC+CYXmigiumvgK/kSDxRqipeEQ9DfP5THzgtJ7QC6Z2ovlDurhb7N VwHR876G1L2WyI2GSp/tneUrwiXFvt98yJ5u4+uMd9ypDTcZ6w8ACBN20PHudqjr7yDI EV0IMlgVwg1wm7iMSER9pXKs+h63l7DZoFJ5vIotetlRpL+b5YTud72ly/lk2Xqi9lIN C/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ISIo5rwA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j204si971846oif.253.2019.12.09.17.04.26; Mon, 09 Dec 2019 17:04:47 -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=@google.com header.s=20161025 header.b=ISIo5rwA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727524AbfLJBEH (ORCPT + 99 others); Mon, 9 Dec 2019 20:04:07 -0500 Received: from mail-qt1-f180.google.com ([209.85.160.180]:35980 "EHLO mail-qt1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfLJBEH (ORCPT ); Mon, 9 Dec 2019 20:04:07 -0500 Received: by mail-qt1-f180.google.com with SMTP id k11so1190422qtm.3 for ; Mon, 09 Dec 2019 17:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=lvaBXglD3Me5cNqFIlUfSPJqoa/gW/7ZAnezNsBsRcI=; b=ISIo5rwAyov+eSUxja+pid6lib/Y081LMXa+YEfD9J3yhwio0Z64adkVhgRbUsW55u eMR8s/ZgcdepKCcnfrJsZuuQFTF4naW8mkKaqsjYKFStipeZcd8gFUdUYkTc/IaipJNe Ja9507Pgznp6rod7JJBPTFXWJaXv6S2fdO97TFMwwIREyPg4ofNIv2nP5YgwWWO48nDK Xcz9BsI8pLbib4DSzIk/fb+S+8z7Rb3HwBON8wUKpnPyL+4/pZR0Is34khSxjy8gflMF ukI3N+qG7UCy3uVEYY8RftCiSKQ/ZKyX17zt5eYJwxxnp6mnliXVs0/QnEP/xmObE9db NOXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=lvaBXglD3Me5cNqFIlUfSPJqoa/gW/7ZAnezNsBsRcI=; b=FCC0u8hpaGR6/EDxKrIhBPphPZveVaSyzeDpc0tvJIaAd9JfqvUnx9h1MjzNkMoMmA DOYQvh4VHiN8c2b0DPU/RimLHdmC3/+87Pl0JnxhnceKZyPjnlKeSdViRmcCfWerCO70 gQ9RJVndaxEKdh6mh9k90ko854VOOaKfpD2zwu8UJK4KAoPw6i8HJgp/6SlsezSiVS+r ELSE1LUaVm1rjpd2iC+8Cj5pN0MdcE7fPpV/22jplWMub7EK6NGCwUjz4WqaQt/kjmlj VV0wCqf2gC0WgdQ45rEYtzumAhfRUbRP6dMCUQu2v1PolPW5AEj9PlAYZgDdPFqQhdBs T0Cg== X-Gm-Message-State: APjAAAXog8macRfDFzskjn6VrpXPieUj4A+JLyg0IumagTGEHHkOGfsR z+FpNAEUahYCYjnycX7wxewoqY+uVtv0pLQW46yIzm7vcR4= X-Received: by 2002:ac8:327b:: with SMTP id y56mr27592885qta.161.1575939846135; Mon, 09 Dec 2019 17:04:06 -0800 (PST) MIME-Version: 1.0 From: Brian Norris Date: Mon, 9 Dec 2019 17:03:54 -0800 Message-ID: Subject: [REQUEST TO BACKPORT] mwifiex: update set_mac_address logic To: stable Cc: linux-wireless , sharvari.harisangam@nxp.com, Ganapathi Bhat Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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