aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorAndrey Yurovsky <andrey@cozybit.com>2009-06-16 19:09:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-06-19 11:50:24 -0400
commit9a5e8bbc8fece7851a2a69a8676a6fd0507bc550 (patch)
treedd6b057fdc7ea1c7a83f18b2a47a1746d26d2a1b /net/wireless/nl80211.c
parent155cc9e4b1d60161ee53ffaf2c15b9411f086fa7 (diff)
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>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 2c55d25ed34d..304b3d568e07 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)
1688 goto out_rtnl; 1688 goto out_rtnl;
1689 1689
1690 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP && 1690 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
1691 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN) { 1691 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP_VLAN &&
1692 dev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
1692 err = -EINVAL; 1693 err = -EINVAL;
1693 goto out; 1694 goto out;
1694 } 1695 }