mac80211: allow setting supported rates on mesh peers
authorJavier Cardona <javier@cozybit.com>
Tue, 3 May 2011 23:57:18 +0000 (16:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 May 2011 18:50:36 +0000 (14:50 -0400)
This is necessary for userspace managed stations.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c

index fc3c95d925464f0bf58a95247545458c1c8916a3..95dd5832e719c582cce256436bda810fc8a88735 100644 (file)
@@ -2324,8 +2324,6 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info)
                        err = -EINVAL;
                if (params.listen_interval >= 0)
                        err = -EINVAL;
-               if (params.supported_rates)
-                       err = -EINVAL;
                if (params.sta_flags_mask &
                                ~(BIT(NL80211_STA_FLAG_AUTHENTICATED) |
                                  BIT(NL80211_STA_FLAG_MFP) |