From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FAD0C00140 for ; Mon, 15 Aug 2022 23:38:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353741AbiHOXi0 (ORCPT ); Mon, 15 Aug 2022 19:38:26 -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 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