Search Linux Wireless

Re: [PATCH] cfg80211: allow adding/deleting stations on mesh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-06-16 at 11:31 -0700, Andrey Yurovsky wrote:
> Commit b2a151a288 added a check that prevents adding or deleting
> stations on non-AP interfaces.  Adding and deleting stations is
> supported for Mesh Point interfaces, so add Mesh Point to that check as
> well.

Why? Aren't those automatically discovered like IBSS peers?

johannes

> Signed-off-by: Andrey Yurovsky <andrey@xxxxxxxxxxx>
> ---
>  net/wireless/nl80211.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index e18856c..b28c641 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -1763,7 +1763,8 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
>  		goto out_rtnl;
>  
>  	if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
> -	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) {
> +	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
> +	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
>  		err = -EINVAL;
>  		goto out;
>  	}
> @@ -1812,7 +1813,8 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info)
>  		goto out_rtnl;
>  
>  	if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
> -	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) {
> +	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
> +	    dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
>  		err = -EINVAL;
>  		goto out;
>  	}

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux