[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1265978993.15701.0.camel@jlt3.sipsolutions.net>
Date: Fri, 12 Feb 2010 13:49:53 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Thadeu Lima de Souza Cascardo <cascardo@...oscopio.com>
Cc: linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
Simon Raffeiner <sturmflut@...berbiber.de>,
Andrey Yurovsky <andrey@...ybit.com>,
Javier Cardona <javier@...ybit.com>
Subject: Re: [PATCH] nl80211: does not allow NEW_STATION and DEL_STATION
for mesh
On Fri, 2010-02-12 at 10:37 -0200, Thadeu Lima de Souza Cascardo wrote:
> As discussed in linux-wireless mailint list, adding and removing
> stations for mesh topologies is not necessary. Since doing it triggers
> bugs, the sugestion was to simply disable it.
>
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@...oscopio.com>
> Cc: Johannes Berg <johannes@...solutions.net>
> Cc: Simon Raffeiner <sturmflut@...berbiber.de>
> Cc: Andrey Yurovsky <andrey@...ybit.com>
> Cc: Javier Cardona <javier@...ybit.com>
> ---
> net/wireless/nl80211.c | 47
> +++++++++++------------------------------------
> 1 files changed, 11 insertions(+), 36 deletions(-)
>
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index 5b79ecf..176b8fe 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -2001,6 +2001,10 @@ static int nl80211_new_station(struct sk_buff
> *skb, struct genl_info *info)
>
> memset(¶ms, 0, sizeof(params));
>
> + if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
> + dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN)
> + return -EINVAL;
> +
> if (!info->attrs[NL80211_ATTR_MAC])
> return -EINVAL;
You clearly didn't ever try this code.
johannes
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists