Home | History | Annotate | Download | only in hostapd

Lines Matching refs:conf

702 	os_memcpy(hapd->conf->qos_map_set, qos_map_set, count);
703 hapd->conf->qos_map_set_len = count;
715 u8 *qos_map_set = hapd->conf->qos_map_set;
716 u8 qos_map_set_len = hapd->conf->qos_map_set_len;
1082 WPA_ASSERT(hapd->conf->wpa_key_mgmt);
1084 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) {
1090 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) {
1097 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_PSK) {
1103 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X) {
1110 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_FT_SAE) {
1119 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK_SHA256) {
1125 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X_SHA256) {
1133 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_SAE) {
1140 if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B) {
1146 if (hapd->conf->wpa_key_mgmt &
1176 wpa_ssid_txt(hapd->conf->ssid.ssid,
1177 hapd->conf->ssid.ssid_len));
1184 hapd->conf->wps_state == 0 ? "disabled" :
1185 (hapd->conf->wps_state == 1 ? "not configured" :
1191 if (hapd->conf->wps_state && hapd->conf->wpa &&
1192 hapd->conf->ssid.wpa_passphrase) {
1194 hapd->conf->ssid.wpa_passphrase);
1200 if (hapd->conf->wps_state && hapd->conf->wpa &&
1201 hapd->conf->ssid.wpa_psk &&
1202 hapd->conf->ssid.wpa_psk->group) {
1205 hapd->conf->ssid.wpa_psk->psk, PMK_LEN);
1213 if (hapd->conf->wpa) {
1214 ret = os_snprintf(pos, end - pos, "wpa=%d\n", hapd->conf->wpa);
1220 if (hapd->conf->wpa && hapd->conf->wpa_key_mgmt) {
1234 if (hapd->conf->wpa) {
1236 wpa_cipher_txt(hapd->conf->wpa_group));
1242 if ((hapd->conf->wpa & WPA_PROTO_RSN) && hapd->conf->rsn_pairwise) {
1248 ret = wpa_write_ciphers(pos, end, hapd->conf->rsn_pairwise,
1260 if ((hapd->conf->wpa & WPA_PROTO_WPA) && hapd->conf->wpa_pairwise) {
1266 ret = wpa_write_ciphers(pos, end, hapd->conf->wpa_pairwise,
1337 if (!hapd->conf->mbo_enabled)
1356 ret = hostapd_set_iface(hapd->iconf, hapd->conf, cmd, value);
1363 hapd->conf->deny_mac,
1364 hapd->conf->num_deny_mac, sta->addr,
1372 } else if (hapd->conf->macaddr_acl == DENY_UNLESS_ACCEPTED &&
1376 hapd->conf->accept_mac,
1377 hapd->conf->num_accept_mac,
1646 ifname = hapd->conf->iface;
1734 const char *ifname = hapd->conf->iface;
2419 if (hapd->conf->ctrl_interface == NULL)
2422 len = os_strlen(hapd->conf->ctrl_interface) +
2423 os_strlen(hapd->conf->iface) + 2;
2429 hapd->conf->ctrl_interface, hapd->conf->iface);
2462 if (hapd->conf->ctrl_interface == NULL)
2465 pos = os_strstr(hapd->conf->ctrl_interface, "udp:");
2520 os_free(hapd->conf->ctrl_interface);
2521 hapd->conf->ctrl_interface = tmp;
2553 if (hapd->conf->ctrl_interface == NULL)
2556 if (mkdir(hapd->conf->ctrl_interface, S_IRWXU | S_IRWXG) < 0) {
2567 if (hapd->conf->ctrl_interface_gid_set &&
2568 chown(hapd->conf->ctrl_interface, -1,
2569 hapd->conf->ctrl_interface_gid) < 0) {
2575 if (!hapd->conf->ctrl_interface_gid_set &&
2577 chown(hapd->conf->ctrl_interface, -1,
2592 if (chmod(hapd->conf->ctrl_interface, S_IRWXU | S_IRWXG) < 0) {
2599 if (os_strlen(hapd->conf->ctrl_interface) + 1 +
2600 os_strlen(hapd->conf->iface) >= sizeof(addr.sun_path))
2651 if (hapd->conf->ctrl_interface_gid_set &&
2652 chown(fname, -1, hapd->conf->ctrl_interface_gid) < 0) {
2658 if (!hapd->conf->ctrl_interface_gid_set &&
2714 if (hapd->conf->ctrl_interface &&
2715 rmdir(hapd->conf->ctrl_interface) < 0) {
2723 hapd->conf->ctrl_interface,
2856 if (os_strcmp(ifname, hapd->conf->iface) == 0)
2882 src_hapd->conf->wpa);
2884 src_hapd->conf->wpa_key_mgmt) {
2890 src_hapd->conf->wpa_pairwise) {
2893 src_hapd->conf->wpa_pairwise, " ");
2897 src_hapd->conf->rsn_pairwise) {
2900 src_hapd->conf->rsn_pairwise, " ");
2904 src_hapd->conf->ssid.wpa_passphrase) {
2906 src_hapd->conf->ssid.wpa_passphrase);
2908 src_hapd->conf->ssid.wpa_psk_set) {
2910 src_hapd->conf->ssid.wpa_psk->psk, PMK_LEN);
2916 res = hostapd_set_iface(dst_hapd->iconf, dst_hapd->conf, param, value);
2949 struct hostapd_bss_config *conf;
2951 conf = iface->conf->bss[j];
2955 conf->iface,
2956 conf->ctrl_interface ?
2957 conf->ctrl_interface : "N/A");
2960 conf->iface);