From patchwork Mon Nov 1 11:52:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luciano Coelho X-Patchwork-Id: 294282 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 oA1CQ6n7000464 for ; Mon, 1 Nov 2010 12:26:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757489Ab0KAM0E (ORCPT ); Mon, 1 Nov 2010 08:26:04 -0400 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]:26097 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755755Ab0KAMZ7 (ORCPT ); Mon, 1 Nov 2010 08:25:59 -0400 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 oA1BqGcO020116 for ; Mon, 1 Nov 2010 13:52:28 +0200 From: Luciano Coelho To: linux-wireless@vger.kernel.org Subject: [RFC 12/15] cfg80211: add ssid support to periodic scan Date: Mon, 1 Nov 2010 13:52:13 +0200 Message-Id: <1288612336-2830-13-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 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:06 +0000 (UTC) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 218e59f..3ac6fc9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -721,12 +721,16 @@ struct cfg80211_scan_request { /** * struct cfg80211_periodic_request - periodic scan request description * + * @ssids: SSIDs to report (other SSIDs will be filtered out) + * @n_ssids: number of SSIDs * @n_channels: total number of channels to scan * @wiphy: the wiphy this was for * @dev: the interface * @channels: channels to scan */ struct cfg80211_periodic_request { + struct cfg80211_ssid *ssids; + int n_ssids; u32 n_channels; /* internal */ @@ -1436,6 +1440,8 @@ struct ieee80211_txrx_stypes { * @max_scan_ie_len: maximum length of user-controlled IEs device can * add to probe request frames transmitted during a scan, must not * include fixed IEs like supported rates + * @max_periodic_ssids: maximum number of SSIDs the device can use in + * periodic scans * @coverage_class: current coverage class * @fw_version: firmware version for ethtool reporting * @hw_version: hardware version for ethtool reporting @@ -1472,6 +1478,8 @@ struct wiphy { u8 max_scan_ssids; u16 max_scan_ie_len; + u8 max_periodic_ssids; + int n_cipher_suites; const u32 *cipher_suites;