From patchwork Tue Nov 8 14:11:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arik Nemtsov X-Patchwork-Id: 124369 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 574A3B6F0E for ; Wed, 9 Nov 2011 01:12:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 0D0CF9D20B; Tue, 8 Nov 2011 09:12:09 -0500 (EST) 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 k-FyvlNjH6zO; Tue, 8 Nov 2011 09:12:08 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3B20C17C007; Tue, 8 Nov 2011 09:11:37 -0500 (EST) 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 48EDE17C007 for ; Tue, 8 Nov 2011 09:11:36 -0500 (EST) 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 1RH4+Q++OB79 for ; Tue, 8 Nov 2011 09:11:31 -0500 (EST) Received: from mail-ww0-f48.google.com (mail-ww0-f48.google.com [74.125.82.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 54C0E9D1EF for ; Tue, 8 Nov 2011 09:11:30 -0500 (EST) Received: by mail-ww0-f48.google.com with SMTP id 9so484235wwg.5 for ; Tue, 08 Nov 2011 06:11:30 -0800 (PST) Received: by 10.216.229.93 with SMTP id g71mr4294780weq.44.1320761490073; Tue, 08 Nov 2011 06:11:30 -0800 (PST) Received: from localhost.localdomain (46-116-162-41.bb.netvision.net.il. [46.116.162.41]) by mx.google.com with ESMTPS id en13sm1839901wbb.22.2011.11.08.06.11.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Nov 2011 06:11:29 -0800 (PST) From: Arik Nemtsov To: hostap@lists.shmoo.com Subject: [PATCH v3 3/3] driver_nl80211: send probe response data to kernel Date: Tue, 8 Nov 2011 16:11:18 +0200 Message-Id: <1320761478-29133-3-git-send-email-arik@wizery.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1320761478-29133-1-git-send-email-arik@wizery.com> References: <1320761478-29133-1-git-send-email-arik@wizery.com> Cc: Arik Nemtsov 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: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Pass the raw probe response template to kernel via netlink using the set_ap() driver callback. The data is sent as one of the beacon parameters. Signed-off-by: Guy Eilam Signed-off-by: Arik Nemtsov --- v1->3: send probe response data to kernel the set_ap() driver callback src/drivers/driver_nl80211.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 1e66c72..7a9a3f8 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4357,6 +4357,9 @@ static int wpa_driver_nl80211_set_ap(void *priv, NLA_PUT_U32(msg, NL80211_ATTR_DTIM_PERIOD, params->dtim_period); NLA_PUT(msg, NL80211_ATTR_SSID, params->ssid_len, params->ssid); + if (params->proberesp_len) + NLA_PUT(msg, NL80211_ATTR_PROBE_RESP, params->proberesp_len, + params->proberesp); switch (params->hide_ssid) { case NO_SSID_HIDING: NLA_PUT_U32(msg, NL80211_ATTR_HIDDEN_SSID,