linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <arend@broadcom.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>,
	Gautam Kumar Shukla <gautams@broadcom.com>,
	Avinash Patil <patila@marvell.com>
Subject: Re: [PATCH] cfg80211: add extensible feature flag attribute
Date: Tue, 23 Dec 2014 20:05:37 +0100	[thread overview]
Message-ID: <5499BD01.9010709@broadcom.com> (raw)
In-Reply-To: <1419350836.6091.10.camel@sipsolutions.net>

On 12/23/14 17:07, Johannes Berg wrote:
> On Tue, 2014-12-23 at 17:05 +0100, Arend van Spriel wrote:
>
>> It compiles, but I guess nla_put() will fail for u8[0+8-1/8] field.
>
> I think it should work - the array is 0 bytes long, so sizeof() would
> return 0, and that turns out to be equivalent to nla_put_flag().

Another day, another lesson ;-) Wondered how netlink flags were 
transported in the message, but never bothered to look. Thanks.

Arend

> johannes
>


  reply	other threads:[~2014-12-23 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23 15:55 [PATCH] cfg80211: add extensible feature flag attribute Arend van Spriel
2014-12-23 15:58 ` Johannes Berg
2014-12-23 16:05   ` Arend van Spriel
2014-12-23 16:07     ` Johannes Berg
2014-12-23 19:05       ` Arend van Spriel [this message]
2015-01-06 10:35 ` 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=5499BD01.9010709@broadcom.com \
    --to=arend@broadcom.com \
    --cc=gautams@broadcom.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=patila@marvell.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;
as well as URLs for NNTP newsgroup(s).