cfg80211: allow setting station parameters in mesh
authorAndrey Yurovsky <andrey@cozybit.com>
Tue, 16 Jun 2009 23:09:37 +0000 (16:09 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:24 +0000 (11:50 -0400)
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

index 2c55d25ed34d7f15881a0a0bc1e1d40a24148ee4..304b3d568e074c8b0f6cf0d6c2b5f8ccde537810 100644 (file)
@@ -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;
        }