Return-path: Received: from mail-we0-f181.google.com ([74.125.82.181]:33140 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934191AbaE3Q4j (ORCPT ); Fri, 30 May 2014 12:56:39 -0400 From: Rostislav Lisovy To: Johannes Berg , "John W. Linville" , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michal Sojka , s.sander@nordsys.de, jan-niklas.meier@volkswagen.de, Rostislav Lisovy Subject: [RFC 3/4] nl80211: Do not ignore 5/10MHz wide channels in nl80211_send_chandef() Date: Fri, 30 May 2014 18:56:23 +0200 Message-Id: <1401468984-24575-4-git-send-email-rostislav.lisovy@fel.cvut.cz> (sfid-20140530_185756_983802_99AF5242) In-Reply-To: <1401468984-24575-1-git-send-email-rostislav.lisovy@fel.cvut.cz> References: <1401468984-24575-1-git-send-email-rostislav.lisovy@fel.cvut.cz> Sender: linux-wireless-owner@vger.kernel.org List-ID: Signed-off-by: Rostislav Lisovy --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 79bae31..3a50d1a 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -2281,6 +2281,8 @@ static int nl80211_send_chandef(struct sk_buff *msg, chandef->chan->center_freq)) return -ENOBUFS; switch (chandef->width) { + case NL80211_CHAN_WIDTH_5: + case NL80211_CHAN_WIDTH_10: case NL80211_CHAN_WIDTH_20_NOHT: case NL80211_CHAN_WIDTH_20: case NL80211_CHAN_WIDTH_40: -- 2.0.0.rc4