Bug 48041
Summary: | rt73usb WARNING: at net/mac80211/driver-ops.h:12 check_sdata_in_driver | ||
---|---|---|---|
Product: | Networking | Reporter: | Dan Carpenter (error27) |
Component: | Wireless | Assignee: | Stanislaw Gruszka (stf_xl) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | bebarino, florian, gwingerde, IvDoorn, linville, stf_xl |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | >= 3.5 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
wlan usb warnings
rt2x00_add_simple_reset_resume.patch |
Description
Dan Carpenter
2012-09-28 12:44:48 UTC
Created attachment 81731 [details]
wlan usb warnings
This happen on 3.5 too, per another report: http://marc.info/?l=linux-wireless&m=134813856100967&w=2 I'm trying to find the way to reproduce this ... Stephen, do you you do not use NetworkManager (or similar) to establish connection, just wpa_supplicant ? Yeah, I'm able to reproduce this when using wpa_supplicant. When using NetworkManger problem is not reproducible. Created attachment 82661 [details]
rt2x00_add_simple_reset_resume.patch
Trial patch for this issue.
Problem is that in __ieee80211_susped we remove sdata (i.e wlan1 interface) and then during resume we call usb_unbind_interface() -> ieee80211_unregister_hw() with sdata removed.
I'm not sure if we should do something smarter in reset_resume, but this simple patch should fix those warnings. Please test.
Yes, I only use wpa_supplicant, no NetworkManager. I'm trying out a similar patch to what you suggest but for rt73usb.c (the driver I'm using). diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 248436c..7afbd13 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c @@ -2536,6 +2536,7 @@ static struct usb_driver rt73usb_driver = { .disconnect = rt2x00usb_disconnect, .suspend = rt2x00usb_suspend, .resume = rt2x00usb_resume, + .reset_resume = rt2x00usb_resume, .disable_hub_initiated_lpm = 1, }; Yes this works. Feel free to squash the fix into the rt73usb driver too and add my Tested-by and Reported-by. Patch posted: http://marc.info/?l=linux-wireless&m=135039092111904&w=2 A patch referencing this bug report has been merged in Linux v3.7-rc3: commit 761ce8c41ed20ee3af77f2df527edc3f92e6f3bf Author: Stanislaw Gruszka <sgruszka@redhat.com> Date: Tue Oct 16 14:34:12 2012 +0200 rt2x00: usb: fix reset resume This bug is fixed in 3.7 tree. We will not backport fix to older -stable releases (i.e. 3.6), since it couse random crashes there (not reproducible on 3.7). |