[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <552E909E.6010405@candelatech.com>
Date: Wed, 15 Apr 2015 09:23:58 -0700
From: Ben Greear <greearb@...delatech.com>
To: Johannes Berg <johannes@...solutions.net>
CC: netdev@...r.kernel.org
Subject: Re: [PATCH 3/4] mac80211-hwsim: Pass rate-ctrl flags and tx-power
to user-space
On 04/14/2015 01:15 AM, Johannes Berg wrote:
> On Fri, 2015-04-03 at 14:12 -0700, greearb@...delatech.com wrote:
>
>> +/* Auxilary info to allow user-space to better understand the rate */
>> +struct hwsim_tx_rate2 {
>> + u16 rc_flags; /* rate-ctrl flags (see mac80211_rate_control_flags) */
>
> I really don't like this - it ties internal API to userspace API. You
> may argue that this is userspace that is for debug purposes only, but
> I'm sure you'll also scratch your head very confused when I change the
> rate control flags for any reason and your code breaks :)
Is this a documentation only issue (at this point, while code matches)?
Then later, we can add translation to keep user-space API the same
as needed?
And in that case, maybe I'll make it u32 to give room down the road?
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists