> On Tue, Nov 9, 2010 at 1:11 PM, Zoltan Herczeg <zherczeg@xxxxxxxxxxxxxxx> > wrote: >> Hi, >> >> I am developing a wireless driver for a cycle accurate energy simulator, >> and cannot solve the following issue: >> >> I can allocate a "wlan0" and "wlan1" platform device with >> ieee80211_alloc_hw, and can initialize it in Ad-Hoc mode. However, I >> realized this is not enough to have a wireless interface, since it has >> no >> receive operation, only transfer. Looking at the other drivers, I found >> that they allocate a net_device with the common alloc_etherdev. >> Unfortunately the register_netdev registers a new eth interface in my >> case, and this interface is not connected to the wlan interface. I set >> wireless_handlers and ieee80211_ptr for this device, still it is totally >> independent from the wlan interface. >> >> Am I missing something? (Sorry if this is a trivial question, I tried >> google but no luck so far) > > Have you looked at mac80211_hwsim under drivers/net/wireless ? Yes, of course. However, mac80211_hwsim do thing in an other way than the other drivers (allocate a custom, global static net_device). I would like to understand the connection between the ieee80211_hw and net_device objects, and how they connected together to form a single device. Thanks, Zoltan -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html