Lines Matching defs:bss
43 struct hostapd_bss_config *bss = &conf->bss[0];
48 os_strlcpy(bss->iface, wpa_s->ifname, sizeof(bss->iface));
74 os_memcpy(bss->ssid.ssid, ssid->ssid, ssid->ssid_len);
75 bss->ssid.ssid[ssid->ssid_len] = '\0';
76 bss->ssid.ssid_len = ssid->ssid_len;
77 bss->ssid.ssid_set = 1;
80 bss->wpa = ssid->proto;
81 bss->wpa_key_mgmt = ssid->key_mgmt;
82 bss->wpa_pairwise = ssid->pairwise_cipher;
84 bss->ssid.wpa_passphrase = os_strdup(ssid->passphrase);
86 os_free(bss->ssid.wpa_psk);
87 bss->ssid.wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk));
88 if (bss->ssid.wpa_psk == NULL)
90 os_memcpy(bss->ssid.wpa_psk->psk, ssid->psk, PMK_LEN);
91 bss->ssid.wpa_psk->group = 1;
96 if (bss->wpa & 1)
97 pairwise |= bss->wpa_pairwise;
98 if (bss->wpa & 2) {
99 if (bss->rsn_pairwise == 0)
100 bss->rsn_pairwise = bss->wpa_pairwise;
101 pairwise |= bss->rsn_pairwise;
104 bss->wpa_group = WPA_CIPHER_TKIP;
106 bss->wpa_group = WPA_CIPHER_CCMP;
108 if (bss->wpa && bss->ieee802_1x)
109 bss->ssid.security_policy = SECURITY_WPA;
110 else if (bss->wpa)
111 bss->ssid.security_policy = SECURITY_WPA_PSK;
112 else if (bss->ieee802_1x) {
113 bss->ssid.security_policy = SECURITY_IEEE_802_1X;
114 bss->ssid.wep.default_len = bss->default_wep_key_len;
115 } else if (bss->ssid.wep.keys_set)
116 bss->ssid.security_policy = SECURITY_STATIC_WEP;
118 bss->ssid.security_policy = SECURITY_PLAINTEXT;
125 bss->eap_server = 1;
126 bss->wps_state = 2;
127 bss->ap_setup_locked = 1;
129 bss->config_methods = os_strdup(wpa_s->conf->config_methods);
131 bss->device_type = os_strdup(wpa_s->conf->device_type);
233 hapd_iface->bss = os_zalloc(conf->num_bss *
235 if (hapd_iface->bss == NULL) {
241 hapd_iface->bss[i] =
243 &conf->bss[i]);
244 if (hapd_iface->bss[i] == NULL) {
249 hapd_iface->bss[i]->msg_ctx = wpa_s;
250 hapd_iface->bss[i]->public_action_cb = ap_public_action_rx;
251 hapd_iface->bss[i]->public_action_cb_ctx = wpa_s;
252 hostapd_register_probereq_cb(hapd_iface->bss[i],
254 hapd_iface->bss[i]->wps_reg_success_cb = ap_wps_reg_success_cb;
255 hapd_iface->bss[i]->wps_reg_success_cb_ctx = wpa_s;
258 os_memcpy(hapd_iface->bss[0]->own_addr, wpa_s->own_addr, ETH_ALEN);
259 hapd_iface->bss[0]->driver = wpa_s->driver;
260 hapd_iface->bss[0]->drv_priv = wpa_s->drv_priv;
298 hostapd_tx_status(wpa_s->ap_iface->bss[0], addr, buf, len, ack);
310 ieee802_11_rx_from_unknown(wpa_s->ap_iface->bss[0], hdr->addr2,
325 ieee802_11_mgmt(wpa_s->ap_iface->bss[0], rx_mgmt->frame,
335 ieee802_11_mgmt_cb(wpa_s->ap_iface->bss[0], buf, len, stype, ok);
343 ieee802_1x_receive(wpa_s->ap_iface->bss[0], src_addr, buf, len);
353 return hostapd_wps_button_pushed(wpa_s->ap_iface->bss[0]);
371 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], "any", pin, 0);
387 return hostapd_ctrl_iface_sta_first(wpa_s->ap_iface->bss[0],
397 return hostapd_ctrl_iface_sta(wpa_s->ap_iface->bss[0], txtaddr,
407 return hostapd_ctrl_iface_sta_next(wpa_s->ap_iface->bss[0], txtaddr,
422 conf = wpa_s->ap_iface->bss[0]->conf;
458 hapd = wpa_s->ap_iface->bss[0];