nl80211: Fix HT_IBSS feature check in ibss_join
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Thu, 29 Nov 2012 17:37:22 +0000 (18:37 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Nov 2012 17:44:57 +0000 (18:44 +0100)
There is a standalone if, seems to be a regression of commit
"nl80211/cfg80211: add VHT MCS support".

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 0e7e8d533d984bf17c9993a91ab87a3773fd8b19..4a719770eaaf432c841e25799df3de48600e178e 100644 (file)
@@ -5502,6 +5502,7 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info)
                return -EINVAL;
        if (ibss.chandef.width != NL80211_CHAN_WIDTH_20_NOHT &&
            !(rdev->wiphy.features & NL80211_FEATURE_HT_IBSS))
+               return -EINVAL;
 
        ibss.channel_fixed = !!info->attrs[NL80211_ATTR_FREQ_FIXED];
        ibss.privacy = !!info->attrs[NL80211_ATTR_PRIVACY];