Lines Matching defs:conf
710 os_memcpy(hapd->conf->qos_map_set, qos_map_set, count);
711 hapd->conf->qos_map_set_len = count;
723 u8 *qos_map_set = hapd->conf->qos_map_set;
724 u8 qos_map_set_len = hapd->conf->qos_map_set_len;
1043 WPA_ASSERT(hapd->conf->wpa_key_mgmt);
1045 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) {
1051 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) {
1058 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_PSK) {
1064 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X) {
1071 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X_SHA384) {
1079 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_SAE) {
1087 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA256) {
1093 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_FILS_SHA384) {
1102 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK_SHA256) {
1108 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X_SHA256) {
1116 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_SAE) {
1123 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B) {
1129 if (hapd->conf->wpa_key_mgmt &
1138 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FILS_SHA256) {
1144 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FILS_SHA384) {
1153 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_OWE) {
1162 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_DPP) {
1191 wpa_ssid_txt(hapd->conf->ssid.ssid,
1192 hapd->conf->ssid.ssid_len));
1199 hapd->conf->wps_state == 0 ? "disabled" :
1200 (hapd->conf->wps_state == 1 ? "not configured" :
1206 if (hapd->conf->wps_state && hapd->conf->wpa &&
1207 hapd->conf->ssid.wpa_passphrase) {
1209 hapd->conf->ssid.wpa_passphrase);
1215 if (hapd->conf->wps_state && hapd->conf->wpa &&
1216 hapd->conf->ssid.wpa_psk &&
1217 hapd->conf->ssid.wpa_psk->group) {
1220 hapd->conf->ssid.wpa_psk->psk, PMK_LEN);
1228 if (hapd->conf->wpa) {
1229 ret = os_snprintf(pos, end - pos, "wpa=%d\n", hapd->conf->wpa);
1235 if (hapd->conf->wpa && hapd->conf->wpa_key_mgmt) {
1249 if (hapd->conf->wpa) {
1251 wpa_cipher_txt(hapd->conf->wpa_group));
1257 if ((hapd->conf->wpa & WPA_PROTO_RSN) && hapd->conf->rsn_pairwise) {
1263 ret = wpa_write_ciphers(pos, end, hapd->conf->rsn_pairwise,
1275 if ((hapd->conf->wpa & WPA_PROTO_WPA) && hapd->conf->wpa_pairwise) {
1281 ret = wpa_write_ciphers(pos, end, hapd->conf->wpa_pairwise,
1302 if (hapd->conf->macaddr_acl != DENY_UNLESS_ACCEPTED)
1306 if (!hostapd_maclist_found(hapd->conf->accept_mac,
1307 hapd->conf->num_accept_mac,
1323 if (hostapd_maclist_found(hapd->conf->deny_mac,
1324 hapd->conf->num_deny_mac, sta->addr,
1396 if (!hapd->conf->mbo_enabled)
1417 ret = hostapd_set_iface(hapd->iconf, hapd->conf, cmd, value);
1505 for (psk = hapd->conf->ssid.wpa_psk; pmk && psk; psk = psk->next) {
1529 struct hostapd_bss_config *conf = hapd->conf;
1532 hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk);
1534 err = hostapd_setup_wpa_psk(conf);
1894 ifname = hapd->conf->iface;
1991 const char *ifname = hapd->conf->iface;
2121 if (hostapd_drv_set_key(hapd->conf->iface, hapd,
2129 return hostapd_drv_set_key(hapd->conf->iface, hapd,
2146 if (hostapd_drv_set_key(hapd->conf->iface, hapd,
2154 return hostapd_drv_set_key(hapd->conf->iface, hapd,
2173 if (hostapd_drv_set_key(hapd->conf->iface, hapd, sta->last_tk_alg,
2179 return hostapd_drv_set_key(hapd->conf->iface, hapd, sta->last_tk_alg,
2228 return hostapd_drv_set_key(hapd->conf->iface, hapd, alg, addr, idx,
2243 hostapd_drv_set_key(hapd->conf->iface, hapd, sta->last_tk_alg,
2267 hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_NONE,
2297 hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_NONE,
2327 hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_NONE,
2691 if (!(hapd->conf->radio_measurements[0] &
3248 &hapd->conf->accept_mac,
3249 &hapd->conf->num_accept_mac, buf + 19))
3255 &hapd->conf->accept_mac,
3256 &hapd->conf->num_accept_mac, buf + 19);
3259 hapd->conf->accept_mac,
3260 hapd->conf->num_accept_mac, reply, reply_size);
3263 &hapd->conf->accept_mac,
3264 &hapd->conf->num_accept_mac);
3269 &hapd->conf->deny_mac,
3270 &hapd->conf->num_deny_mac, buf + 17))
3274 &hapd->conf->deny_mac,
3275 &hapd->conf->num_deny_mac, buf + 17);
3278 hapd->conf->deny_mac,
3279 hapd->conf->num_deny_mac, reply, reply_size);
3282 &hapd->conf->deny_mac,
3283 &hapd->conf->num_deny_mac);
3480 if (hapd->conf->ctrl_interface == NULL)
3483 len = os_strlen(hapd->conf->ctrl_interface) +
3484 os_strlen(hapd->conf->iface) + 2;
3490 hapd->conf->ctrl_interface, hapd->conf->iface);
3523 if (hapd->conf->ctrl_interface == NULL)
3526 pos = os_strstr(hapd->conf->ctrl_interface, "udp:");
3581 os_free(hapd->conf->ctrl_interface);
3582 hapd->conf->ctrl_interface = tmp;
3614 if (hapd->conf->ctrl_interface == NULL)
3617 if (mkdir(hapd->conf->ctrl_interface, S_IRWXU | S_IRWXG) < 0) {
3628 if (hapd->conf->ctrl_interface_gid_set &&
3629 lchown(hapd->conf->ctrl_interface, -1,
3630 hapd->conf->ctrl_interface_gid) < 0) {
3636 if (!hapd->conf->ctrl_interface_gid_set &&
3638 lchown(hapd->conf->ctrl_interface, -1,
3653 if (chmod(hapd->conf->ctrl_interface, S_IRWXU | S_IRWXG) < 0) {
3660 if (os_strlen(hapd->conf->ctrl_interface) + 1 +
3661 os_strlen(hapd->conf->iface) >= sizeof(addr.sun_path))
3712 if (hapd->conf->ctrl_interface_gid_set &&
3713 lchown(fname, -1, hapd->conf->ctrl_interface_gid) < 0) {
3719 if (!hapd->conf->ctrl_interface_gid_set &&
3775 if (hapd->conf->ctrl_interface &&
3776 rmdir(hapd->conf->ctrl_interface) < 0) {
3784 hapd->conf->ctrl_interface,
3928 if (os_strcmp(ifname, hapd->conf->iface) == 0)
3954 src_hapd->conf->wpa);
3956 src_hapd->conf->wpa_key_mgmt) {
3962 src_hapd->conf->wpa_pairwise) {
3965 src_hapd->conf->wpa_pairwise, " ");
3969 src_hapd->conf->rsn_pairwise) {
3972 src_hapd->conf->rsn_pairwise, " ");
3976 src_hapd->conf->ssid.wpa_passphrase) {
3978 src_hapd->conf->ssid.wpa_passphrase);
3980 src_hapd->conf->ssid.wpa_psk_set) {
3982 src_hapd->conf->ssid.wpa_psk->psk, PMK_LEN);
3988 res = hostapd_set_iface(dst_hapd->iconf, dst_hapd->conf, param, value);
4021 struct hostapd_bss_config *conf;
4023 conf = iface->conf->bss[j];
4027 conf->iface,
4028 conf->ctrl_interface ?
4029 conf->ctrl_interface : "N/A");
4032 conf->iface);