From patchwork Fri Mar 7 13:37:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rostislav Lisovy X-Patchwork-Id: 3791531 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C71129F383 for ; Fri, 7 Mar 2014 13:38:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C95A5201BA for ; Fri, 7 Mar 2014 13:38:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C37C120265 for ; Fri, 7 Mar 2014 13:38:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbaCGNiJ (ORCPT ); Fri, 7 Mar 2014 08:38:09 -0500 Received: from mail-ea0-f170.google.com ([209.85.215.170]:50335 "EHLO mail-ea0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209AbaCGNiI (ORCPT ); Fri, 7 Mar 2014 08:38:08 -0500 Received: by mail-ea0-f170.google.com with SMTP id g15so2311391eak.15 for ; Fri, 07 Mar 2014 05:38:06 -0800 (PST) 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=tWKeBVn8ZeHmVRZFKeO//CFfJiGTIVpQdeOzK0gPMYM=; b=SbDqlCxZ1blZpjJOXqK3dqO/IMBFIg27Xt5ng2RP1+iu5O9hj/HiZkxZ6adc9pwgXs fRR0MYWGqwf2lFyIBcFLhyP0ap6fIIguPhgQ7u+fxQB1uL4B8wKgK46lEzEjhOhn/S/3 FCfUiDr++tAKdsCDOxcqFmOrbGEhhd2F4eaaBxxM/lzcUTi2Dk8PjhvaJrObB3KvS5KA cf2J+HB+0B53YgrZQ0mCae1fBj5gneiqz+/80gaoazf13WxHNFCLEsg9qf1yl+Ugl64Z me9hvY1EyWY32CREQyUceclmjyFFq6w8N2q85/EeJirXcYBqchJOCThm0S14QODmTDJL YNfg== X-Received: by 10.15.111.206 with SMTP id cj54mr19214084eeb.8.1394199486923; Fri, 07 Mar 2014 05:38:06 -0800 (PST) Received: from c2c-vostro1.felk.cvut.cz ([147.32.86.166]) by mx.google.com with ESMTPSA id 48sm6764355eee.2.2014.03.07.05.38.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Mar 2014 05:38:06 -0800 (PST) From: Rostislav Lisovy To: Johannes Berg , linux-wireless@vger.kernel.org Cc: Michal Sojka , s.sander@nordsys.de, jan-niklas.meier@volkswagen.de Subject: [RFC PATCH 3/8] cfg80211: Add attributes describing channel bandwidth Date: Fri, 7 Mar 2014 14:37:50 +0100 Message-Id: <1394199475-5208-4-git-send-email-rostislav.lisovy@fel.cvut.cz> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: <1394199475-5208-1-git-send-email-rostislav.lisovy@fel.cvut.cz> References: <1394199475-5208-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=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Since channels with frequencies ranging from 5850 to 5925 are used with 5/10 MHz channels according to IEEE 802.11p, we need a way how to keep the information about the forbidden bandwidths. Signed-off-by: Rostislav Lisovy --- include/net/cfg80211.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index b1f84b0..f5ecd6c 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -109,6 +109,10 @@ enum ieee80211_band { * channel as the control or any of the secondary channels. * This may be due to the driver or due to regulatory bandwidth * restrictions. + * @IEEE80211_CHAN_NO_20MHZ: 20 MHz bandwidth is not permitted + * on this channel. + * @IEEE80211_CHAN_NO_10MHZ: 10 MHz bandwidth is not permitted + * on this channel. */ enum ieee80211_channel_flags { IEEE80211_CHAN_DISABLED = 1<<0, @@ -120,6 +124,8 @@ enum ieee80211_channel_flags { IEEE80211_CHAN_NO_OFDM = 1<<6, IEEE80211_CHAN_NO_80MHZ = 1<<7, IEEE80211_CHAN_NO_160MHZ = 1<<8, + IEEE80211_CHAN_NO_20MHZ = 1<<9, + IEEE80211_CHAN_NO_10MHZ = 1<<10, }; #define IEEE80211_CHAN_NO_HT40 \