From patchwork Wed Dec 5 13:44:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 203873 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 7D4532C00B9 for ; Thu, 6 Dec 2012 00:45:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 381E39D1E1; Wed, 5 Dec 2012 08:45:29 -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 WnfxePpL9lRF; Wed, 5 Dec 2012 08:45:29 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 644C39D1EC; Wed, 5 Dec 2012 08:45:24 -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 72C0F9D1EC for ; Wed, 5 Dec 2012 08:45:22 -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 fCRAU7tsQuvw for ; Wed, 5 Dec 2012 08:45:18 -0500 (EST) Received: from ht1.hostedexchange.local (ht1.myhostedexchange.com [69.50.2.37]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "HT1", Issuer "HT1" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 8C5499D1E1 for ; Wed, 5 Dec 2012 08:45:18 -0500 (EST) Received: from sven-desktop.home.narfation.org (77.5.173.25) by ht1.hostedexchange.local (172.16.69.39) with Microsoft SMTP Server (TLS) id 8.3.279.5; Wed, 5 Dec 2012 05:45:16 -0800 From: To: Subject: [PATCH] Fix initialization of ap_table_{max_size,expiration_time} Date: Wed, 5 Dec 2012 14:44:56 +0100 Message-ID: <1354715096-27534-1-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Cc: simon@open-mesh.com, Sven Eckelmann , marek@open-mesh.com 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: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Sven Eckelmann The config says that the default for ap_table_max_size is 255 and the default for ap_table_expiration_time is 60. But the code doesn't reflect the default values mentioned in the sample config file. Signed-off-by: Sven Eckelmann --- src/ap/ap_config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index 3c699f7..25d26e5 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -158,6 +158,9 @@ struct hostapd_config * hostapd_config_defaults(void) conf->ht_capab = HT_CAP_INFO_SMPS_DISABLED; + conf->ap_table_max_size = 255; + conf->ap_table_expiration_time = 60; + return conf; }