public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -v2 0/2] wifi: rtw88: sdio: Enable tx status for management frames
@ 2025-04-10 15:42 Zhen XIN
  2025-04-10 15:42 ` [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally Zhen XIN
  2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
  0 siblings, 2 replies; 9+ messages in thread
From: Zhen XIN @ 2025-04-10 15:42 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih, linux-kernel, martin.blumenstingl, Zhen XIN

Rtw88-sdio do not work in AP mode due to the lack of tx status report for
management frames.

These patches put management frames into the right queue for tx status
report and ensure the correct handling of tx reports.

changes in v2: have the right queue as pointed out by Bitterblue Smith

Zhen XIN (2):
  wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally
  wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT

 drivers/net/wireless/realtek/rtw88/sdio.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally
  2025-04-10 15:42 [PATCH -v2 0/2] wifi: rtw88: sdio: Enable tx status for management frames Zhen XIN
@ 2025-04-10 15:42 ` Zhen XIN
  2025-04-15 19:31   ` Martin Blumenstingl
  2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
  1 sibling, 1 reply; 9+ messages in thread
From: Zhen XIN @ 2025-04-10 15:42 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih, linux-kernel, martin.blumenstingl, Zhen XIN

Rtw88-sdio do not work in AP mode due to the lack of tx status report for
management frames.

Make the invocation of rtw_sdio_indicate_tx_status unconditional and cover
all packet queues

Tested-on: rtl8723ds

Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
---
 drivers/net/wireless/realtek/rtw88/sdio.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw88/sdio.c b/drivers/net/wireless/realtek/rtw88/sdio.c
index e024061bdbf7..ef51128a4b44 100644
--- a/drivers/net/wireless/realtek/rtw88/sdio.c
+++ b/drivers/net/wireless/realtek/rtw88/sdio.c
@@ -1227,10 +1227,7 @@ static void rtw_sdio_process_tx_queue(struct rtw_dev *rtwdev,
 		return;
 	}
 
-	if (queue <= RTW_TX_QUEUE_VO)
-		rtw_sdio_indicate_tx_status(rtwdev, skb);
-	else
-		dev_kfree_skb_any(skb);
+	rtw_sdio_indicate_tx_status(rtwdev, skb);
 }
 
 static void rtw_sdio_tx_handler(struct work_struct *work)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-10 15:42 [PATCH -v2 0/2] wifi: rtw88: sdio: Enable tx status for management frames Zhen XIN
  2025-04-10 15:42 ` [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally Zhen XIN
@ 2025-04-10 15:42 ` Zhen XIN
  2025-04-15  1:41   ` Ping-Ke Shih
                     ` (2 more replies)
  1 sibling, 3 replies; 9+ messages in thread
From: Zhen XIN @ 2025-04-10 15:42 UTC (permalink / raw)
  To: linux-wireless; +Cc: pkshih, linux-kernel, martin.blumenstingl, Zhen XIN

Rtw88-sdio do not work in AP mode due to the lack of tx status report for
management frames.

Map the management frames to queue TX_DESC_QSEL_MGMT, which enables the
chip to generate TX reports for these frames

Tested-on: rtl8723ds

Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
---
 drivers/net/wireless/realtek/rtw88/sdio.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw88/sdio.c b/drivers/net/wireless/realtek/rtw88/sdio.c
index ef51128a4b44..4311eb7cffef 100644
--- a/drivers/net/wireless/realtek/rtw88/sdio.c
+++ b/drivers/net/wireless/realtek/rtw88/sdio.c
@@ -718,10 +718,7 @@ static u8 rtw_sdio_get_tx_qsel(struct rtw_dev *rtwdev, struct sk_buff *skb,
 	case RTW_TX_QUEUE_H2C:
 		return TX_DESC_QSEL_H2C;
 	case RTW_TX_QUEUE_MGMT:
-		if (rtw_chip_wcpu_11n(rtwdev))
-			return TX_DESC_QSEL_HIGH;
-		else
-			return TX_DESC_QSEL_MGMT;
+		return TX_DESC_QSEL_MGMT;
 	case RTW_TX_QUEUE_HI0:
 		return TX_DESC_QSEL_HIGH;
 	default:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* RE: [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
@ 2025-04-15  1:41   ` Ping-Ke Shih
  2025-04-15 19:31   ` Martin Blumenstingl
  2025-04-17  5:43   ` Ping-Ke Shih
  2 siblings, 0 replies; 9+ messages in thread
From: Ping-Ke Shih @ 2025-04-15  1:41 UTC (permalink / raw)
  To: Zhen XIN, linux-wireless@vger.kernel.org
  Cc: linux-kernel@vger.kernel.org, martin.blumenstingl@googlemail.com

Zhen XIN <zhen.xin@nokia-sbell.com> wrote:
> Rtw88-sdio do not work in AP mode due to the lack of tx status report for
> management frames.
> 
> Map the management frames to queue TX_DESC_QSEL_MGMT, which enables the
> chip to generate TX reports for these frames

I will change the order of this patch to first one, because with patch 1/2
only, it will throw many messages that times out to wait for TX reports
from firmware. 

By the way, patch subject should contain "rtw-next" as hint for NIPA to
test build [1]. This patchset is simple so it also work to build with
wireless-next.

[1] https://patchwork.kernel.org/project/linux-wireless/patch/20250410154217.1849977-3-zhen.xin@nokia-sbell.com/

> 
> Tested-on: rtl8723ds
> 
> Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
> Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
> ---
>  drivers/net/wireless/realtek/rtw88/sdio.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/net/wireless/realtek/rtw88/sdio.c b/drivers/net/wireless/realtek/rtw88/sdio.c
> index ef51128a4b44..4311eb7cffef 100644
> --- a/drivers/net/wireless/realtek/rtw88/sdio.c
> +++ b/drivers/net/wireless/realtek/rtw88/sdio.c
> @@ -718,10 +718,7 @@ static u8 rtw_sdio_get_tx_qsel(struct rtw_dev *rtwdev, struct sk_buff *skb,
>         case RTW_TX_QUEUE_H2C:
>                 return TX_DESC_QSEL_H2C;
>         case RTW_TX_QUEUE_MGMT:
> -               if (rtw_chip_wcpu_11n(rtwdev))
> -                       return TX_DESC_QSEL_HIGH;
> -               else
> -                       return TX_DESC_QSEL_MGMT;
> +               return TX_DESC_QSEL_MGMT;
>         case RTW_TX_QUEUE_HI0:
>                 return TX_DESC_QSEL_HIGH;
>         default:
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
  2025-04-15  1:41   ` Ping-Ke Shih
@ 2025-04-15 19:31   ` Martin Blumenstingl
  2025-04-16  0:32     ` Ping-Ke Shih
  2025-04-17  5:43   ` Ping-Ke Shih
  2 siblings, 1 reply; 9+ messages in thread
From: Martin Blumenstingl @ 2025-04-15 19:31 UTC (permalink / raw)
  To: Zhen XIN; +Cc: linux-wireless, pkshih, linux-kernel

On Thu, Apr 10, 2025 at 5:46 PM Zhen XIN <zhen.xin@nokia-sbell.com> wrote:
>
> Rtw88-sdio do not work in AP mode due to the lack of tx status report for
Ping-Ke, in case you want to keep the spelling of rtw88 consistent:
can you update it while applying the patch (or do we need a v3)?
Same question for the other patch in this series.

> management frames.
>
> Map the management frames to queue TX_DESC_QSEL_MGMT, which enables the
> chip to generate TX reports for these frames
>
> Tested-on: rtl8723ds
>
> Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
> Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally
  2025-04-10 15:42 ` [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally Zhen XIN
@ 2025-04-15 19:31   ` Martin Blumenstingl
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Blumenstingl @ 2025-04-15 19:31 UTC (permalink / raw)
  To: Zhen XIN; +Cc: linux-wireless, pkshih, linux-kernel

On Thu, Apr 10, 2025 at 5:46 PM Zhen XIN <zhen.xin@nokia-sbell.com> wrote:
>
> Rtw88-sdio do not work in AP mode due to the lack of tx status report for
> management frames.
>
> Make the invocation of rtw_sdio_indicate_tx_status unconditional and cover
> all packet queues
>
> Tested-on: rtl8723ds
>
> Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
> Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-15 19:31   ` Martin Blumenstingl
@ 2025-04-16  0:32     ` Ping-Ke Shih
  2025-04-16  5:31       ` Martin Blumenstingl
  0 siblings, 1 reply; 9+ messages in thread
From: Ping-Ke Shih @ 2025-04-16  0:32 UTC (permalink / raw)
  To: Martin Blumenstingl, Zhen XIN
  Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org

Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:
> 
> On Thu, Apr 10, 2025 at 5:46 PM Zhen XIN <zhen.xin@nokia-sbell.com> wrote:
> >
> > Rtw88-sdio do not work in AP mode due to the lack of tx status report for
> Ping-Ke, in case you want to keep the spelling of rtw88 consistent:
> can you update it while applying the patch (or do we need a v3)?
> Same question for the other patch in this series.

I can update commit messages while applying patches. But not sure what you
mentioned. Did you mean to change 'Rtw88-sdio' to 'rtw88-sdio'?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-16  0:32     ` Ping-Ke Shih
@ 2025-04-16  5:31       ` Martin Blumenstingl
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Blumenstingl @ 2025-04-16  5:31 UTC (permalink / raw)
  To: Ping-Ke Shih
  Cc: Zhen XIN, linux-wireless@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, Apr 16, 2025 at 2:33 AM Ping-Ke Shih <pkshih@realtek.com> wrote:
>
> Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:
> >
> > On Thu, Apr 10, 2025 at 5:46 PM Zhen XIN <zhen.xin@nokia-sbell.com> wrote:
> > >
> > > Rtw88-sdio do not work in AP mode due to the lack of tx status report for
> > Ping-Ke, in case you want to keep the spelling of rtw88 consistent:
> > can you update it while applying the patch (or do we need a v3)?
> > Same question for the other patch in this series.
>
> I can update commit messages while applying patches. But not sure what you
> mentioned. Did you mean to change 'Rtw88-sdio' to 'rtw88-sdio'?
Indeed, I meant changing Rtw88-sdio to rtw88-sdio

Thank you!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
  2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
  2025-04-15  1:41   ` Ping-Ke Shih
  2025-04-15 19:31   ` Martin Blumenstingl
@ 2025-04-17  5:43   ` Ping-Ke Shih
  2 siblings, 0 replies; 9+ messages in thread
From: Ping-Ke Shih @ 2025-04-17  5:43 UTC (permalink / raw)
  To: Zhen XIN, linux-wireless
  Cc: pkshih, linux-kernel, martin.blumenstingl, Zhen XIN

Zhen XIN <zhen.xin@nokia-sbell.com> wrote:

> Rtw88-sdio do not work in AP mode due to the lack of tx status report for
> management frames.
> 
> Map the management frames to queue TX_DESC_QSEL_MGMT, which enables the
> chip to generate TX reports for these frames
> 
> Tested-on: rtl8723ds
> 
> Fixes: 65371a3f14e7 ("wifi: rtw88: sdio: Add HCI implementation for SDIO based chipsets")
> Signed-off-by: Zhen XIN <zhen.xin@nokia-sbell.com>
> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

2 patch(es) applied to rtw-next branch of rtw.git, thanks.

b2effcdc2379 wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT
fc5f5a0ec463 wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally

---
https://github.com/pkshih/rtw.git


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-04-17  5:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10 15:42 [PATCH -v2 0/2] wifi: rtw88: sdio: Enable tx status for management frames Zhen XIN
2025-04-10 15:42 ` [PATCH -v2 1/2] wifi: rtw88: sdio: call rtw_sdio_indicate_tx_status unconditionally Zhen XIN
2025-04-15 19:31   ` Martin Blumenstingl
2025-04-10 15:42 ` [PATCH -v2 2/2] wifi: rtw88: sdio: map mgmt frames to queue TX_DESC_QSEL_MGMT Zhen XIN
2025-04-15  1:41   ` Ping-Ke Shih
2025-04-15 19:31   ` Martin Blumenstingl
2025-04-16  0:32     ` Ping-Ke Shih
2025-04-16  5:31       ` Martin Blumenstingl
2025-04-17  5:43   ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox