From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 099/306] mac80211-hwsim: notify user-space about channel change.
Date: Mon, 27 Feb 2017 15:34:38 +0100 [thread overview]
Message-ID: <1488206078.28431.13.camel@sipsolutions.net> (raw)
In-Reply-To: <e7500b9a-5020-0dcc-5d67-4a2d12704c33@candelatech.com>
On Fri, 2017-02-24 at 07:39 -0800, Ben Greear wrote:
>
> On 02/23/2017 10:36 PM, Johannes Berg wrote:
> >
> >
> > > + msg_head = genlmsg_put(skb, 0, 0, &hwsim_genl_family, 0,
> > > + HWSIM_CMD_NOTIFY);
> >
> > I think you should use a more specific command name.
>
> My idea was that other attributes could be added over time without
> having to add a new cmd-id, so that is why I left it general. If you
> still want a different command, do you want it to be something like
> 'HWSIM_CMD_CHANNEL_CHANGE' ?
We won't run out of command IDs any time soon, so I don't really see a
problem with using a new one for all of those things if needed.
But having a general NOTIFY just means that the application will have
to parse the attributes and understand what means what - that seems
like a case of the cure being worse than the disease?
johannes
next prev parent reply other threads:[~2017-02-27 14:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 0:28 [PATCH 099/306] mac80211-hwsim: notify user-space about channel change greearb
2017-02-24 0:28 ` [PATCH 100/306] mac80211-hwsim: remove dmesg spam about get-survey greearb
2017-02-24 6:36 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 101/306] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space greearb
2017-02-24 6:37 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 102/306] mac80211-hwsim: enable better rx-status when using netlink greearb
2017-02-24 6:38 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 160/306] mac80211-hwsim: add rate-limited debugging for rx-netlink greearb
2017-02-24 6:39 ` Johannes Berg
2017-02-24 15:27 ` Ben Greear
2017-02-27 14:33 ` Johannes Berg
2017-02-24 0:28 ` [PATCH 161/306] mac80211-hwsim: Improve logging greearb
2017-02-24 6:42 ` Johannes Berg
2017-02-24 15:26 ` Ben Greear
2017-02-24 0:28 ` [PATCH 162/306] mac80211-hwsim: add length checks before allocating skb greearb
2017-02-24 6:43 ` Johannes Berg
2017-02-24 8:45 ` Andrew Zaborowski
2017-02-24 15:19 ` Ben Greear
2017-02-24 6:36 ` [PATCH 099/306] mac80211-hwsim: notify user-space about channel change Johannes Berg
2017-02-24 15:39 ` Ben Greear
2017-02-27 14:34 ` Johannes Berg [this message]
2017-02-27 20:48 ` Ben Greear
2017-03-02 8:38 ` Johannes Berg
2017-03-02 14:26 ` Ben Greear
2017-02-27 21:00 ` Ben Greear
2017-03-02 8:39 ` 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=1488206078.28431.13.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=greearb@candelatech.com \
--cc=linux-wireless@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.