From patchwork Fri May 30 16:56:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rostislav Lisovy X-Patchwork-Id: 4272431 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 069DFBEEA7 for ; Fri, 30 May 2014 16:57:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40C9520398 for ; Fri, 30 May 2014 16:57:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AD7620394 for ; Fri, 30 May 2014 16:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933745AbaE3Q5k (ORCPT ); Fri, 30 May 2014 12:57:40 -0400 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 Received: by mail-we0-f181.google.com with SMTP id w61so2272297wes.26 for ; Fri, 30 May 2014 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EULxRr6s43M8UiXZTAfkx6Dnk8TSKazTJWVAbgYusgs=; b=s8R7cvtQEb933nMPoXyETyrJLdXa2Xx6bJ0FMAJ0/rnAWcwvt87CeCdnZdD94dZgNV iqTARMRKCo+4l+PitFs6HJeBdUo9QLDic9PGezvQpqnznxIQhLBYMmt2DqbKYtftQC4t wZDMoVXSjKzoJWinA3RA/MlH/6hbYkdaJNm6mzArTf57qHX2iidhJqubsTOfjtx0OBHf PT+58qCACXwR45iJMwRVbNxg7p2lpAkgByGAzp4pbTO1BM4BS9YBdjLcEsVSLCrgq4l1 febkw9cf9ftBXUaIU9qIx2c/7nebNuTpOFwJBfy+JsFreLXbiH/Hfo/02Q8F23M6WyOh aYPw== X-Received: by 10.194.108.5 with SMTP id hg5mr23612541wjb.57.1401468997956; Fri, 30 May 2014 09:56:37 -0700 (PDT) Received: from c2c-vostro1.felk.cvut.cz ([147.32.86.112]) by mx.google.com with ESMTPSA id k2sm11455218wjq.20.2014.05.30.09.56.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 May 2014 09:56:37 -0700 (PDT) From: Rostislav Lisovy X-Google-Original-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> X-Mailer: git-send-email 2.0.0.rc4 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 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: