Lines Matching refs:hapd
68 struct hostapd_data *hapd = ctx; in hostapd_logger_cb() local
79 if (hapd && hapd->conf) { in hostapd_logger_cb()
80 conf_syslog_level = hapd->conf->logger_syslog_level; in hostapd_logger_cb()
81 conf_stdout_level = hapd->conf->logger_stdout_level; in hostapd_logger_cb()
82 conf_syslog = hapd->conf->logger_syslog; in hostapd_logger_cb()
83 conf_stdout = hapd->conf->logger_stdout; in hostapd_logger_cb()
116 if (hapd && hapd->conf && addr) in hostapd_logger_cb()
118 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb()
120 else if (hapd && hapd->conf) in hostapd_logger_cb()
122 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
180 struct hostapd_data *hapd; in hostapd_init() local
208 hapd = hapd_iface->bss[i] = in hostapd_init()
211 if (hapd == NULL) in hostapd_init()
213 hapd->msg_ctx = hapd; in hostapd_init()
234 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init() local
235 struct hostapd_bss_config *conf = hapd->conf; in hostapd_driver_init()
239 if (hapd->driver == NULL || hapd->driver->hapd_init == NULL) { in hostapd_driver_init()
250 params.ifname = hapd->conf->iface; in hostapd_driver_init()
251 params.ssid = (const u8 *) hapd->conf->ssid.ssid; in hostapd_driver_init()
252 params.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_driver_init()
253 params.test_socket = hapd->conf->test_socket; in hostapd_driver_init()
254 params.use_pae_group_addr = hapd->conf->use_pae_group_addr; in hostapd_driver_init()
256 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
257 params.bridge = os_zalloc(hapd->iface->num_bss * sizeof(char *)); in hostapd_driver_init()
260 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
261 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
266 params.own_addr = hapd->own_addr; in hostapd_driver_init()
268 hapd->drv_priv = hapd->driver->hapd_init(hapd, ¶ms); in hostapd_driver_init()
270 if (hapd->drv_priv == NULL) { in hostapd_driver_init()
272 hapd->driver->name); in hostapd_driver_init()
273 hapd->driver = NULL; in hostapd_driver_init()
277 if (hapd->driver->get_capa && in hostapd_driver_init()
278 hapd->driver->get_capa(hapd->drv_priv, &capa) == 0) in hostapd_driver_init()
494 struct hostapd_data *hapd = ctx; in hostapd_msg_ifname_cb() local
495 if (hapd && hapd->iconf && hapd->iconf->bss) in hostapd_msg_ifname_cb()
496 return hapd->iconf->bss->iface; in hostapd_msg_ifname_cb()