Lines Matching defs:hapd
51 struct hostapd_data *hapd = ctx;
62 if (hapd && hapd->conf) {
63 conf_syslog_level = hapd->conf->logger_syslog_level;
64 conf_stdout_level = hapd->conf->logger_stdout_level;
65 conf_syslog = hapd->conf->logger_syslog;
66 conf_stdout = hapd->conf->logger_stdout;
99 if (hapd && hapd->conf && addr)
101 hapd->conf->iface, MAC2STR(addr),
103 else if (hapd && hapd->conf)
105 hapd->conf->iface, module_str ? " " : "",
163 struct hostapd_data *hapd;
186 hapd = hapd_iface->bss[i] =
189 if (hapd == NULL)
191 hapd->msg_ctx = hapd;
214 struct hostapd_data *hapd = iface->bss[0];
215 struct hostapd_bss_config *conf = hapd->conf;
219 if (hapd->driver == NULL || hapd->driver->hapd_init == NULL) {
230 if (wpa_drivers[i] != hapd->driver)
248 params.ifname = hapd->conf->iface;
249 params.ssid = hapd->conf->ssid.ssid;
250 params.ssid_len = hapd->conf->ssid.ssid_len;
251 params.test_socket = hapd->conf->test_socket;
252 params.use_pae_group_addr = hapd->conf->use_pae_group_addr;
254 params.num_bridge = hapd->iface->num_bss;
255 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *));
258 for (i = 0; i < hapd->iface->num_bss; i++) {
259 struct hostapd_data *bss = hapd->iface->bss[i];
264 params.own_addr = hapd->own_addr;
266 hapd->drv_priv = hapd->driver->hapd_init(hapd, ¶ms);
268 if (hapd->drv_priv == NULL) {
270 hapd->driver->name);
271 hapd->driver = NULL;
275 if (hapd->driver->get_capa &&
276 hapd->driver->get_capa(hapd->drv_priv, &capa) == 0) {
519 struct hostapd_data *hapd = ctx;
520 if (hapd && hapd->iconf && hapd->iconf->bss)
521 return hapd->iconf->bss->iface;