From nobody Fri Dec 19 20:14:21 2025 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 8025828890E; Sun, 24 Mar 2024 23:47:11 +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=1711324032; cv=none; b=Ju5Hc4VkuOKvYEcug6n6AKWvX5kY4W1/B53/iO4NiY2hMZi/VW0N2XkKUkV3Uu3vfz9HjGjvzyYgarxd5l0EjfvvEBfME3udwpQkKGuDP9DzJJwYju4duWg2je4PVhsfcqz6cIw5WJni83G3uczjCrc5TXw9Oy/mrGUYLt6hGis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711324032; c=relaxed/simple; bh=N/MEiHXUbpLsn9IOTfeGvFEsEm35rJQsD7nKOe2gkXk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aUcUmE0g5MMdKVCOiXqq87CseyEOFCmIhrrCgDAAgLt5zKZJi7OI1nc/R6aQiWNMOSRBKm7dfV2a8s2hVgVLCB72l6zpnDgOssS9SHeTtPWpQ3Gx4Cw67QYglcL7MbXLeuDEyYCH4M7T9ebgvJtelkV4+1bM5F93SWzqys6CaIo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZwvIJolV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZwvIJolV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A87BEC433C7; Sun, 24 Mar 2024 23:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711324031; bh=N/MEiHXUbpLsn9IOTfeGvFEsEm35rJQsD7nKOe2gkXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZwvIJolV80Op+a/leleQn8RpFGoyyLt2dGnGVo9K2uKBaoRc3aHXp1oDRJsUS8R4o tLfMGfclj0LQXe75+HD454PIOy6WlM6vyfO+lIRyojmjnxoBHF3HNSMb0wIwoRv367 aqnueACxUKQ8qGtwBsPiLbUNx82EZJZ0BKmuKUU8Y8u/ADzPfuoxVcW0KgFk5dueda 1s2N6FbmX/jdc8xQXcmDEk47CCZwHIyQ9vTghsHFWj5fMtGVTJq8U1bSHrk+jChr7P s0WlEg1Kj+0d64SHy8RLimj4xaWpG1ZH2zh4WAZkpBqvdDKHQzVddqAOB8C015uw9H U0LZP9iH3OiKg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rahul Rameshbabu , Julian Calaby , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 032/183] wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled Date: Sun, 24 Mar 2024 19:44:05 -0400 Message-ID: <20240324234638.1355609-33-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234638.1355609-1-sashal@kernel.org> References: <20240324234638.1355609-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rahul Rameshbabu [ Upstream commit 77135a38f6c2f950d2306ac3d37cbb407e6243f2 ] When QoS is disabled, the queue priority value will not map to the correct ieee80211 queue since there is only one queue. Stop/wake queue 0 when QoS is disabled to prevent trying to stop/wake a non-existent queue and failing to stop/wake the actual queue instantiated. Fixes: 5100d5ac81b9 ("b43: Add PIO support for PCMCIA devices") Signed-off-by: Rahul Rameshbabu Reviewed-by: Julian Calaby Signed-off-by: Kalle Valo Link: https://msgid.link/20231231050300.122806-3-sergeantsagara@protonmail.= com Signed-off-by: Sasha Levin --- drivers/net/wireless/broadcom/b43/pio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/pio.c b/drivers/net/wireless= /broadcom/b43/pio.c index 69f8b46c90157..468fd647d0a08 100644 --- a/drivers/net/wireless/broadcom/b43/pio.c +++ b/drivers/net/wireless/broadcom/b43/pio.c @@ -525,7 +525,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *s= kb) if (total_len > (q->buffer_size - q->buffer_used)) { /* Not enough memory on the queue. */ err =3D -EBUSY; - ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); + b43_stop_queue(dev, skb_get_queue_mapping(skb)); q->stopped =3D true; goto out; } @@ -552,7 +552,7 @@ int b43_pio_tx(struct b43_wldev *dev, struct sk_buff *s= kb) if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || (q->free_packet_slots =3D=3D 0)) { /* The queue is full. */ - ieee80211_stop_queue(dev->wl->hw, skb_get_queue_mapping(skb)); + b43_stop_queue(dev, skb_get_queue_mapping(skb)); q->stopped =3D true; } =20 @@ -587,7 +587,7 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev, list_add(&pack->list, &q->packets_list); =20 if (q->stopped) { - ieee80211_wake_queue(dev->wl->hw, q->queue_prio); + b43_wake_queue(dev, q->queue_prio); q->stopped =3D false; } } --=20 2.43.0