Return-path: Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:55873 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752687Ab3F0Mol (ORCPT ); Thu, 27 Jun 2013 08:44:41 -0400 From: Simon Wunderlich To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Mathias Kretschmer , Simon Wunderlich Subject: [PATCHv4 10/18] nl80211: allow 5 and 10 MHz channels for IBSS Date: Thu, 27 Jun 2013 14:44:16 +0200 Message-Id: <1372337064-19254-11-git-send-email-siwu@hrz.tu-chemnitz.de> (sfid-20130627_144539_528516_F9A32A9D) In-Reply-To: <1372337064-19254-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1372337064-19254-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