On Mon, 2006-08-14 at 10:18 +0200, Johannes Berg wrote: > For whatever reason, nm always thinks that my default wlan0 device is a > *wired* device. I do wonder where the bug is, but couldn't pinpoint it > yet, any ideas? mm version is 0.6.3. I'd have thought it would go by the > presence of wireless extensions, but if so it uses some call to detect > it that isn't implemented here...
No, it asks HAL what the device type is actually. HAL looks for the interface in /proc/net/wireless currently, and if it's not there, says the device is wired. Run 'lshal', look for your wlan device, and see if info.capabilities includes 'net.80211'. So if the wlanX interface isn't in /proc/net/wireless, you lose. I think we discussed this in the private rt2x00 thread about a month ago? Some patches came out of that one, specifically the SET_NETDEV_DEV ones for rt2x00 and d80211. The problem with d80211 was that it didn't implement the get_wireless_stats() handler function, and that function (I think?) is the one that lets the wlanX device show up in /proc/net/wireless. Dan - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html