From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: greearb@candelatech.com, netdev@vger.kernel.org
Cc: johannes@sipsolutions.net
Subject: Re: [PATCH 1/4] mac80211-hwsim: notify user-space about channel change.
Date: Sun, 05 Apr 2015 17:16:14 +0300 [thread overview]
Message-ID: <552143AE.5060109@cogentembedded.com> (raw)
In-Reply-To: <1428095523-374-1-git-send-email-greearb@candelatech.com>
Hello.
On 4/4/2015 12:12 AM, greearb@candelatech.com wrote:
> From: Ben Greear <greearb@candelatech.com>
> The goal is to allow the user-space application to properly
> filter packets before sending them down to the kernel. This
> should more closely mimic what a real piece of hardware would
> do.
> Signed-off-by: Ben Greear <greearb@candelatech.com>
> ---
> drivers/net/wireless/mac80211_hwsim.c | 48 +++++++++++++++++++++++++++++++++++
> drivers/net/wireless/mac80211_hwsim.h | 6 +++++
> 2 files changed, 54 insertions(+)
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> index 8908be6..d0e88b2 100644
> --- a/drivers/net/wireless/mac80211_hwsim.c
> +++ b/drivers/net/wireless/mac80211_hwsim.c
> @@ -871,6 +871,52 @@ static bool hwsim_ps_rx_ok(struct mac80211_hwsim_data *data,
> return true;
> }
>
> +static void mac80211_hwsim_check_nl_notify(struct mac80211_hwsim_data *data)
> +{
> + struct sk_buff *skb;
> + u32 center_freq = 0;
> + u32 _portid;
> + void *msg_head;
> +
> + /* wmediumd mode check */
> + _portid = ACCESS_ONCE(wmediumd_portid);
> +
I don't think empty line is needed here...
> + if (!_portid)
> + return;
> +
> + skb = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_ATOMIC);
> + if (skb == NULL)
Hm, have you run this thru scripts/checkpatch.pl? It should have
recommended using '!skb' instead (which would have been only consistent with
your previous code).
> + goto err_print;
> +
> + msg_head = genlmsg_put(skb, 0, 0, &hwsim_genl_family, 0,
> + HWSIM_CMD_NOTIFY);
> + if (msg_head == NULL) {
Same here.
[...]
WBR, Sergei
next prev parent reply other threads:[~2015-04-05 14:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 21:12 [PATCH 1/4] mac80211-hwsim: notify user-space about channel change greearb
2015-04-03 21:12 ` [PATCH 2/4] mac80211-hwsim: remove dmesg spam about get-survey greearb
2015-04-14 8:14 ` Johannes Berg
2015-04-03 21:12 ` [PATCH 3/4] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space greearb
2015-04-14 8:15 ` Johannes Berg
2015-04-15 16:23 ` Ben Greear
2015-04-17 11:23 ` Johannes Berg
2015-04-03 21:12 ` [PATCH 4/4] mac80211-hwsim: enable better rx-status when using netlink greearb
2015-04-14 8:17 ` Johannes Berg
2015-04-05 14:16 ` Sergei Shtylyov [this message]
2015-04-14 8:14 ` [PATCH 1/4] mac80211-hwsim: notify user-space about channel change Johannes Berg
-- strict thread matches above, loose matches on Subject: below --
2015-04-03 21:13 greearb
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=552143AE.5060109@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=greearb@candelatech.com \
--cc=johannes@sipsolutions.net \
--cc=netdev@vger.kernel.org \
/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.