* [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE.
@ 2009-05-27 4:39 David Miller
2009-05-28 7:27 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-05-27 4:39 UTC (permalink / raw)
To: netdev; +Cc: kay.sievers, greg
It's going away. Just leave the constant "20" here so that
behavior doesn't change.
Signed-off-by: David S. Miller <davem@davemloft.net>
---
net/wireless/nl80211.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 56d729c..4b4d3c8 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -57,7 +57,7 @@ static int get_drv_dev_by_info_ifindex(struct nlattr **attrs,
static struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] __read_mostly = {
[NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
[NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING,
- .len = BUS_ID_SIZE-1 },
+ .len = 20-1 },
[NL80211_ATTR_WIPHY_TXQ_PARAMS] = { .type = NLA_NESTED },
[NL80211_ATTR_WIPHY_FREQ] = { .type = NLA_U32 },
[NL80211_ATTR_WIPHY_CHANNEL_TYPE] = { .type = NLA_U32 },
--
1.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE.
2009-05-27 4:39 [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE David Miller
@ 2009-05-28 7:27 ` Marcel Holtmann
2009-05-28 8:08 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2009-05-28 7:27 UTC (permalink / raw)
To: David Miller; +Cc: netdev, kay.sievers, greg, Johannes Berg
Hi Dave,
> It's going away. Just leave the constant "20" here so that
> behavior doesn't change.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
> ---
> net/wireless/nl80211.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index 56d729c..4b4d3c8 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -57,7 +57,7 @@ static int get_drv_dev_by_info_ifindex(struct nlattr **attrs,
> static struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] __read_mostly = {
> [NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
> [NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING,
> - .len = BUS_ID_SIZE-1 },
> + .len = 20-1 },
> [NL80211_ATTR_WIPHY_TXQ_PARAMS] = { .type = NLA_NESTED },
> [NL80211_ATTR_WIPHY_FREQ] = { .type = NLA_U32 },
> [NL80211_ATTR_WIPHY_CHANNEL_TYPE] = { .type = NLA_U32 },
this patch is actually wrong. You should remove the .len value all
together since the phy name has no limit anymore and so shouldn't the
netlink API.
Please remember to CC Johannes or John on these changes.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE.
2009-05-28 7:27 ` Marcel Holtmann
@ 2009-05-28 8:08 ` David Miller
2009-05-28 9:33 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-05-28 8:08 UTC (permalink / raw)
To: marcel; +Cc: netdev, kay.sievers, greg, johannes
From: Marcel Holtmann <marcel@holtmann.org>
Date: Thu, 28 May 2009 09:27:23 +0200
>> @@ -57,7 +57,7 @@ static int get_drv_dev_by_info_ifindex(struct nlattr **attrs,
>> static struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] __read_mostly = {
>> [NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
>> [NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING,
>> - .len = BUS_ID_SIZE-1 },
>> + .len = 20-1 },
>> [NL80211_ATTR_WIPHY_TXQ_PARAMS] = { .type = NLA_NESTED },
>> [NL80211_ATTR_WIPHY_FREQ] = { .type = NLA_U32 },
>> [NL80211_ATTR_WIPHY_CHANNEL_TYPE] = { .type = NLA_U32 },
>
> this patch is actually wrong.
It cannot be right or wrong, it is merely replacing an existing value
with the constant equivalent. It is a change which does absolutely
nothing.
> You should remove the .len value all together since the phy name has
> no limit anymore and so shouldn't the netlink API.
Anyone is free to make that improvement. But that's now what
I am trying to accomplish here.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE.
2009-05-28 8:08 ` David Miller
@ 2009-05-28 9:33 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2009-05-28 9:33 UTC (permalink / raw)
To: David Miller; +Cc: netdev, kay.sievers, greg, johannes
Hi Dave,
> >> @@ -57,7 +57,7 @@ static int get_drv_dev_by_info_ifindex(struct nlattr **attrs,
> >> static struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] __read_mostly = {
> >> [NL80211_ATTR_WIPHY] = { .type = NLA_U32 },
> >> [NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING,
> >> - .len = BUS_ID_SIZE-1 },
> >> + .len = 20-1 },
> >> [NL80211_ATTR_WIPHY_TXQ_PARAMS] = { .type = NLA_NESTED },
> >> [NL80211_ATTR_WIPHY_FREQ] = { .type = NLA_U32 },
> >> [NL80211_ATTR_WIPHY_CHANNEL_TYPE] = { .type = NLA_U32 },
> >
> > this patch is actually wrong.
>
> It cannot be right or wrong, it is merely replacing an existing value
> with the constant equivalent. It is a change which does absolutely
> nothing.
okay, fair enough. It was required when BUS_ID_SIZE was limited and with
the removal of that, the length limitation here should be also removed.
> > You should remove the .len value all together since the phy name has
> > no limit anymore and so shouldn't the netlink API.
>
> Anyone is free to make that improvement. But that's now what
> I am trying to accomplish here.
That is again fair enough, but you could just go ahead and remove it ;)
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-28 9:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 4:39 [PATCH 5/6]: nl80211: Eliminate reference to BUS_ID_SIZE David Miller
2009-05-28 7:27 ` Marcel Holtmann
2009-05-28 8:08 ` David Miller
2009-05-28 9:33 ` Marcel Holtmann
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).