aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2013-06-28 04:39:58 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-07-16 02:57:56 -0400
commit803768f54ef84cb4aaac0b51274b11b31885588c (patch)
tree0f6deb7fe4e8c3532f5e5af400d4d29c47210001 /net/wireless
parent50ac6607845755e594c8a39b9c6a00d1c9b48ea4 (diff)
nl80211: enable HT overrides for ibss
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index a044762f5ea3..0492478ab74e 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -6346,6 +6346,19 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info)
6346 return err; 6346 return err;
6347 } 6347 }
6348 6348
6349 if (info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK])
6350 memcpy(&ibss.ht_capa_mask,
6351 nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK]),
6352 sizeof(ibss.ht_capa_mask));
6353
6354 if (info->attrs[NL80211_ATTR_HT_CAPABILITY]) {
6355 if (!info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK])
6356 return -EINVAL;
6357 memcpy(&ibss.ht_capa,
6358 nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]),
6359 sizeof(ibss.ht_capa));
6360 }
6361
6349 if (info->attrs[NL80211_ATTR_MCAST_RATE] && 6362 if (info->attrs[NL80211_ATTR_MCAST_RATE] &&
6350 !nl80211_parse_mcast_rate(rdev, ibss.mcast_rate, 6363 !nl80211_parse_mcast_rate(rdev, ibss.mcast_rate,
6351 nla_get_u32(info->attrs[NL80211_ATTR_MCAST_RATE]))) 6364 nla_get_u32(info->attrs[NL80211_ATTR_MCAST_RATE])))