From patchwork Mon Mar 21 21:16:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 649021 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2LLcNfx020573 for ; Mon, 21 Mar 2011 21:38:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754471Ab1CUViV (ORCPT ); Mon, 21 Mar 2011 17:38:21 -0400 Received: from smtp-out.google.com ([74.125.121.67]:50677 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754337Ab1CUViP (ORCPT ); Mon, 21 Mar 2011 17:38:15 -0400 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id p2LLcD44002547 for ; Mon, 21 Mar 2011 14:38:14 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1300743494; bh=ls8v9iN9uAzbliyPS+kpv1bso7k=; h=From:Date:Subject:To:Message-Id; b=s5lDNWzO86IdkuP1Flack9CoixGqcqmv0EK+nYgBnG/+p0uuFUPLNv/Euti+LeB2O GLLHXq4DQT1tBVkiyHGtg== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:date:subject:to:message-id:x-system-of-record; b=QxjcM9T8gnYpQC7D4dPy11r1huvuTGZ1OL5iH1nOvoncYDtlGcWd66qgNg2nTgmQG X5rEr94v1bmUPq37kVz4g== Received: from glenhelen.mtv.corp.google.com (glenhelen.mtv.corp.google.com [172.22.72.223]) by kpbe14.cbf.corp.google.com with ESMTP id p2LLcCMb022280 for ; Mon, 21 Mar 2011 14:38:13 -0700 Received: by glenhelen.mtv.corp.google.com (Postfix, from userid 110058) id 991BF1FFB0; Mon, 21 Mar 2011 14:38:12 -0700 (PDT) From: Paul Stewart Date: Mon, 21 Mar 2011 14:16:02 -0700 Subject: [PATCH 2/4] cfg80211: Add station info to station struct To: linux-wireless@vger.kernel.org Message-Id: <20110321213812.991BF1FFB0@glenhelen.mtv.corp.google.com> X-System-Of-Record: true Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Mar 2011 21:38:23 +0000 (UTC) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index b2b9d28..4299a38 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -422,6 +422,7 @@ struct station_parameters { * @STATION_INFO_RX_DROP_MISC: @rx_dropped_misc filled * @STATION_INFO_SIGNAL_AVG: @signal_avg filled * @STATION_INFO_RX_BITRATE: @rxrate fields are filled + * @STATION_INFO_BSS_PARAM: @bss_param filled */ enum station_info_flags { STATION_INFO_INACTIVE_TIME = 1<<0, @@ -439,6 +440,7 @@ enum station_info_flags { STATION_INFO_RX_DROP_MISC = 1<<12, STATION_INFO_SIGNAL_AVG = 1<<13, STATION_INFO_RX_BITRATE = 1<<14, + STATION_INFO_BSS_PARAM = 1<<15, }; /** @@ -473,6 +475,37 @@ struct rate_info { }; /** + * enum station_info_rate_flags - bitrate info flags + * + * Used by the driver to indicate the specific rate transmission + * type for 802.11n transmissions. + * + * @BSS_PARAM_FLAGS_CTS_PROT: whether CTS protection is enabled + * @BSS_PARAM_FLAGS_SHORT_PREAMBLE: whether short preamble is enabled + * @BSS_PARAM_FLAGS_SHORT_SLOT_TIME: whether short slot time is enabled + */ +enum bss_param_flags { + BSS_PARAM_FLAGS_CTS_PROT = 1<<0, + BSS_PARAM_FLAGS_SHORT_PREAMBLE = 1<<1, + BSS_PARAM_FLAGS_SHORT_SLOT_TIME = 1<<2, +}; + +/** + * struct sta_bss_parameters - BSS parameters for the attached station + * + * Information about the currently associated BSS + * + * @flags: bitflag of flags from &enum bss_param_flags + * @dtim_period: DTIM period for the BSS + * @beacon_interval: beacon interval + */ +struct sta_bss_parameters { + u8 flags; + u8 dtim_period; + u16 beacon_interval; +}; + +/** * struct station_info - station information * * Station information filled by driver for get_station() and dump_station. @@ -515,6 +548,7 @@ struct station_info { u32 tx_retries; u32 tx_failed; u32 rx_dropped_misc; + struct sta_bss_parameters bss_param; int generation; };