cfg80211: allow setting station parameters in mesh

Previous thread: PCI: improve resource allocation under transparent bridges by Linux Kernel Mailing List on Monday, June 22, 2009 - 2:00 pm. (1 message)

Next thread: mlx4_en: Counting all the dropped packets on the TX side by Linux Kernel Mailing List on Monday, June 22, 2009 - 1:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, June 22, 2009 - 1:59 pm

Gitweb:     http://git.kernel.org/linus/9a5e8bbc8fece7851a2a69a8676a6fd0507bc550
Commit:     9a5e8bbc8fece7851a2a69a8676a6fd0507bc550
Parent:     155cc9e4b1d60161ee53ffaf2c15b9411f086fa7
Author:     Andrey Yurovsky <andrey@cozybit.com>
AuthorDate: Tue Jun 16 16:09:37 2009 -0700
Committer:  John W. Linville <linville@tuxdriver.com>
CommitDate: Fri Jun 19 11:50:24 2009 -0400

    cfg80211: allow setting station parameters in mesh
    
    Mesh Point interfaces can also set parameters, for example plink_open is
    used to manually establish peer links from user-space (currently via
    iw).  Add Mesh Point to the check in nl80211_set_station.
    
    Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 net/wireless/nl80211.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 2c55d25..304b3d5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1688,7 +1688,8 @@ static int nl80211_set_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;
 	}
--

Previous thread: PCI: improve resource allocation under transparent bridges by Linux Kernel Mailing List on Monday, June 22, 2009 - 2:00 pm. (1 message)

Next thread: mlx4_en: Counting all the dropped packets on the TX side by Linux Kernel Mailing List on Monday, June 22, 2009 - 1:59 pm. (1 message)