Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp371315lqo; Fri, 10 May 2024 02:26:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXM7B+8lwjfv6fDxP23s859/tVcbTahbmqGpLNnTiL7WapsJVJaR8UdKnFDo4GTxyflaPfo/l4Gk8j7zyRaj750l8R5/WwyWdQKuFBw/A== X-Google-Smtp-Source: AGHT+IGVHj6CjpSip8Md6P5fbG1l+YTPmKVxp+mkspW2CKQH6eeMjQ9QWwK6kHnSGZThpsJq9Z1t X-Received: by 2002:a05:6102:3e8d:b0:47c:14eb:5fdd with SMTP id ada2fe7eead31-48077eb638cmr2517812137.29.1715333183850; Fri, 10 May 2024 02:26:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715333183; cv=pass; d=google.com; s=arc-20160816; b=VGMPKpFU3rvOrEcxcgkdTgeQtu8e9ayTWlN0H8/1j0A/eZOfRujjW6kQOnFjLB+d5Z IFCbiIuT/yj7cCA7TYVpgdtm+Q5K8x1HqGELY6pDrw/5uN08uX9TvlHAh/4icIMi7aod CcqPFRhSslgNBM9+/HwWsm8C8h4/lQjDInb3QbIk4AqGj7Z8yBxDk+cbBDYzkcPEAyMB Al16ldbcz5tz71z5j5FqgcfUyQBBY7CvqfMvNpEI/K7knNnSDtKJosS+bOfq4xME/Ivz U2X7kAEcBH4PCHQNcSga+QZuU1QHo4P1Qeu8wmGEVO+Mx1zqKv3sWVBMoLYmjGsRgHTx Btsw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=VZBMJY6mHsaYpertBvAFBXPW8CfKubBhKdNxEWU+olg=; fh=0ZKV22Mpi0Z+/zRlCC9GRUAKl0wLMxmYgR1nXO1NAEs=; b=vfSfjJAiImzGzWJ31PleayKrtkeWjGpcOcqyzg03JAFW8Bwel23qKEHlHjta65Tdzj gpAbCHe/2hLeYDxMdYuYyz/zLFMPlfqTvwpjmE5hjdZT8S6jR74MNJTbb4ldpHU3l54Y orPMHk5RARi6vFuKiGwBjaPfs1yVoqXxhOKGZ0yaLgj9CP7O1hGOBvMmAzI9lRthWYKw LSGP27QDgNztwrXU4bEbkLgbYLfLw2vfHbeK+/5ktu64uyMlKUtehXD4WeuOtvbFm0XA OTFM/NkTpO+DHBQVBRGhEQo3qovNqFQvusBkxWl+fxcxbqALtxwoiwjuNP6O+5jR/0SH z8QQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=M6yDSKzv; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df566e3f4si29754721cf.269.2024.05.10.02.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:26:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=M6yDSKzv; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7441-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7441-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 3FA971C211D6 for ; Fri, 10 May 2024 09:26:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6209161936; Fri, 10 May 2024 09:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="M6yDSKzv" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 CB3D6161333 for ; Fri, 10 May 2024 09:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715333178; cv=none; b=SdCIg00QvcDXCewesvqvcyYSEy+xjav4CHTh8w/XqctsUsYxlvfxu+aTugVH/RYCyTFZOCtuoVk54ipljWxHMveC0c7LBQk7fO4G19BC2gSY+84uSFh2vnB8mkM4XEF1a28Ho5IgUKNKBzBd4g2KK98DhsBZ7VeAiip/+55jI20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715333178; c=relaxed/simple; bh=FKFeplz9pcwbaA4mrxDrJ7MBe+C9IkVQpWRJ3zsRb4I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GglfRo/5gloO69skKoFeYf9F9RFQuHWpJMeKugKaMrPB3Ue/tsP16tUCd06+tUzI5l7XdEk2USRhryfr5PaqAuypGbmc3cuCTv1oTWTWIwe/3JtCbvyVSl+TmSurHlA7ep/O+LweciyJQqFW7MbB7/f77+8IIKpfVE2ZH6OUhlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=M6yDSKzv; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=VZBMJY6mHsaYpertBvAFBXPW8CfKubBhKdNxEWU+olg=; t=1715333173; x=1716542773; b=M6yDSKzvIlG5H9tSAHIwtukdKC5KWGpYbD+g4hL5BAI9KZLbuUh/3Et9Hax7qqqcuPCpGiV5FLl 0z0n7DxkCnt6x1SXolJ2dpqguudAkZJPqU/SzfDJ51lqZ0rprWRpSllw1355Vm54Qrn1YVLJqm0pz xfvVjRg6BSXFrMxh5b8KSpg1knbrcAB6Qr0KF0EB0z1iRHop0LEUFMVf1yofKFpZx9SRoa0Ft5hjL rtSaL9udWZFVrNRgg+C8En1U3TxsNtvIXJJBxWapl4tW0VNfUTH7C5j0DZfh83xKlNt4mVe291TPX /JNsEKtWiRZpeBIDO7xDtq093Sw3N3/gxtgw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s5MVw-0000000EkIy-0VXw; Fri, 10 May 2024 11:26:04 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Miriam Rachel Korenblit Subject: [PATCH] wifi: mac80211: send DelBA with correct BSSID Date: Fri, 10 May 2024 11:26:02 +0200 Message-ID: <20240510112601.f4e1effdea29.I98e81f22166b68d4b6211191bcaaf8531b324a77@changeid> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg In MLO, the deflink BSSID is clearly invalid. Since we fill the addresses as MLD addresses and translate later, use the AP address here instead. This fixes an issue that happens with HW restart, where the DelBA frame is transmitted, but not processed correctly due to the wrong BSSID (or even just discarded entirely). As a result, the BA sessions are kept alive; however, as other state is reset during HW restart, this then fails (reorder, etc.) and data doesn't go through until new BA sessions are established. Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- net/mac80211/ht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index d7e8cf8e48b7..79caeb485fd5 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c @@ -475,7 +475,7 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, sdata->vif.type == NL80211_IFTYPE_MESH_POINT) memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); else if (sdata->vif.type == NL80211_IFTYPE_STATION) - memcpy(mgmt->bssid, sdata->deflink.u.mgd.bssid, ETH_ALEN); + memcpy(mgmt->bssid, sdata->vif.cfg.ap_addr, ETH_ALEN); else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); -- 2.45.0