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 v13 2/2] cfg80211: P2P find phase offload
Date: Tue, 09 Jul 2013 17:22:21 +0200 [thread overview]
Message-ID: <1373383341.8241.8.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <9095491.AkZl2nGOCe@lx-vladimir>
A few nits, since you're going to have to resend anyway (this patch is
also line-wrapped)
> NL80211_FEATURE_P2P_PROBE_RESP_OFFLOAD
Is that actually needed at all? Now that we have the "replied" flag in
the first patch, it seems like this wouldn't be used at all?
> CMD(crit_proto_stop, CRIT_PROTOCOL_STOP);
> + CMD(start_p2p_find, START_P2P_FIND);
> + CMD(stop_p2p_find, STOP_P2P_FIND);
That'll probably have to be changed when mac80211 supports this, but we
don't have to worry about it right now.
> +}
> +static int nl80211_start_p2p_find(struct sk_buff *skb, struct genl_info
> *info)
There should be a blank line between the two functions
> + params.channels = kzalloc(n_channels * sizeof(*params.channels),
> + GFP_KERNEL);
kcalloc? Probably doesn't matter much though.
> + attr = info->attrs[NL80211_ATTR_MIN_DISCOVERABLE_INTERVAL];
> + if (attr)
> + params.min_discoverable_interval = nla_get_u32(attr);
> +
> + attr = info->attrs[NL80211_ATTR_MAX_DISCOVERABLE_INTERVAL];
> + if (attr)
> + params.max_discoverable_interval = nla_get_u32(attr);
No validation at all? What if I pass 7/3 for min/max (yes, in that
order)?
johannes
next prev parent reply other threads:[~2013-07-09 15:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 11:17 [PATCH v13 0/2] P2P find phase offload Vladimir Kondratiev
2013-06-27 11:17 ` [PATCH v13 1/2] cfg80211: add 'flags' to cfg80211_rx_mgmt() Vladimir Kondratiev
2013-06-27 11:17 ` [PATCH v13 2/2] cfg80211: P2P find phase offload Vladimir Kondratiev
2013-07-03 14:37 ` [PATCH v13 1/2] cfg80211: add 'flags' to cfg80211_rx_mgmt() Vladimir Kondratiev
2013-07-09 15:15 ` Johannes Berg
2013-07-09 15:41 ` Vladimir Kondratiev
2013-07-03 14:37 ` [PATCH v13 2/2] cfg80211: P2P find phase offload Vladimir Kondratiev
2013-07-09 15:22 ` Johannes Berg [this message]
2013-07-09 16:04 ` Vladimir Kondratiev
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=1373383341.8241.8.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