* Question about mac80211 callback
@ 2009-11-23 2:11 Larry Finger
2009-11-23 9:38 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2009-11-23 2:11 UTC (permalink / raw)
To: Johannes Berg; +Cc: wireless
Johannes,
I tried to figure this out from the code, but I kept getting lost.
When a computer goes into hibernation, which of the mac80211 callback routines
are called, and which ones on the following resume? The problem arises due to
the problem in Bug #14267. The routine to check the hardware status of the
RFKILL switch is being entered with b43_status() returning 0, thus the hardware
switch is not checked. If we do not check for that condition, then we get a
machine fault on PPC. I would like to be able to track this problem down. I've
already entered two bad patches in this area.
Thanks,
Larry
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about mac80211 callback
2009-11-23 2:11 Question about mac80211 callback Larry Finger
@ 2009-11-23 9:38 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2009-11-23 9:38 UTC (permalink / raw)
To: Larry Finger; +Cc: wireless
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
Larry,
> I tried to figure this out from the code, but I kept getting lost.
>
> When a computer goes into hibernation, which of the mac80211 callback routines
> are called, and which ones on the following resume?
mac80211 will be called via cfg80211, and will run __ieee80211_suspend()
which calls a whole bunch of driver things. This is _before_ the
driver's suspend() callback runs.
Then, after the driver's resume() callback runs, we go into
ieee80211_reconfig() in mac80211.
You can find the interaction with the PM subsystem in
net/wireless/sysfs.c.
> The problem arises due to
> the problem in Bug #14267.
Wrong bug number?
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-23 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 2:11 Question about mac80211 callback Larry Finger
2009-11-23 9:38 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox