From: Simon Wunderlich Date: Mon, 8 Jul 2013 14:55:58 +0000 (+0200) Subject: nl80211: allow 5 and 10 MHz channels for IBSS X-Git-Tag: v3.12-rc1~132^2~297^2^2~56^2~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=bf3726457276c8773ec97da30c6459caf512b22f;p=~emulex%2Finfiniband.git nl80211: allow 5 and 10 MHz channels for IBSS Whether the wiphy supports it or not is already checked, so what is left is to enable these channel types. Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer Signed-off-by: Johannes Berg --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ef4c312cc92..03d4ef95292 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -6355,6 +6355,8 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info) return -EINVAL; switch (ibss.chandef.width) { + case NL80211_CHAN_WIDTH_5: + case NL80211_CHAN_WIDTH_10: case NL80211_CHAN_WIDTH_20_NOHT: break; case NL80211_CHAN_WIDTH_20: