Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3078505rwb; Mon, 15 Aug 2022 17:35:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6efVe5Nt9EhZXgFNKCR+nUOzP7Weuh1nDg1Fz608d4bdymNL6DRG3WTzexD9fghvrkTihf X-Received: by 2002:a17:906:9be1:b0:730:957f:34a3 with SMTP id de33-20020a1709069be100b00730957f34a3mr11872497ejc.47.1660610139722; Mon, 15 Aug 2022 17:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610139; cv=none; d=google.com; s=arc-20160816; b=tTNINbp9f7QJju+hbFyecXvDEj07YWOH/fRVH6a7Fu5n7L8EnjdOtNLXKgy05E3DdD d1AvnRg2fcihsHPFUaf8VRceCBILVYUmTI0gSuI52zWo8Thuaf2pcbjhRn3KxWJK6tEl UJTg4izEk0hfIC05U5of9+Z3PL70uj9wUAoLOUriPtljlBnbpc5PDo56QmgHDDWnG5I5 59SoN7GwER04IfI1W5cZbY00LanGgUgkPo9WubTZcq0vRSv+xRpg+eR+PW2Q3FSLRW6f rkOye5e/pAIrkEqSqq0ouEmRN1062Hoc+vjctB2TVFTGyWvWKXnTR0+QiaL69suD7n99 8Y/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LSVkAayJeWqJ6EoNerZZ2XUjmHTsM7hV5AG2HDlIJ2s=; b=KQhpDMutSLpbmAKibD2I48Yi7uSBxo48F1KyvzIjhJ/f+GCJ6POx/dfyMsMLR648Jz l/qNEU+8KY/gPtDQ5dwORHyNBXp8Ufxc5O26GJeAPcgQTi5BxZl16dOHYrnWif2eRjwG 4mwdtSYBTrF+TpeEjQ7iLIgwhFRnTrZuSjdthS7IT0FeCUWVNULES6TJt+sjv6OmS9zX 7csNSKTuCivpJENJS3RiJhK7Si3utkly8Chqj6Sz2gMzb0+LdQjB/z9397MqeDtXMwvB 8sTD+AZ3PeuMkhW+JKUQlTnpHPTWxMt+JeI1ES/4w4no+F5nD8bl9m6RHSmPTdgrZQF9 5ygQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wa9eJCpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a056402350d00b0043e4a260ad8si10185836edd.563.2022.08.15.17.35.14; Mon, 15 Aug 2022 17:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wa9eJCpP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353721AbiHOXiX (ORCPT + 99 others); Mon, 15 Aug 2022 19:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347644AbiHOXd5 (ORCPT ); Mon, 15 Aug 2022 19:33:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B9612D1E; Mon, 15 Aug 2022 13:08:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43ADFB80EAB; Mon, 15 Aug 2022 20:08:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80DF3C433C1; Mon, 15 Aug 2022 20:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594121; bh=HDljj8CcBWlocdOKTe6crOSfnVL33XDHdc/F8wmSatE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wa9eJCpPQYGRQlp2ZkJgnBoadILOxj4NJWdUBr3epv6zy3sI32NBu0GsIgx3tPjl2 lCQjVSzweahfN2dQSeUK/6e/g8TRoBH9x2pDKg+p/CMGYkCWTxu1/A7hLXNkWP0qAR VF1gSnKtXzc1ZIQ/RnEjJHBmCxysLIzd4sccq/J8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , Sasha Levin Subject: [PATCH 5.19 0382/1157] wifi: mac80211: set STA deflink addresses Date: Mon, 15 Aug 2022 19:55:38 +0200 Message-Id: <20220815180455.016801284@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit 630c7e4621763220d23789fbb036e0cf227e0b22 ] We should set the STA deflink addresses in case no link is really added. Fixes: 046d2e7c50e3 ("mac80211: prepare sta handling for MLO support") Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/sta_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index e04a0905e941..8b192cf7d446 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -373,6 +373,8 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, memcpy(sta->addr, addr, ETH_ALEN); memcpy(sta->sta.addr, addr, ETH_ALEN); + memcpy(sta->deflink.addr, addr, ETH_ALEN); + memcpy(sta->sta.deflink.addr, addr, ETH_ALEN); sta->sta.max_rx_aggregation_subframes = local->hw.max_rx_aggregation_subframes; -- 2.35.1