From: Johannes Berg <johannes@sipsolutions.net>
To: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Cc: linux-wireless@vger.kernel.org,
"Luis R . Rodriguez" <rodrigue@qca.qualcomm.com>,
"John W . Linville" <linville@tuxdriver.com>,
Jouni Malinen <jouni@qca.qualcomm.com>,
Arend van Spriel <arend@broadcom.com>,
Ilan Peer <ilan.peer@intel.com>
Subject: Re: [PATCH v12 1/2] cfg80211: add 'flags' to cfg80211_rx_mgmt()
Date: Wed, 26 Jun 2013 17:17:34 +0200 [thread overview]
Message-ID: <1372259854.13529.14.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1372167756-17928-2-git-send-email-qca_vkondrat@qca.qualcomm.com>
On Tue, 2013-06-25 at 16:42 +0300, Vladimir Kondratiev wrote:
> +++ b/include/uapi/linux/nl80211.h
> @@ -1436,6 +1436,8 @@ enum nl80211_commands {
> * allowed to be used with the first @NL80211_CMD_SET_STATION command to
> * update a TDLS peer STA entry.
> *
> + * @NL80211_ATTR_RXMGMT_FLAGS: flags for cfg80211_rx_mgmt, u32
That's a little insufficient, don't you think? cfg80211_rx_mgmt()
doesn't even really make sense to userspace, you should point to the
nl80211 event and maybe even reference this new attribute in the command
description.
> +/**
> + * enum nl80211_rxmgmt_flags - flags for cfg80211_rx_mgmt
> + *
> + * @NL80211_RXMGMT_FLAG_REPLIED: frame was replied by device/driver.
> + */
> +enum nl80211_rxmgmt_flags {
> + NL80211_RXMGMT_FLAG_REPLIED = (1 << 0),
No need for parentheses.
> bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_mbm,
> - const u8 *buf, size_t len, gfp_t gfp)
> + const u8 *buf, size_t len, u32 flags, gfp_t gfp)
I'm starting to wonder if this function has too many arguments?
Thoughts? Maybe it should get a struct or so? Not really sure ... could
just be a worthwhile cleanup afterwards?
johannes
next prev parent reply other threads:[~2013-06-26 15:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-25 13:42 [PATCH v12 0/2] P2P find phase offload Vladimir Kondratiev
2013-06-25 13:42 ` [PATCH v12 1/2] cfg80211: add 'flags' to cfg80211_rx_mgmt() Vladimir Kondratiev
2013-06-26 15:17 ` Johannes Berg [this message]
2013-06-25 13:42 ` [PATCH v12 2/2] cfg80211: P2P find phase offload Vladimir Kondratiev
2013-06-26 15:31 ` Johannes Berg
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=1372259854.13529.14.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=arend@broadcom.com \
--cc=ilan.peer@intel.com \
--cc=jouni@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=qca_vkondrat@qca.qualcomm.com \
--cc=rodrigue@qca.qualcomm.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