Skip to contentSkip to conversation

ath9k: Fix regression with Atheros 9271

PATCH In review Mark O'Donovan 3 participants 5 messages Jul 11, 2020 – Jul 20, 2020 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Fix regression with Atheros 9271

This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes 2bbcaaee1fcb (ath9k: Fix general protection fault in

ath9k_hif_usb_rx_cb )

https://bugzilla.kernel.org/show_bug.cgi?id=208251

---
 drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/hif_usb.c +3 -1
index 4ed21dad6a8e..3f563e02d17d 100644
@@ -733,11 +733,13 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
 			return;
 		}
 
+		rx_buf->skb = nskb;
+
 		usb_fill_int_urb(urb, hif_dev->udev,
 				 usb_rcvintpipe(hif_dev->udev,
 						 USB_REG_IN_PIPE),
 				 nskb->data, MAX_REG_IN_BUF_SIZE,
-				 ath9k_hif_usb_reg_in_cb, nskb, 1);
+				 ath9k_hif_usb_reg_in_cb, rx_buf, 1);
 	}
 
 resubmit:
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Mark O'Donovan

This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes 2bbcaaee1fcb (ath9k: Fix general protection fault in

ath9k_hif_usb_rx_cb )

https://bugzilla.kernel.org/show_bug.cgi?id=208251

These should be:

Fixes 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb")

But I can fix those during commit.

There are basically two options now, either take this patch or revert commit 2bbcaaee1fcb:

https://patchwork.kernel.org/patch/11637341/

I prefer taking Mark's patch but I would appreciate if people could provide testing feedback.

Signature · 3 lines
https://patchwork.kernel.org/patch/11657669/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Tested-by on v1 1/1
#2 lore raw
In reply to Mark O'Donovan

[I fixed my e-mail address and CC'ed Roman]

Mark O'Donovan:

Quoted 8 lines

This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes 2bbcaaee1fcb (ath9k: Fix general protection fault in

ath9k_hif_usb_rx_cb )

https://bugzilla.kernel.org/show_bug.cgi?id=208251

This fixes the issue for me. Please don't forget:

And if you want to add this:

These additional lines are mainly useful if the patch doesn't work for someone else and they decide to report it, so hopefully Roman and I would receive the report, too. And we already have three threads for this bug.

Quoted 24 lines
---
 drivers/net/wireless/ath/ath9k/hif_usb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/hif_usb.c +3 -1
index 4ed21dad6a8e..3f563e02d17d 100644
@@ -733,11 +733,13 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
 			return;
 		}
 
+		rx_buf->skb = nskb;
+
 		usb_fill_int_urb(urb, hif_dev->udev,
 				 usb_rcvintpipe(hif_dev->udev,
 						 USB_REG_IN_PIPE),
 				 nskb->data, MAX_REG_IN_BUF_SIZE,
-				 ath9k_hif_usb_reg_in_cb, nskb, 1);
+				 ath9k_hif_usb_reg_in_cb, rx_buf, 1);
 	}
 
 resubmit:
#3 lore raw
Quoted 13 lines · Viktor Jägersküpper

[I fixed my e-mail address and CC'ed Roman]

Mark O'Donovan:

Quoted 8 lines

This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes 2bbcaaee1fcb (ath9k: Fix general protection fault in

ath9k_hif_usb_rx_cb )

https://bugzilla.kernel.org/show_bug.cgi?id=208251

This fixes the issue for me. Please don't forget:

Quoted 8 lines

And if you want to add this:

These additional lines are mainly useful if the patch doesn't work for someone else and they decide to report it, so hopefully Roman and I would receive the report, too. And we already have three threads for this bug.

Thanks, I will. Or well, actually patchwork automatically does that :)

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#4 lore raw
In reply to Mark O'Donovan
Quoted 7 lines · Mark O'Donovan

This fix allows ath9k_htc modules to connect to WLAN once again.

Fixes 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb")

Patch applied to wireless-drivers.git, thanks.

92f53e2fda8b ath9k: Fix regression with Atheros 9271

Signature · 3 lines
https://patchwork.kernel.org/patch/11657669/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches