From: Johannes Berg <johannes@sipsolutions.net>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 11/12] mac80211: allow mac80211 drivers to get to driver priv from wiphy
Date: Tue, 13 Jan 2009 23:50:23 +0100 [thread overview]
Message-ID: <1231887023.3728.4.camel@johannes> (raw)
In-Reply-To: <1231876675-20518-12-git-send-email-lrodriguez@atheros.com>
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2009-01-13 22:50 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 19:57 [PATCH 00/12] cfg80211/mac80211: fixes/enhancements for reg_notifier() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 01/12] cfg80211: print correct intersected regulatory domain Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 02/12] cfg80211: add helper to indicate when to follow the driver regd Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 03/12] cfg80211: add option for wiphys to disregard country IEs Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 04/12] cfg80211: split wiphy_update_regulatory() in two Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 05/12] cfg80211: add regulatory_set_custom_rd() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 06/12] cfg80211: add regdom_intersect_wiphy_regd() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 07/12] cfg80211: allow driver read access to cfg80211_regdomain Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 08/12] cfg80211: export freq_reg_info() Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 09/12] cfg80211: Fix sanity check on 5 GHz when processing country IE Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 10/12] cfg80211: process user requests only after previous user/driver/core requests Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 11/12] mac80211: allow mac80211 drivers to get to driver priv from wiphy Luis R. Rodriguez
2009-01-13 19:57 ` [PATCH 12/12] cfg80211: Remove CONFIG_WIRELESS_OLD_REGULATORY Luis R. Rodriguez
2009-01-13 22:50 ` Johannes Berg
2009-01-13 23:00 ` Luis R. Rodriguez
2009-01-13 23:02 ` Johannes Berg
2009-01-13 22:50 ` Johannes Berg [this message]
2009-01-13 22:46 ` [PATCH 07/12] cfg80211: allow driver read access to cfg80211_regdomain Johannes Berg
2009-01-13 22:51 ` Luis R. Rodriguez
2009-01-13 22:53 ` Johannes Berg
2009-01-13 23:02 ` Luis R. Rodriguez
2009-01-13 23:00 ` [PATCH 00/12] cfg80211/mac80211: fixes/enhancements for reg_notifier() Johannes Berg
2009-01-13 23:17 ` Luis R. Rodriguez
2009-01-13 23:23 ` Johannes Berg
2009-01-13 23:59 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231887023.3728.4.camel@johannes \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=lrodriguez@atheros.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.