Searched refs:sta (Results 1 - 25 of 60) sorted by relevance

123

/freebsd-9.3-release/contrib/wpa/src/ap/
H A Dsta_info.c36 struct sta_info *sta);
43 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
47 struct sta_info *sta; local
49 for (sta = hapd->sta_list; sta; sta = sta->next) {
50 if (cb(hapd, sta, ctx))
58 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument
62 s = hapd->sta_hash[STA_HASH(sta)];
42 ap_for_each_sta(struct hostapd_data *hapd, int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, void *ctx), void *ctx) argument
69 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument
89 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument
96 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument
118 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument
212 struct sta_info *sta, *prev; local
241 struct sta_info *sta = timeout_ctx; local
385 struct sta_info *sta = timeout_ctx; local
404 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument
416 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument
424 struct sta_info *sta; local
460 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument
476 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument
501 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument
519 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument
537 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, int old_vlanid) argument
654 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument
681 struct sta_info *sta = timeout_ctx; local
718 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument
724 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument
735 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument
[all...]
H A Dap_mlme.c48 * @sta: peer STA data
55 * PeerSTAAddress = sta->addr
56 * AuthenticationType = sta->auth_alg (WLAN_AUTH_OPEN / WLAN_AUTH_SHARED_KEY)
59 struct sta_info *sta)
61 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME,
64 MAC2STR(sta->addr), mlme_auth_alg_str(sta->auth_alg));
65 if (sta->auth_alg != WLAN_AUTH_FT && !(sta->flags & WLAN_STA_MFP))
66 mlme_deletekeys_request(hapd, sta);
58 mlme_authenticate_indication(struct hostapd_data *hapd, struct sta_info *sta) argument
82 mlme_deauthenticate_indication(struct hostapd_data *hapd, struct sta_info *sta, u16 reason_code) argument
105 mlme_associate_indication(struct hostapd_data *hapd, struct sta_info *sta) argument
130 mlme_reassociate_indication(struct hostapd_data *hapd, struct sta_info *sta) argument
154 mlme_disassociate_indication(struct hostapd_data *hapd, struct sta_info *sta, u16 reason_code) argument
175 mlme_deletekeys_request(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Dap_mlme.h21 struct sta_info *sta);
24 struct sta_info *sta, u16 reason_code);
27 struct sta_info *sta);
30 struct sta_info *sta);
33 struct sta_info *sta, u16 reason_code);
38 void mlme_deletekeys_request(struct hostapd_data *hapd, struct sta_info *sta);
H A Daccounting.h18 void accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta);
21 struct sta_info *sta)
26 struct sta_info *sta)
39 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta);
40 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
20 accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
25 accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta) argument
H A Daccounting.c35 struct sta_info *sta);
39 struct sta_info *sta,
55 if (sta) {
56 radius_msg_make_authenticator(msg, (u8 *) sta, sizeof(*sta));
59 sta->acct_session_id_hi, sta->acct_session_id_lo);
83 if (sta) {
84 val = ieee802_1x_get_identity(sta->eapol_sm, &len);
87 MAC2STR(sta
38 accounting_msg(struct hostapd_data *hapd, struct sta_info *sta, int status_type) argument
185 accounting_sta_update_stats(struct hostapd_data *hapd, struct sta_info *sta, struct hostap_sta_driver_data *data) argument
213 struct sta_info *sta = timeout_ctx; local
235 accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
272 accounting_sta_report(struct hostapd_data *hapd, struct sta_info *sta, int stop) argument
377 accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta) argument
389 accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta) argument
404 accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Dpreauth_auth.h22 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
24 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
26 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
40 struct sta_info *sta,
46 struct sta_info *sta,
52 struct sta_info *sta)
39 rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
45 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
51 rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) argument
H A Dtkip_countermeasures.c40 struct sta_info *sta; local
52 for (sta = hapd->sta_list; sta != NULL; sta = sta->next) {
53 hapd->drv.sta_deauth(hapd, sta->addr,
55 sta->flags &= ~(WLAN_STA_AUTH | WLAN_STA_ASSOC |
57 hapd->drv.sta_remove(hapd, sta->addr);
67 struct sta_info *sta = ap_get_sta(hapd, addr); local
68 if (sta !
[all...]
H A Dieee802_11.c105 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta, argument
125 if (sta) {
127 if (probe && sta->ssid_probe) {
128 policy = sta->ssid_probe->security_policy;
129 def_klen = sta->ssid_probe->wep.default_len;
131 policy = sta->ssid->security_policy;
132 def_klen = sta->ssid->wep.default_len;
153 struct sta_info *sta, u8 *eid)
163 os_time_sub(&now, &sta->sa_query_start, &passed);
194 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, argument
152 hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, struct sta_info *sta, u8 *eid) argument
298 struct sta_info *sta; local
323 struct sta_info *sta = NULL; local
497 hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta) argument
530 check_ssid(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ssid_ie, size_t ssid_ie_len) argument
551 check_wmm(struct hostapd_data *hapd, struct sta_info *sta, const u8 *wmm_ie, size_t wmm_ie_len) argument
569 copy_supp_rates(struct hostapd_data *hapd, struct sta_info *sta, struct ieee802_11_elems *elems) argument
613 check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ies, size_t ies_len, int reassoc) argument
797 send_assoc_resp(struct hostapd_data *hapd, struct sta_info *sta, u16 status_code, int reassoc, const u8 *ies, size_t ies_len) argument
878 struct sta_info *sta; local
1045 struct sta_info *sta; local
1094 struct sta_info *sta; local
1182 struct sta_info *sta; local
1223 struct sta_info *sta; local
1293 struct sta_info *sta; local
1476 struct sta_info *sta; local
1517 struct sta_info *sta; local
1687 ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
1698 struct sta_info *sta; local
1728 struct sta_info *sta; local
[all...]
H A Dpreauth_auth.c53 struct sta_info *sta; local
73 sta = ap_get_sta(hapd, ethhdr->h_source);
74 if (sta && (sta->flags & WLAN_STA_ASSOC)) {
76 "STA " MACSTR, MAC2STR(sta->addr));
79 if (!sta && hdr->type == IEEE802_1X_TYPE_EAPOL_START) {
80 sta = ap_sta_add(hapd, ethhdr->h_source);
81 if (sta == NULL)
83 sta->flags = WLAN_STA_PREAUTH;
85 ieee802_1x_new_station(hapd, sta);
194 struct sta_info *sta = timeout_ctx; local
201 rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
237 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
274 rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Diapp.h22 void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
29 struct sta_info *sta)
28 iapp_new_station(struct iapp_data *iapp, struct sta_info *sta) argument
H A Dsta_info.h42 struct sta_info *next; /* next entry in sta list */
129 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
132 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
133 void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
134 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
135 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
138 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
141 struct sta_info *sta);
143 void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
145 void ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta,
[all...]
H A Dctrl_iface_ap.c28 struct sta_info *sta,
33 if (sta == NULL) {
42 MAC2STR(sta->addr));
47 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
50 res = wpa_get_mib_sta(sta->wpa_sm, buf + len, buflen - len);
53 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len);
56 res = hostapd_wps_get_mib_sta(hapd, sta->addr, buf + len,
93 struct sta_info *sta; local
97 (sta = ap_get_sta(hapd, addr)) == NULL) {
103 return hostapd_ctrl_iface_sta_mib(hapd, sta
27 hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
[all...]
H A Dieee802_1x.c40 struct sta_info *sta, int success);
43 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, argument
68 if (wpa_auth_pairwise_set(sta->wpa_sm))
70 if (sta->flags & WLAN_STA_PREAUTH) {
71 rsn_preauth_send(hapd, sta, buf, len);
73 hapd->drv.send_eapol(hapd, sta->addr, buf, len, encrypt);
81 struct sta_info *sta, int authorized)
85 if (sta->flags & WLAN_STA_PREAUTH)
89 if (!(sta->flags & WLAN_STA_AUTHORIZED))
91 AP_STA_CONNECTED MACSTR, MAC2STR(sta
80 ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument
118 ieee802_1x_tx_key_one(struct hostapd_data *hapd, struct sta_info *sta, int idx, int broadcast, u8 *key_data, size_t key_len) argument
295 ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta) argument
374 radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta) argument
420 ieee802_1x_encapsulate_radius(struct hostapd_data *hapd, struct sta_info *sta, const u8 *eap, size_t len) argument
561 handle_eap_response(struct hostapd_data *hapd, struct sta_info *sta, struct eap_hdr *eap, size_t len) argument
594 handle_eap(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
644 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta) argument
671 struct sta_info *sta; local
825 ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta) argument
909 ieee802_1x_free_station(struct sta_info *sta) argument
929 ieee802_1x_decapsulate_radius(struct hostapd_data *hapd, struct sta_info *sta) argument
1011 ieee802_1x_get_keys(struct hostapd_data *hapd, struct sta_info *sta, struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len) argument
1052 ieee802_1x_store_radius_class(struct hostapd_data *hapd, struct sta_info *sta, struct radius_msg *msg) argument
1108 ieee802_1x_update_sta_identity(struct hostapd_data *hapd, struct sta_info *sta, struct radius_msg *msg) argument
1148 ieee802_1x_select_radius_identifier(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument
1190 struct sta_info *sta; local
1346 ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta) argument
1399 ieee802_1x_sta_key_available(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument
1460 struct sta_info *sta = sta_ctx; local
1492 struct sta_info *sta = sta_ctx; local
1503 struct sta_info *sta = sta_ctx; local
1552 struct sta_info *sta; local
1590 struct sta_info *sta = sta_ctx; local
1598 struct sta_info *sta = sta_ctx; local
1606 struct sta_info *sta = sta_ctx; local
1615 struct sta_info *sta = sta_ctx; local
1710 ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta, const u8 *buf, size_t len, int ack) argument
1846 ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
1990 ieee802_1x_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
[all...]
H A Dieee802_1x.h59 void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta);
60 void ieee802_1x_free_station(struct sta_info *sta);
62 void ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta);
63 void ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta);
65 struct sta_info *sta, int authorized);
66 void ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta);
69 int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
81 int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
87 int radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta);
H A Dieee802_11_ht.c163 u16 copy_sta_ht_capab(struct sta_info *sta, const u8 *ht_capab, argument
168 sta->flags &= ~WLAN_STA_HT;
169 os_free(sta->ht_capabilities);
170 sta->ht_capabilities = NULL;
174 if (sta->ht_capabilities == NULL) {
175 sta->ht_capabilities =
177 if (sta->ht_capabilities == NULL)
181 sta->flags |= WLAN_STA_HT;
182 os_memcpy(sta->ht_capabilities, ht_capab,
189 static void update_sta_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
219 update_sta_no_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
234 update_ht_state(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Ddrv_callbacks.c39 struct sta_info *sta; local
79 sta = ap_get_sta(hapd, addr);
80 if (sta) {
81 accounting_sta_stop(hapd, sta);
83 sta = ap_sta_add(hapd, addr);
84 if (sta == NULL)
87 sta->flags &= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS);
95 sta->flags |= WLAN_STA_MAYBE_WPS;
104 sta->flags |= WLAN_STA_WPS;
108 if (sta
164 struct sta_info *sta; local
342 struct sta_info *sta = ap_get_sta(hapd, addr); local
[all...]
H A Dwpa_auth_glue.c131 struct sta_info *sta = ap_get_sta(hapd, addr); local
132 if (sta == NULL)
136 ieee802_1x_notify_port_enabled(sta->eapol_sm, value);
139 ieee802_1x_notify_port_valid(sta->eapol_sm, value);
142 ieee802_1x_set_sta_authorized(hapd, sta, value);
145 if (sta->eapol_sm)
146 sta->eapol_sm->portControl = Auto;
149 if (sta->eapol_sm)
150 sta->eapol_sm->keyRun = value ? TRUE : FALSE;
153 if (sta
173 struct sta_info *sta = ap_get_sta(hapd, addr); local
201 struct sta_info *sta; local
260 struct sta_info *sta; local
382 struct sta_info *sta; local
409 struct sta_info *sta; local
[all...]
H A Dieee802_11.h31 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
41 struct sta_info *sta,
47 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta,
59 u16 copy_sta_ht_capab(struct sta_info *sta, const u8 *ht_capab,
61 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta);
40 ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) argument
H A Dap_list.h57 struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *sta);
/freebsd-9.3-release/contrib/wpa/hostapd/
H A Ddump_state.c39 struct sta_info *sta)
41 struct eapol_state_machine *sm = sta->eapol_sm;
75 struct sta_info *sta; local
105 for (sta = hapd->sta_list; sta != NULL; sta = sta->next) {
106 fprintf(f, "\nSTA=" MACSTR "\n", MAC2STR(sta->addr));
111 sta->aid,
112 sta
38 ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta) argument
[all...]
/freebsd-9.3-release/contrib/wpa/wpa_supplicant/tests/
H A Dlink_test.c21 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument
28 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
36 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, argument
42 int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, argument
49 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, argument
55 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, argument
61 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
27 ap_for_each_sta(struct hostapd_data *hapd, int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, void *ctx), void *ctx) argument
/freebsd-9.3-release/contrib/wpa/src/wps/
H A Dwps_er.c40 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, argument
50 ev->uuid = sta->uuid;
51 ev->mac_addr = sta->addr;
52 ev->m1_received = sta->m1_received;
53 ev->config_methods = sta->config_methods;
54 ev->dev_passwd_id = sta->dev_passwd_id;
55 ev->pri_dev_type = sta->pri_dev_type;
56 ev->dev_name = sta->dev_name;
57 ev->manufacturer = sta->manufacturer;
58 ev->model_name = sta
67 struct wps_er_sta *sta; local
76 wps_er_sta_free(struct wps_er_sta *sta) argument
95 struct wps_er_sta *prev, *sta; local
640 struct wps_er_sta *sta = eloop_data; local
652 struct wps_er_sta *sta = wps_er_sta_get(ap, addr); local
772 struct wps_er_sta *sta = ctx; local
867 wps_er_sta_send_msg(struct wps_er_sta *sta, struct wpabuf *msg) argument
914 wps_er_sta_process(struct wps_er_sta *sta, struct wpabuf *msg, enum wsc_op_code op_code) argument
940 wps_er_sta_start(struct wps_er_sta *sta, struct wpabuf *msg) argument
977 struct wps_er_sta *sta; local
1209 struct wps_er_sta *sta; local
[all...]
/freebsd-9.3-release/usr.sbin/pciconf/
H A Derr.c143 uint16_t sta, aer; local
147 sta = read_config(fd, &p->pc_sel, PCIR_STATUS, 2);
148 print_bits("PCI errors", pci_status, sta & PCI_ERRORS);
156 sta = read_config(fd, &p->pc_sel, pcie + PCIER_DEVICE_STA, 2);
157 print_bits("PCI-e errors", pcie_device_status, sta & PCIE_ERRORS);
H A Dcap.c414 uint16_t ctl, flags, sta; local
462 sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
463 printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4,
468 printf(" speed %s(%s)", (sta & PCIEM_LINK_STA_WIDTH) == 0 ?
469 "0.0" : link_speed_string(sta & PCIEM_LINK_STA_SPEED),
524 uint16_t sta; local
528 sta = read_config(fd, &p->pc_sel, PCIR_STATUS, 2);
529 if (!(sta & PCIM_STATUS_CAPPRESENT))
619 uint32_t sta, mask; local
624 sta
758 uint16_t sta; local
[all...]
/freebsd-9.3-release/tools/tools/net80211/scripts/
H A Dsetup.wdsrelay5 # dwds on the sta. The sta vap associates to another ap and passes
6 # traffic from stations associated to the (local) ap. The sta
23 WLAN_STA=`ifconfig wlan create wlanmode sta wlandev $WIRELESS -beacons`
31 # NB: bring sta up first so it can locate it's AP

Completed in 116 milliseconds

123