All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2 v3] mac80211/cfg80211: add support for userspace to handle auth frames on adhoc ifaces
@ 2012-06-19  0:19 Will Hawkins
  2012-06-19  7:05 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Will Hawkins @ 2012-06-19  0:19 UTC (permalink / raw)
  To: linux-wireless, Johannes Berg, linville

Hello!

I am sending along 2 patches to add support for user space applications
to register for authentication frames on adhoc interfaces. These are
revisions to a previous patch that I submitted to accomplish the same
thing.

Patch 1/2 adds a cfg80211_mgmt_reg_match function to cfg80211 to
check whether a user space application is registered for a particular
type of management frame rx'd on a particular device. The new function
is very similar to cfg80211_rx_mgmt. cfg80211_rx_mgmt could not be
reused because of its side-effect of transmitting the "query" frames to
the registered userspace applications. This patch modifies the
documentation for cfg80211_rx_mgmt to reflect that.

Patch 2/2 sets the necessary flags to allow userspace
applications to register for authentication frames on adhoc interfaces.
It also adds a check to make sure that "open" authentication frames are
not sent when a user space application is registered for authentication
frames.

As I've said before, I'm still new to this process so I look forward to
your feedback on improving.

Will

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 0/2 v3] mac80211/cfg80211: add support for userspace to handle auth frames on adhoc ifaces
  2012-06-19  0:19 [PATCH 0/2 v3] mac80211/cfg80211: add support for userspace to handle auth frames on adhoc ifaces Will Hawkins
@ 2012-06-19  7:05 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-06-19  7:05 UTC (permalink / raw)
  To: Will Hawkins; +Cc: linux-wireless, linville, Antonio Quartulli

Hi Will,

> I am sending along 2 patches to add support for user space applications
> to register for authentication frames on adhoc interfaces. These are
> revisions to a previous patch that I submitted to accomplish the same
> thing.

Thanks.

> Patch 1/2 adds a cfg80211_mgmt_reg_match function to cfg80211 to
> check whether a user space application is registered for a particular
> type of management frame rx'd on a particular device. The new function
> is very similar to cfg80211_rx_mgmt. cfg80211_rx_mgmt could not be
> reused because of its side-effect of transmitting the "query" frames to
> the registered userspace applications. This patch modifies the
> documentation for cfg80211_rx_mgmt to reflect that.

I think this isn't needed: if you look at mac80211/cfg.c, there's a
handler called ieee80211_mgmt_frame_register() where cfg80211 tells
mac80211 when a handler is registered/unregistered. mac80211 could just
keep track (for IBSS type interfaces) all by itself, and then just needs
to check some flag/variable instead of calling a function.

> Patch 2/2 sets the necessary flags to allow userspace
> applications to register for authentication frames on adhoc interfaces.
> It also adds a check to make sure that "open" authentication frames are
> not sent when a user space application is registered for authentication
> frames.

Makes sense. I'll need to check if you caught all conditions, maybe
Antonio can help out.

> As I've said before, I'm still new to this process so I look forward to
> your feedback on improving.

There's not a lot of room for improvement :-)

A small detail: the first patch should have been labelled only
"cfg80211" and the second only "mac80211".

Also, if you could send the patches (1/2 and 2/2) as a reply to the
cover letter (0/2) that helps keep the series together due to threading.
With git send-email you can instruct it to do that, but it didn't look
like you used it.

Thanks!

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-19  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19  0:19 [PATCH 0/2 v3] mac80211/cfg80211: add support for userspace to handle auth frames on adhoc ifaces Will Hawkins
2012-06-19  7:05 ` Johannes Berg

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.