Return-path: Received: from nick.hrz.tu-chemnitz.de ([134.109.228.11]:59423 "EHLO nick.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753423Ab3F0Q7S (ORCPT ); Thu, 27 Jun 2013 12:59:18 -0400 From: Simon Wunderlich To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Mathias Kretschmer , Simon Wunderlich Subject: [PATCHv5 10/18] nl80211: allow 5 and 10 MHz channels for IBSS Date: Thu, 27 Jun 2013 18:58:52 +0200 Message-Id: <1372352340-20663-12-git-send-email-siwu@hrz.tu-chemnitz.de> (sfid-20130627_185936_868475_CE0C4805) In-Reply-To: <1372352340-20663-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1372352340-20663-1-git-send-email-siwu@hrz.tu-chemnitz.de> Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ebd889d..10755dc 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -6300,6 +6300,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: -- 1.7.10.4