From patchwork Wed Mar 20 19:13:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Dziedzic X-Patchwork-Id: 2309331 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A1573DF24C for ; Wed, 20 Mar 2013 19:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757368Ab3CTTN1 (ORCPT ); Wed, 20 Mar 2013 15:13:27 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:37301 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756079Ab3CTTN0 (ORCPT ); Wed, 20 Mar 2013 15:13:26 -0400 Received: by mail-ie0-f180.google.com with SMTP id a11so2285164iee.25 for ; Wed, 20 Mar 2013 12:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=VZNMGOs1M/TG8WScNflrHSLou7JVZekG3susqm34OPs=; b=jnEkwlb8FYyJ3eSpRP8eLjIDE71FI8YirZiqmhiyPrruwgHc8K+4rGHgQ2vYZa01rs LsWLmclc5meEgJtaTLanBBGdT9Vm1sjHNxIxdxz+cZk1FwB889F74Qli3/4rYPUizpEg fmK1zmdfhvfhSgF6+xR5DGwYeuaCFow9V8Qfu/avJHvK9FhXA9BP8lQWg9WUsv5k6RpW q96E/wTLlmJysc7mmthW7r7DSOlRbMWLG5gn954z5ZsgTDJJP+BlY3iuOnjYYvjJ6ItA 5NLNZgjwKDdW4GBUyb7ouNZSaPvZf9N4Bc+CkXCR1XoLuVG1PqdiSomre28d4IHtCpT3 uTIQ== MIME-Version: 1.0 X-Received: by 10.50.160.201 with SMTP id xm9mr76723igb.101.1363806806319; Wed, 20 Mar 2013 12:13:26 -0700 (PDT) Received: by 10.42.169.9 with HTTP; Wed, 20 Mar 2013 12:13:26 -0700 (PDT) Date: Wed, 20 Mar 2013 20:13:26 +0100 Message-ID: Subject: [PATCH 1/4] cfg80211: add P2P Notice of Absence attribute From: Janusz Dziedzic To: linux-wireless Cc: Johannes Berg Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add P2P Notice of Absence attribute structure. Signed-off-by: Janusz Dziedzic --- include/linux/ieee80211.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 4cf0c9e..9dc9e1c 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1027,6 +1027,26 @@ enum ieee80211_p2p_attr_id { IEEE80211_P2P_ATTR_MAX }; +/* Notice of Absence attribute - described in P2P spec 4.1.14 */ +/* Typical max value used here */ +#define IEEE80211_P2P_NOA_DESC_MAX 4 + +struct ieee80211_p2p_noa_desc { + u8 count; + __le32 duration; + __le32 interval; + __le32 start_time; +} __packed; + +struct ieee80211_p2p_noa_attr { + u8 index; + u8 oppps_ctwindow; + struct ieee80211_p2p_noa_desc desc[IEEE80211_P2P_NOA_DESC_MAX]; +} __packed; + +#define IEEE80211_P2P_OPPPS_ENABLE_BIT BIT(7) +#define IEEE80211_P2P_OPPPS_CTWINDOW_MASK 0x7F + /** * struct ieee80211_bar - HT Block Ack Request *