1 |
On 09/13/2016 04:23 AM, Bertram Scharpf wrote: |
2 |
> Hi, |
3 |
> |
4 |
> after suspend, my wlan is dead and it cannot be restarted.... |
5 |
> |
6 |
> What do I have to try? |
7 |
|
8 |
I had this same problem with the ath5k driver (still do, I bet) |
9 |
on my Thinkpad x61s. What happens if you run "sudo rfkill list" |
10 |
after you resume from suspend? Does it show that the wireless is |
11 |
"hard blocked"? |
12 |
|
13 |
In my case, it was, so I tried something stupid. I patched my kernel |
14 |
to answer "no" to the question "is rfkill enabled?"... and it worked! |
15 |
|
16 |
--- a/drivers/net/wireless/ath/ath5k/rfkill.c 2012-05-28 21:16:04.000000000 -0400 |
17 |
+++ b/drivers/net/wireless/ath/ath5k/rfkill.c 2012-05-28 21:17:17.000000000 -0400 |
18 |
@@ -66,10 +66,8 @@ |
19 |
static bool |
20 |
ath5k_is_rfkill_set(struct ath5k_hw *ah) |
21 |
{ |
22 |
- /* configuring GPIO for input for some reason disables rfkill */ |
23 |
- /*ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio);*/ |
24 |
- return ath5k_hw_get_gpio(ah, ah->rf_kill.gpio) == |
25 |
- ah->rf_kill.polarity; |
26 |
+ /* Hard code this to work around a stupid bug. */ |
27 |
+ return 0; |
28 |
} |
29 |
|
30 |
static void |
31 |
|
32 |
Maybe you can do the same thing for your driver, if rfkill is actually the issue. |
33 |
I have a possibly outdated writeup of the issue here: |
34 |
|
35 |
http://michael.orlitzky.com/articles/thinkpad_x61s_ath5k_rfkill_issues.php |