From patchwork Mon Nov 1 11:52:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luciano Coelho X-Patchwork-Id: 294262 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 oA1CQ0rb000448 for ; Mon, 1 Nov 2010 12:26:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757444Ab0KAMZ7 (ORCPT ); Mon, 1 Nov 2010 08:25:59 -0400 Received: from mgw-da01.nokia.com ([147.243.128.24]:26080 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753722Ab0KAMZ7 (ORCPT ); Mon, 1 Nov 2010 08:25:59 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 01 Nov 2010 12:26:00 +0000 (UTC) X-Greylist: delayed 2020 seconds by postgrey-1.27 at vger.kernel.org; Mon, 01 Nov 2010 08:25:58 EDT Received: from localhost.localdomain (chilepepper.research.nokia.com [172.21.50.167]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oA1BqGcE020116 for ; Mon, 1 Nov 2010 13:52:18 +0200 From: Luciano Coelho To: linux-wireless@vger.kernel.org Subject: [RFC 02/15] cfg80211: add periodic scan request structure Date: Mon, 1 Nov 2010 13:52:03 +0200 Message-Id: <1288612336-2830-3-git-send-email-luciano.coelho@nokia.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1288612336-2830-1-git-send-email-luciano.coelho@nokia.com> References: <1288612336-2830-1-git-send-email-luciano.coelho@nokia.com> X-Nokia-AV: Clean Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 2a7936d..84518cc 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -719,6 +719,18 @@ struct cfg80211_scan_request { }; /** + * struct cfg80211_periodic_request - periodic scan request description + * + * @wiphy: the wiphy this was for + * @dev: the interface + */ +struct cfg80211_periodic_request { + /* internal */ + struct wiphy *wiphy; + struct net_device *dev; +}; + +/** * enum cfg80211_signal_type - signal type * * @CFG80211_SIGNAL_TYPE_NONE: no signal strength information available diff --git a/net/wireless/core.h b/net/wireless/core.h index 2d1d4c7..bf4e348 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h @@ -60,6 +60,7 @@ struct cfg80211_registered_device { struct rb_root bss_tree; u32 bss_generation; struct cfg80211_scan_request *scan_req; /* protected by RTNL */ + struct cfg80211_periodic_request *periodic_req; /* protected by RTNL */ unsigned long suspend_at; struct work_struct scan_done_wk;