Hmm, I see two problems with my code: > +struct wireless_dev *lbs_wdev_alloc(int sizeof_priv, struct device *dev) > +{ ... > + wdev->wiphy = wiphy_new(&lbs_cfg80211_ops, > + sizeof(struct lbs_private) + sizeof_priv); ... and later: > + wdev = lbs_wdev_alloc(sizeof(struct lbs_private), dmdev); That's rubbish, I now allocate "sizeof(lbs_private)" bytes twice. Another thing is that it might be necessary to unbundle the call of "wiphy_new()" and wiphy_register(). I need lbs_private allocated and usable, e.g. in lbs_start_card(). Later, in lbs_start_card(), when I query the firmware about it's capabilites I know enought to populate wiphy->bands. Only then should I call wiphy_register(). -- http://www.holgerschurig.de -- 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