From: Johannes Berg <johannes@sipsolutions.net>
To: Javier Cardona <javier@cozybit.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
Thomas Pedersen <thomas@cozybit.com>,
devel@lists.open80211s.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 5/5 v4] mac80211: New notification to discover mesh peer candidates.
Date: Tue, 22 Mar 2011 22:42:03 +0100 [thread overview]
Message-ID: <1300830123.3746.50.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1300479732-25920-6-git-send-email-javier@cozybit.com>
On Fri, 2011-03-18 at 13:22 -0700, Javier Cardona wrote:
> @@ -1170,6 +1182,7 @@ enum nl80211_iftype {
> * @NL80211_STA_FLAG_WME: station is WME/QoS capable
> * @NL80211_STA_FLAG_MFP: station uses management frame protection
> * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
> + * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated
> * @__NL80211_STA_FLAG_AFTER_LAST: internal use
This looks a little odd, but doesn't really matter.
> +void cfg80211_notify_new_peer_candidate(struct net_device *dev,
> + const u8 *macaddr, const u8* ie, u8 ie_len, gfp_t gfp)
> +{
> + struct wireless_dev *wdev = dev->ieee80211_ptr;
> + struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy);
> + struct cfg80211_event *ev;
> + unsigned long flags;
> +
> + ev = kzalloc(sizeof(*ev), gfp);
> + if (!ev)
> + return;
> + ev->type = EVENT_NEW_CANDIDATE;
> + memcpy(ev->nc.macaddr, macaddr, ETH_ALEN);
> + if (ie_len && ie) {
> + ev->nc.ie = kmemdup(ie, ie_len, gfp);
> + ev->nc.ie_len = (ev->nc.ie) ? ie_len : 0;
> + }
> +
> + spin_lock_irqsave(&wdev->event_lock, flags);
> + list_add_tail(&ev->list, &wdev->event_list);
> + spin_unlock_irqrestore(&wdev->event_lock, flags);
> + queue_work(cfg80211_wq, &rdev->event_work);
Why schedule out here and all the complexity with that? Seems pointless,
just pass the gfp through to nl80211?
Also, this changes the APIs again. Do you think you could collect the
API changes into a separate patch and combine them in nl80211/cfg80211?
johannes
prev parent reply other threads:[~2011-03-22 21:42 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-05 1:24 [PATCH 0/4 v2] {mac|nl}80211: Support for SAE mesh authentication in userspace Thomas Pedersen
2011-03-05 1:24 ` [PATCH 1/4 v2] mac80211: Enable mesh security from userspace Thomas Pedersen
2011-03-05 14:05 ` Johannes Berg
2011-03-05 19:34 ` Javier Cardona
2011-03-05 19:42 ` Johannes Berg
2011-03-05 20:17 ` [PATCH 1/4 v3] " Javier Cardona
2011-03-05 20:26 ` Johannes Berg
2011-03-07 18:47 ` Javier Cardona
2011-03-07 19:03 ` Johannes Berg
2011-03-05 1:24 ` [PATCH 2/4 v2] mac80211: Let user space receive and send mesh auth/deauth frames Thomas Pedersen
2011-03-05 1:24 ` [PATCH 3/4 v2] mac80211: Accept mesh auth frames before a peer link has been established Thomas Pedersen
2011-03-05 1:24 ` [PATCH 4/4 v2] mac80211: Let userspace create stations when mesh security is enabled Thomas Pedersen
2011-03-05 14:01 ` Johannes Berg
2011-03-05 19:13 ` Javier Cardona
2011-03-05 14:06 ` [PATCH 0/4 v2] {mac|nl}80211: Support for SAE mesh authentication in userspace Johannes Berg
2011-03-05 19:40 ` Javier Cardona
2011-03-05 19:50 ` Johannes Berg
2011-03-05 20:01 ` Javier Cardona
2011-03-05 20:23 ` Johannes Berg
2011-03-08 2:11 ` Javier Cardona
2011-03-08 2:11 ` [RFC] mac80211: New notification to discover mesh peer candidates Javier Cardona
2011-03-08 15:10 ` Johannes Berg
2011-03-08 18:56 ` Javier Cardona
2011-03-08 19:18 ` Johannes Berg
2011-03-18 20:22 ` [PATCH 0/5 v4] {mac|nl}80211: Support for SAE mesh authentication in userspace Javier Cardona
2011-03-18 20:22 ` [PATCH 1/5 v4] mac80211: Enable mesh security from userspace Javier Cardona
2011-03-22 21:39 ` Johannes Berg
2011-03-18 20:22 ` [PATCH 2/5 v4] mac80211: Let user space receive and send mesh auth/deauth frames Javier Cardona
2011-03-18 20:22 ` [PATCH 3/5 v4] mac80211: Accept mesh auth frames before a peer link has been established Javier Cardona
2011-03-18 20:22 ` [PATCH 4/5 v4] mac80211: Let userspace create stations when mesh security is enabled Javier Cardona
2011-03-18 20:22 ` [PATCH 5/5 v4] mac80211: New notification to discover mesh peer candidates Javier Cardona
2011-03-22 21:42 ` Johannes Berg [this message]
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=1300830123.3746.50.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=devel@lists.open80211s.org \
--cc=javier@cozybit.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=thomas@cozybit.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).