From patchwork Mon Nov 25 19:16:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 294057 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 39DA62C00BC for ; Tue, 26 Nov 2013 06:17:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id DDC389C163; Mon, 25 Nov 2013 14:17:08 -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 MJvgCPQzdm2x; Mon, 25 Nov 2013 14:17:08 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 795479C15F; Mon, 25 Nov 2013 14:16:44 -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 5C3339C146 for ; Mon, 25 Nov 2013 14:16:43 -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 9IIt2LDFXm+T for ; Mon, 25 Nov 2013 14:16:38 -0500 (EST) Received: from mail-ea0-f175.google.com (mail-ea0-f175.google.com [209.85.215.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id D44869C14D for ; Mon, 25 Nov 2013 14:16:32 -0500 (EST) Received: by mail-ea0-f175.google.com with SMTP id z10so2778601ead.34 for ; Mon, 25 Nov 2013 11:16:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lnapQTw1oxebbcL3VPbHM1jbTeOfoxgq8dCGjUKq7A0=; b=5naO8/3vadRIVtdTLEPL4IuCBRWX1PfxCLfsaMY1EnjBYG9l3V1yCc6rl95tWcTTzN A9ztZq8BoHRq57fCWBYqKkGtXhwrKT//ciBzdBiVdWCFmF040SaFjEgH1RnHFmkJJJCU zyiV6CtCy8+cqR/tZh0hBuNHFufmi4dp6yzx4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lnapQTw1oxebbcL3VPbHM1jbTeOfoxgq8dCGjUKq7A0=; b=Z5H2VlmN8DaaPoklSxoWhcEDNKdwdhJGUQYWf6GGPUwuZLCz5lR7y90cGO5nSgt04o EqQbivPbpdOiiYUk7Xnq553bFyTsnJGjBJe8EDG9EEsAFUItllk9b8+tXzD20ceOWMaM kVuD/zNiTeKomd3/2v9nLkRjAxS3gXC6eL2ZzZ1MxmRO7ym7/s4o3AQWgKK3ExpWL5iC YZI0l8FZ68gqAJyzw2DxyIvNnVlQBABjmuKpmDcA0XzbvH7pEafohbS4MKIddeg8yJDq qYbsR9pCq0IAMUIz/Og/BMZEW4RO1tazYzCvNJwHtN7QIda3cgEvuYdhk4GuUvVTFM9d aq4Q== X-Gm-Message-State: ALoCoQnMvcDfYOdohonOEjq2blwQ8D0fTIlNNxS6S2HH28kSDwW53b5oZrdNuitV4AwkmEH9EehPRHOV3dGDaSAhUZP+iSrCkmQbJKRtJPaLVfTPKrsNZ5o= X-Received: by 10.14.205.8 with SMTP id i8mr37885327eeo.19.1385406990525; Mon, 25 Nov 2013 11:16:30 -0800 (PST) Received: from localhost.localdomain (host-62-141-204-146.swidnica.mm.pl. [62.141.204.146]) by mx.google.com with ESMTPSA id j46sm1652678eew.18.2013.11.25.11.16.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 11:16:29 -0800 (PST) From: Janusz Dziedzic To: hostap@lists.shmoo.com Subject: [PATCH 3/4] hostapd: make hostapd_set_freq_params public Date: Mon, 25 Nov 2013 20:16:14 +0100 Message-Id: <1385406975-27087-3-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1385406975-27087-1-git-send-email-janusz.dziedzic@tieto.com> References: <1385406975-27087-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com Cc: j@w1.fi X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 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 Signed-hostap: Janusz Dziedzic --- src/ap/ap_drv_ops.c | 10 +++++----- src/ap/ap_drv_ops.h | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index 0dc0600..09b5f68 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -464,11 +464,11 @@ int hostapd_flush(struct hostapd_data *hapd) } -static int hostapd_set_freq_params(struct hostapd_freq_params *data, int mode, - int freq, int channel, int ht_enabled, - int vht_enabled, int sec_channel_offset, - int vht_oper_chwidth, int center_segment0, - int center_segment1, u32 vht_caps) +int hostapd_set_freq_params(struct hostapd_freq_params *data, int mode, + int freq, int channel, int ht_enabled, + int vht_enabled, int sec_channel_offset, + int vht_oper_chwidth, int center_segment0, + int center_segment1, u32 vht_caps) { int tmp; diff --git a/src/ap/ap_drv_ops.h b/src/ap/ap_drv_ops.h index 1eab939..b5f6a02 100644 --- a/src/ap/ap_drv_ops.h +++ b/src/ap/ap_drv_ops.h @@ -14,6 +14,7 @@ struct wpa_bss_params; struct wpa_driver_scan_params; struct ieee80211_ht_capabilities; struct ieee80211_vht_capabilities; +struct hostapd_freq_params; u32 hostapd_sta_flags_to_drv(u32 flags); int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, @@ -105,6 +106,11 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface, int mode, int freq, int channel, int ht_enabled, int vht_enabled, int sec_channel_offset, int vht_oper_chwidth, int center_segment0, int center_segment1); +int hostapd_set_freq_params(struct hostapd_freq_params *data, int mode, + int freq, int channel, int ht_enabled, + int vht_enabled, int sec_channel_offset, + int vht_oper_chwidth, int center_segment0, + int center_segment1, u32 vht_caps); #include "drivers/driver.h"