linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Airport driver sleep problem and solution
@ 2001-08-20 15:38 Derrik Pates
  2001-08-20 15:47 ` Ethan Blanton
  0 siblings, 1 reply; 2+ messages in thread
From: Derrik Pates @ 2001-08-20 15:38 UTC (permalink / raw)
  To: linuxppc-dev


I recently found that, if the Airport card in an iBook I've been running
Linux on was not brought "up" at the time the system was put to sleep (by
putting the lid down), after bringing it back out of sleep, it would no
longer correctly operate until the driver was removed and reloaded -
ifconfig would receive an ENODEV error, and iwconfig would report that the
device had no wireless extensions. I found that the problem is on line 179
of linux/drivers/net/wireless/airport.c (v0.06f, in 2.4.9-benh0), where
the driver only calls "netif_device_attach" if card->open is TRUE - but it
unconditionally calls "netif_device_detach" in the PBOOK_SLEEP_NOW case.
Line 179 should be changed from "else if (card->open)" to just "else", so
that the network device is "reattached" to the networking subsystem.

Derrik Pates      |   Sysadmin, Douglas School   |    #linuxOS on EFnet
dpates@dsdk12.net |     District (dsdk12.net)    |    #linuxOS on OPN


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-20 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-20 15:38 Airport driver sleep problem and solution Derrik Pates
2001-08-20 15:47 ` Ethan Blanton

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).