From patchwork Mon Apr 23 08:58:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jouni Malinen X-Patchwork-Id: 154352 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 0FBC2B6EEB for ; Mon, 23 Apr 2012 18:58:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3E8CA9CEB9; Mon, 23 Apr 2012 04:58:36 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jiQKgDBlAhk8; Mon, 23 Apr 2012 04:58:36 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2A3BF9D0C5; Mon, 23 Apr 2012 04:58:32 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E7FC29D089 for ; Mon, 23 Apr 2012 04:58:30 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SaILeGz9i4Ur for ; Mon, 23 Apr 2012 04:58:26 -0400 (EDT) Received: from jmaline2.user.openhosting.com (kvm.w1.fi [128.177.28.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 1426C9CEB9 for ; Mon, 23 Apr 2012 04:58:25 -0400 (EDT) Received: from jm (a91-155-81-182.elisa-laajakaista.fi [91.155.81.182]) (authenticated bits=0) by jmaline2.user.openhosting.com (8.13.8/8.13.8) with ESMTP id q3N8lEqT028782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 23 Apr 2012 04:47:16 -0400 Received: by jm (sSMTP sendmail emulation); Mon, 23 Apr 2012 11:58:20 +0300 Date: Mon, 23 Apr 2012 11:58:20 +0300 From: Jouni Malinen To: hostap@lists.shmoo.com Subject: Re: [RFC 1/3] wpa_supplicant: Define 20/40 BSS Coexistence IEs Message-ID: <20120423085820.GA6369@w1.fi> Mail-Followup-To: hostap@lists.shmoo.com References: <1334756650-10624-1-git-send-email-rmanohar@qca.qualcomm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1334756650-10624-1-git-send-email-rmanohar@qca.qualcomm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com On Wed, Apr 18, 2012 at 07:14:08PM +0530, Rajkumar Manoharan wrote: > This patch defines 20/40 BSS Intolerant Channel Report IE > (IEEE 802.11-2012 8.4.2.60) and 20/40 BSS Coexistence element > (IEEE 802.11-2012 8.4.2.62). This looks mostly fine - a bit cleaned up version below (remove unrelated whitespace change and update references to use 802.11-2012): diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 3bef006..22a5c3e 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -254,6 +254,7 @@ #define WLAN_ACTION_VENDOR_SPECIFIC 127 /* Public action codes */ +#define WLAN_PA_20_40_BSS_COEX 0 #define WLAN_PA_VENDOR_SPECIFIC 9 #define WLAN_PA_GAS_INITIAL_REQ 10 #define WLAN_PA_GAS_INITIAL_RESP 11 @@ -915,4 +916,25 @@ enum wnm_action { #define WNM_BSS_TM_REQ_BSS_TERMINATION_INCLUDED BIT(3) #define WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT BIT(4) +/* IEEE Std 802.11-2012, 8.4.2.62 20/40 BSS Coexistence element */ +#define WLAN_20_40_BSS_COEX_INFO_REQ BIT(0) +#define WLAN_20_40_BSS_COEX_40MHZ_INTOL BIT(1) +#define WLAN_20_40_BSS_COEX_20MHZ_WIDTH_REQ BIT(2) +#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_REQ BIT(3) +#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_GRANT BIT(4) + +struct ieee80211_2040_bss_coex_ie { + u8 element_id; + u8 length; + u8 coex_info; +} STRUCT_PACKED; + +/* IEEE Std 802.11-2012, 8.4.2.60 - 20/40 BSS Intolerant Channel Report */ +struct ieee80211_2040_intol_chan_report { + u8 element_id; + u8 length; + u8 op_class; + u8 variable[0]; /* Channel List */ +} STRUCT_PACKED; + #endif /* IEEE802_11_DEFS_H */