Lines Matching defs:bss
29 static void hostapd_config_free_vlan(struct hostapd_bss_config *bss)
33 vlan = bss->vlan;
41 bss->vlan = NULL;
45 void hostapd_config_defaults_bss(struct hostapd_bss_config *bss)
47 bss->logger_syslog_level = HOSTAPD_LEVEL_INFO;
48 bss->logger_stdout_level = HOSTAPD_LEVEL_INFO;
49 bss->logger_syslog = (unsigned int) -1;
50 bss->logger_stdout = (unsigned int) -1;
52 bss->auth_algs = WPA_AUTH_ALG_OPEN | WPA_AUTH_ALG_SHARED;
54 bss->wep_rekeying_period = 300;
56 bss->broadcast_key_idx_min = 1;
57 bss->broadcast_key_idx_max = 2;
58 bss->eap_reauth_period = 3600;
60 bss->wpa_group_rekey = 600;
61 bss->wpa_gmk_rekey = 86400;
62 bss->wpa_key_mgmt = WPA_KEY_MGMT_PSK;
63 bss->wpa_pairwise = WPA_CIPHER_TKIP;
64 bss->wpa_group = WPA_CIPHER_TKIP;
65 bss->rsn_pairwise = 0;
67 bss->max_num_sta = MAX_STA_COUNT;
69 bss->dtim_period = 2;
71 bss->radius_server_auth_port = 1812;
72 bss->ap_max_inactivity = AP_MAX_INACTIVITY;
73 bss->eapol_version = EAPOL_VERSION;
75 bss->max_listen_interval = 65535;
78 bss->assoc_sa_query_max_timeout = 1000;
79 bss->assoc_sa_query_retry_timeout = 201;
83 bss->eap_fast_prov = 3;
84 bss->pac_key_lifetime = 7 * 24 * 60 * 60;
85 bss->pac_key_refresh_time = 1 * 24 * 60 * 60;
93 struct hostapd_bss_config *bss;
106 bss = os_zalloc(sizeof(*bss));
107 if (conf == NULL || bss == NULL) {
111 os_free(bss);
115 bss->radius = os_zalloc(sizeof(*bss->radius));
116 if (bss->radius == NULL) {
118 os_free(bss);
122 hostapd_config_defaults_bss(bss);
125 conf->bss = bss;
463 hostapd_config_free_bss(&conf->bss[i]);
464 os_free(conf->bss);