Search Linux Wireless

Re: [PATCH 11/12] mac80211: allow mac80211 drivers to get to driver priv from wiphy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux