Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2773894rdb; Mon, 12 Feb 2024 16:53:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrIO7kySHGm9qritKPYI8UPdub3iNLoYX63tSn21zmDnf2NlmnA/oI2C+NlHZlM0Q7qBEuXakKkyCfctwyJtLD3ch1Hx/w1oCM2ppOXg== X-Google-Smtp-Source: AGHT+IFVpsZZHGu9VBAZ5rCB1nRKKVNRLdcA0twKmK0sfKWCA4lv0FGfhyWnrtYDBv/IWhNBe1HV X-Received: by 2002:a0c:f3cf:0:b0:68c:8f27:e8ca with SMTP id f15-20020a0cf3cf000000b0068c8f27e8camr7598651qvm.32.1707785604350; Mon, 12 Feb 2024 16:53:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707785604; cv=pass; d=google.com; s=arc-20160816; b=vpJBuWIIJpibQ3HlSKDGeX5I5Bq5a+3RkN37i7l1J4zLtRV9t7Qw/n+EEx6UKh3ZB2 X4cWHGjdXLsqMGIK7cGxsJtcfCJf7U1aB1+ENuGD1YvK/uDtaSmvJFEjYZSEXzrhgDO/ IyevgssS8HMnR1R6hC6Ed83mAhHliYAmpNmQDb8/HjViT1xDjhCcpUDi95tb7RI0vXE8 q03y9Wy/liqGV+cCgERfY1xM/iuLiiDGFwDI5KGUKUFVDZcaU94mP2M9oxQu+xECzyoZ OkHXqGmnkImKIMFOAVOM5K8+kYkKveJCVbvCEaEiLN0UCJe4cqse/nnmW9xGgo7OGmM8 BL3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gNmUPjPxIyXW4wded25nHhjsNRaumsXuXDYoQfnDsLY=; fh=ggzBwMz9yipj9fs8Qga/KdQaFe4fjt9GWpnolhTbrO4=; b=STj/COgSLuwqjRdeMkE+Hp6cNVA7Q8Izv3U3IsE9cScxHQ2yyuUiJBYaI8Vsd7X0Lg rDO/MSMIQ5uCqtcjvV8xhVTvLexN7sqmFgCusozoNJuROztdxCROjkhI1okf93HNWqa1 tBKVWLmKrgXynN2PKinq46/j6ZMmzq8vSZw927XjXqrqh3wNducM/p/ev1hNd943OB6Z ChAH1ktpZQtEVskq3B8ZinhDX9Imdp/XtPJuS3F9vLl3Gv2autanQyM2sQqlj7RWBKln nqN5CrCLO7Eti98uB+4VlG3qsH+AcLJJsfSZScEwqBMRKUvJnkhcNYLyuFXTFvpnZ8SB jUxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OAUcZlpU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVW4sgBpD1TK4/FstQvE13u+Thzy2iExtow62t5ghB3ii4JgUu/5lAuyZ2Kd2jgmaDejFD1ce058AKWbJL8rpXrbjGG++YCzfgL1/iIKw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id hf7-20020a0562140e8700b0068ccd4443c1si1758414qvb.174.2024.02.12.16.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 16:53:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OAUcZlpU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 08D351C23A92 for ; Tue, 13 Feb 2024 00:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 989607AE68; Tue, 13 Feb 2024 00:22:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OAUcZlpU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FB077AE4C; Tue, 13 Feb 2024 00:22:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783772; cv=none; b=Al+0SDmYfDr/6ZcJidQR5VcyPcyFjK1TMuFBvY8aBxWWdSblqZ0LpPFOlwSy4dpJuOW2YdrRkDFfkjXo9wXvWtClYkKgEZOUqmx0feZg2JDlzeCMy2o0qRZ6y5T1ExjwWD6WTDbT8zDwkNeEQ0/mB3mdnjjjiHy6GXtwGw/LvR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783772; c=relaxed/simple; bh=YjKj5fdO5GCYBNAPM/rveeibmJo9xambdJjrbfrOhoo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E2MyJ82MPEjjYACb6KE2BbnoynfTAvCeSt1DyB04Kj04qne7UrvxrYWhUIhr3epJsK3dOJGiBUCMl9NrGWt34KloPzWH+NfRtPTIV18SjqctJ73iWvhyiDhb3paer9l1NMVzvGlQnJLMvjjzfa1QM81qDh0zGemosIGUFt5qK1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OAUcZlpU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CAA5C433A6; Tue, 13 Feb 2024 00:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783772; bh=YjKj5fdO5GCYBNAPM/rveeibmJo9xambdJjrbfrOhoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OAUcZlpUrHXdu7fwCo+7xeORW361KD6Zf/2N3M49nH94+lKR5nzOJFkAB3oGS/oQu /9DY2q88fDjDVtWfDgJAKHlZ3rGCnRqRMLvKBKpkdaurmQQoFHAgqozS5Ur8/AJgmF XIduxZz2ifgeYkpwXOlS+vf+NlMdqgSIVALup8uTsF+nlHEnCb1AwXsCBzJsts57wz KoJCh/EOnPYroxupMYG45ryN3ZO7WgtoK3khPcZiZPpSzheksj7fixyoURIbUl+yo2 m1MJyCdoOWquC5KVrEAzmb6i0fIO3vcrwBiy1oK1AwaVneV9K6Ot5q6JLrK+4PbdNz 75GMdJQlJ1lzw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Johannes Berg , Sasha Levin , johannes@sipsolutions.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 13/28] wifi: mac80211: set station RX-NSS on reconfig Date: Mon, 12 Feb 2024 19:22:11 -0500 Message-ID: <20240213002235.671934-13-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit From: Johannes Berg [ Upstream commit dd6c064cfc3fc18d871107c6f5db8837e88572e4 ] When a station is added/reconfigured by userspace, e.g. a TDLS peer or a SoftAP client STA, rx_nss is currently not always set, so that it might be left zero. Set it up properly. Link: https://msgid.link/20240129155354.98f148a3d654.I193a02155f557ea54dc9d0232da66cf96734119a@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/cfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index a2c4866080bd..6cf0b77839d1 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1775,6 +1775,8 @@ static int sta_link_apply_parameters(struct ieee80211_local *local, sband->band); } + ieee80211_sta_set_rx_nss(link_sta); + return ret; } -- 2.43.0