]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix initialization of ap_table_{max_size,expiration_time}
authorSven Eckelmann <sven@open-mesh.com>
Mon, 17 Dec 2012 15:45:26 +0000 (17:45 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Dec 2012 15:54:21 +0000 (17:54 +0200)
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.

These variables completely disable the code for Overlapping Legacy BSS
Condition by default when they are not correctly initialized. WFA
certification requires this feature and therefore an AP would have
failed the certification process unless they were initialized manually
using the configuration file.

Signed-hostap: Sven Eckelmann <sven@open-mesh.com>
Signed-hostap: Simon Wunderlich <simon@open-mesh.com>

src/ap/ap_config.c

index 3c699f71ec71fb58d953d8e0233e8292ea45a254..25d26e5e77a7022bcde26ac4696a0324910208a4 100644 (file)
@@ -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;
 }