Comment 8 for bug 59981

Revision history for this message
Soren Hansen (soren) wrote :

Just FYI: It indeed WAS a race condition. On suspend, most network drivers are unloaded, and are then reloaded on resume. When loading the module, hal is notified of the presence of a new device and quickly add it to it's database. If it's a network interface, it checks /proc/net/wireless to see if the interface in question is mentioned there, and if so, it's marked as being a wifi interface. Apparantly, hal manages to check the file before the device is added to it, and hence it's detected as a non-wifi interface. This new detection code checks for the presence of /sys/class/net/<ifname>/wireless directory, which seems to be a more robust mechanism for detecting this.

Enjoy