On Tue, 2009-01-13 at 11:57 -0800, Luis R. Rodriguez wrote: > If a driver is given a wiphy and it wants to get to its private > mac80211 driver area it can use mac80211_wiphy_driver_priv(). The > wiphy_priv() is already being used internally by mac80211 and drivers > should not use this. This can be helpful a drivers reg_notifier(). > + * mac80211_wiphy_driver_priv - return a mac80211 driver's priv from a wiphy > + * > + * @wiphy: the &struct wiphy which we want to query > + * > + * mac80211 drivers can use this instead of wiphy_priv() to get to their > + * driver's private area. wiphy_priv() is used internally by mac80211 for > + * its own private area and should not be used by mac80211 drivers. > + */ > +void *mac80211_wiphy_driver_priv(struct wiphy *wiphy); I think I'd prefer to have this return the hw struct, and the drivers can dereference to priv themselves. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part