* Can we make ieee80211_iface_combination.limits non-const?
@ 2014-06-26 18:20 Ben Greear
2014-06-26 20:06 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2014-06-26 18:20 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org
Depending on firmware loaded (and/or module options), a different
number of vdev interfaces may be supported.
Can we remove the const from the "struct ieee80211_iface_limit *limits"
member of ieee80211_iface_combination?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can we make ieee80211_iface_combination.limits non-const?
2014-06-26 18:20 Can we make ieee80211_iface_combination.limits non-const? Ben Greear
@ 2014-06-26 20:06 ` Johannes Berg
2014-06-26 20:23 ` Ben Greear
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2014-06-26 20:06 UTC (permalink / raw)
To: Ben Greear; +Cc: linux-wireless@vger.kernel.org
On Thu, 2014-06-26 at 11:20 -0700, Ben Greear wrote:
> Depending on firmware loaded (and/or module options), a different
> number of vdev interfaces may be supported.
>
> Can we remove the const from the "struct ieee80211_iface_limit *limits"
> member of ieee80211_iface_combination?
No, it would break drivers who actually have a static const for the
pointer target.
You don't have to assign something that's const, but you also can't be
changing it on the fly after wiphy registration anyway.
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can we make ieee80211_iface_combination.limits non-const?
2014-06-26 20:06 ` Johannes Berg
@ 2014-06-26 20:23 ` Ben Greear
2014-06-27 7:44 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2014-06-26 20:23 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless@vger.kernel.org
On 06/26/2014 01:06 PM, Johannes Berg wrote:
> On Thu, 2014-06-26 at 11:20 -0700, Ben Greear wrote:
>> Depending on firmware loaded (and/or module options), a different
>> number of vdev interfaces may be supported.
>>
>> Can we remove the const from the "struct ieee80211_iface_limit *limits"
>> member of ieee80211_iface_combination?
>
> No, it would break drivers who actually have a static const for the
> pointer target.
That could be easily fixed, eh?
> You don't have to assign something that's const, but you also can't be
> changing it on the fly after wiphy registration anyway.
This would be done before registration. I like static init
for defaults, but wanted to poke a few variables at run-time
based on firmware, etc.
Thanks,
Ben
>
> johannes
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can we make ieee80211_iface_combination.limits non-const?
2014-06-26 20:23 ` Ben Greear
@ 2014-06-27 7:44 ` Johannes Berg
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2014-06-27 7:44 UTC (permalink / raw)
To: Ben Greear; +Cc: linux-wireless@vger.kernel.org
On Thu, 2014-06-26 at 13:23 -0700, Ben Greear wrote:
> On 06/26/2014 01:06 PM, Johannes Berg wrote:
> > On Thu, 2014-06-26 at 11:20 -0700, Ben Greear wrote:
> >> Depending on firmware loaded (and/or module options), a different
> >> number of vdev interfaces may be supported.
> >>
> >> Can we remove the const from the "struct ieee80211_iface_limit *limits"
> >> member of ieee80211_iface_combination?
> >
> > No, it would break drivers who actually have a static const for the
> > pointer target.
>
> That could be easily fixed, eh?
Yeah but it'd be stupid :)
> > You don't have to assign something that's const, but you also can't be
> > changing it on the fly after wiphy registration anyway.
>
> This would be done before registration. I like static init
> for defaults, but wanted to poke a few variables at run-time
> based on firmware, etc.
I don't really get it anyway. If you're going to do anything dynamic,
you don't want to be changing a global static value anyway. You want to
be making a copy or so and building it in a dynamic data structure, and
then point to it.
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-27 7:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 18:20 Can we make ieee80211_iface_combination.limits non-const? Ben Greear
2014-06-26 20:06 ` Johannes Berg
2014-06-26 20:23 ` Ben Greear
2014-06-27 7:44 ` Johannes Berg
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).