From patchwork Wed Dec 5 13:44:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix initialization of ap_table_{max_size,expiration_time} Date: Wed, 05 Dec 2012 03:44:56 -0000 From: Sven Eckelmann X-Patchwork-Id: 203873 Message-Id: <1354715096-27534-1-git-send-email-sven@open-mesh.com> To: Cc: simon@open-mesh.com, Sven Eckelmann , marek@open-mesh.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; }