Lines Matching refs:conf

328 	wpa_s->conf->filter_ssids = 1;  in add_interface()
329 wpa_s->conf->ap_scan = 1; in add_interface()
662 wpa_printf(MSG_DEBUG, "Enable interface %s", hapd_iface->conf->bss[0]->iface); in hostapd_enable_iface_cb()
666 bss->conf->start_disabled = 0; in hostapd_enable_iface_cb()
668 if (hostapd_config_check(hapd_iface->conf, 1) < 0) { in hostapd_enable_iface_cb()
674 bss->l2 = l2_packet_init(bss->conf->iface, bss->conf->bssid, ETH_P_EAPOL, in hostapd_enable_iface_cb()
718 wpa_printf(MSG_DEBUG, "Interface %s disabled", hapd_iface->bss[0]->conf->iface); in hostapd_disable_iface_cb()
723 hostapd_config_free(hapd_iface->conf); in hostapd_disable_iface_cb()
724 hapd_iface->conf = hapd_iface->interfaces->config_read_cb(hapd_iface->config_fname); in hostapd_disable_iface_cb()
727 hapd->iconf = hapd_iface->conf; in hostapd_disable_iface_cb()
728 hapd->conf = hapd_iface->conf->bss[j]; in hostapd_disable_iface_cb()
729 hapd->driver = hapd_iface->conf->driver; in hostapd_disable_iface_cb()
769 struct hostapd_bss_config *conf = hapd->conf; in hostapd_driver_init() local
770 u8 *b = conf->bssid; in hostapd_driver_init()
802 params.ifname = hapd->conf->iface; in hostapd_driver_init()
804 params.use_pae_group_addr = hapd->conf->use_pae_group_addr; in hostapd_driver_init()
813 if (bss->conf->bridge[0]) { in hostapd_driver_init()
814 params.bridge[i] = bss->conf->bridge; in hostapd_driver_init()
849 triggs = wpa_get_wowlan_triggers(conf->wowlan_triggers, &capa); in hostapd_driver_init()
863 struct hostapd_config *conf; in hostapd_config_read2() local
884 conf = hostapd_config_defaults(); in hostapd_config_read2()
885 if (conf == NULL) { in hostapd_config_read2()
889 conf->wmm_ac_params[0] = ac_be; in hostapd_config_read2()
890 conf->wmm_ac_params[1] = ac_bk; in hostapd_config_read2()
891 conf->wmm_ac_params[2] = ac_vi; in hostapd_config_read2()
892 conf->wmm_ac_params[3] = ac_vo; in hostapd_config_read2()
895 conf->driver = wpa_drivers[0]; in hostapd_config_read2()
896 if (conf->driver == NULL) { in hostapd_config_read2()
898 hostapd_config_free(conf); in hostapd_config_read2()
901 conf->last_bss = conf->bss[0]; in hostapd_config_read2()
904 bss = conf->last_bss; in hostapd_config_read2()
908 os_strlcpy(conf->bss[0]->iface, ifname, sizeof(conf->bss[0]->iface)); in hostapd_config_read2()
912 os_memcpy(conf->country, "US ", 3); in hostapd_config_read2()
913 conf->hw_mode = HOSTAPD_MODE_IEEE80211G; in hostapd_config_read2()
919 conf->channel = 1; in hostapd_config_read2()
920 conf->acs = conf->channel == 0; in hostapd_config_read2()
922 conf->acs_num_scans = 1; in hostapd_config_read2()
924 conf->ieee80211n = 1; in hostapd_config_read2()
925 conf->ieee80211h = 0; in hostapd_config_read2()
926 conf->ieee80211d = 1; in hostapd_config_read2()
927 conf->acs_exclude_dfs = 1; in hostapd_config_read2()
928 conf->ht_capab |= HT_CAP_INFO_SHORT_GI20MHZ; in hostapd_config_read2()
931 conf->no_pri_sec_switch = 1; in hostapd_config_read2()
932 conf->ht_op_mode_fixed = 1; in hostapd_config_read2()
933 conf->ieee80211ac = 1; in hostapd_config_read2()
934 conf->vht_oper_chwidth = CHANWIDTH_USE_HT; in hostapd_config_read2()
935 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX; in hostapd_config_read2()
937 conf->ieee80211ax = 1; in hostapd_config_read2()
938 conf->he_oper_chwidth = CHANWIDTH_USE_HT; in hostapd_config_read2()
939 conf->he_phy_capab.he_su_beamformer = 0; in hostapd_config_read2()
940 conf->he_phy_capab.he_su_beamformee = 1; in hostapd_config_read2()
941 conf->he_phy_capab.he_mu_beamformer = 0; in hostapd_config_read2()
942 conf->he_op.he_bss_color = 1; in hostapd_config_read2()
943 conf->he_op.he_default_pe_duration = 0; in hostapd_config_read2()
945 conf->he_op.he_basic_mcs_nss_set = 0xfffc; in hostapd_config_read2()
948 for (i = 0; i < conf->num_bss; i++) { in hostapd_config_read2()
949 hostapd_set_security_params(conf->bss[i], 1); in hostapd_config_read2()
952 if (hostapd_config_check(conf, 1)) { in hostapd_config_read2()
960 hostapd_config_free(conf); in hostapd_config_read2()
961 conf = NULL; in hostapd_config_read2()
964 return conf; in hostapd_config_read2()
982 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init()
983 sizeof(iface->conf->bss[0]->iface)); in hostapd_interface_init()
989 if (iface->bss[0]->conf->logger_stdout_level > 0) { in hostapd_interface_init()
990 iface->bss[0]->conf->logger_stdout_level--; in hostapd_interface_init()
994 if (iface->conf->bss[0]->iface[0] == '\0' && in hostapd_interface_init()
1112 if (hapd && hapd->conf) { in zephyr_hostap_msg_ifname_cb()
1113 return hapd->conf->iface; in zephyr_hostap_msg_ifname_cb()