linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Thomas Backlund <tmb@mandriva.org>
Cc: reinette chatre <reinette.chatre@intel.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: unable to bring up iwlagn wireless after update from 2.6.29.6 to 2.6.31-rc3
Date: Fri, 17 Jul 2009 00:18:51 +0200	[thread overview]
Message-ID: <1247782731.31442.3.camel@johannes.local> (raw)
In-Reply-To: <4A5FA52D.7030701@mandriva.org>

[-- Attachment #1: Type: text/plain, Size: 2154 bytes --]

On Fri, 2009-07-17 at 01:09 +0300, Thomas Backlund wrote:

> Nope.
> Nothing gets logged when I press the rfkill...
> 
> I'd say that the rfkill rewrite killed my wireless :-(
> 
> Bluetooth works at it whould, but not the wireless
> 
> But now I have atleast found one way to get it working...
> 
> I've built the rfkill utility, and with it I can get the wireless working...

Thanks for the analysis!

> Here is the output when wireless works:
> [root@tmb-laptop rfkill]# ./rfkill list
> 0: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 1: acer-bluetooth: Bluetooth
> 	Soft blocked: yes
> 	Hard blocked: no
> 2: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no

Makes sense that it works at this point :)

> Pressing the rfkill button gets me this:
> [root@tmb-laptop rfkill]# ./rfkill list
> 0: acer-wireless: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 1: acer-bluetooth: Bluetooth
> 	Soft blocked: yes
> 	Hard blocked: no
> 2: phy0: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: yes

So far so good. Your platform's soft-switch is wired to the card's hard
kill line. Mind trying

	./rfkill unblock 0

(or whatever ID the acer-wireless has) at this point to see what
happens? I would hope it goes back to the working state.

> And pressing it again gets this:
> [root@tmb-laptop rfkill]# ./rfkill list
> 0: acer-wireless: Wireless LAN
> 	Soft blocked: no
> 	Hard blocked: no
> 1: acer-bluetooth: Bluetooth
> 	Soft blocked: yes
> 	Hard blocked: no
> 2: phy0: Wireless LAN
> 	Soft blocked: yes
> 	Hard blocked: no
> 
> And after that I cant get wireless back until I again do a:
> ./rfkill unblock 2
> (works only when acer-wireless is no/no and Wireless LAN is yes/no)

Right. This is bad. The button press shouldn't have affected the
soft-state of the rfkill #2.

> Applying this patch:
> [PATCH] rfkill: fix rfkill_set_states() to set the hw state
> sent by Alan Jenkins does not help this issue either...
> 
> Any  suggestions how to fix the rfkill ?

I'll poke at the acer code to see what it's doing wrong...

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2009-07-16 22:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-14 22:15 unable to bring up iwlagn wireless after update from 2.6.29.6 to 2.6.31-rc3 Thomas Backlund
2009-07-14 22:37 ` Johannes Berg
2009-07-14 22:45   ` Thomas Backlund
2009-07-15 15:45     ` reinette chatre
2009-07-16 22:09       ` Thomas Backlund
2009-07-16 22:18         ` Johannes Berg [this message]
2009-07-16 22:30           ` Johannes Berg
2009-07-16 23:35             ` Thomas Backlund
2009-07-16 23:43               ` Luis R. Rodriguez
2009-07-16 23:51                 ` Luis R. Rodriguez
2009-07-16 23:51               ` Thomas Backlund
2009-07-16 23:53                 ` Johannes Berg
2009-07-16 23:35           ` Thomas Backlund
2009-07-16 23:58             ` Johannes Berg
2009-07-17  0:33               ` Thomas Backlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1247782731.31442.3.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=tmb@mandriva.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).