Home
last modified time | relevance | path

Searched refs:bssid (Results 1 – 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_wlan.c60 nwam_wlan_select(const char *linkname, const char *essid, const char *bssid, in nwam_wlan_select() argument
64 linkname, essid, bssid, secmode, 0, NULL, add_to_known_wlans)); in nwam_wlan_select()
71 nwam_wlan_set_key(const char *linkname, const char *essid, const char *bssid, in nwam_wlan_set_key() argument
75 linkname, essid, bssid, secmode, keyslot, key, B_FALSE)); in nwam_wlan_set_key()
H A Dlibnwam_known_wlan.c581 nwam_known_wlan_add_to_known_wlans(const char *essid, const char *bssid, in nwam_known_wlan_add_to_known_wlans() argument
617 if (bssid == NULL) in nwam_known_wlan_add_to_known_wlans()
619 if ((err = nwam_value_create_string((char *)bssid, &bssidsval)) in nwam_known_wlan_add_to_known_wlans()
635 if (bssid == NULL) in nwam_known_wlan_add_to_known_wlans()
668 if (strcmp(old_bssids[i], bssid) == 0) { in nwam_known_wlan_add_to_known_wlans()
678 new_bssids[nelem] = strdup(bssid); in nwam_known_wlan_add_to_known_wlans()
753 nwam_known_wlan_remove_from_known_wlans(const char *essid, const char *bssid, in nwam_known_wlan_remove_from_known_wlans() argument
780 if (strcmp(old_bssids[i], bssid) == 0) { in nwam_known_wlan_remove_from_known_wlans()
H A Dlibnwam_util.c206 const char *essid, const char *bssid, uint32_t security_mode, in nwam_request_wlan() argument
223 if (bssid != NULL) { in nwam_request_wlan()
224 (void) strlcpy(req.nwda_data.nwdad_wlan_info.nwdad_bssid, bssid, in nwam_request_wlan()
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dknown_wlans.c58 typedef struct bssid { struct
60 char *bssid; argument
101 free(b->bssid); in kw_list_free()
129 kw_add(const char *essid, const char *bssid) in kw_add() argument
145 b->bssid = strdup(bssid); in kw_add()
152 nlog(LOG_DEBUG, "kw_add: added Known WLAN %s, BSSID %s", essid, bssid); in kw_add()
164 kw_update(kw_t *kw, const char *bssid) in kw_update() argument
173 b->bssid = strdup(bssid); in kw_update()
183 bssid, kw->kw_essid); in kw_update()
364 bssids[i] = strdup(b->bssid); in upgrade_known_wifi_nets_config()
H A Dncu_phys.c408 if (bssid == NULL || bssid[0] == '\0') { in nwamd_set_key_name()
413 essid, bssid); in nwamd_set_key_name()
849 (void) strlcpy(link->nwamd_link_wifi_bssid, bssid, in nwamd_wlan_select()
942 if (strcmp((const char *)bssid, bssids[i]) == 0) { in bssid_match()
1191 char bssid[DLADM_STRSIZE]; in nwamd_wlan_connected() local
1216 ncu->ncu_name, essid, bssid); in nwamd_wlan_connected()
1227 (void) strlcpy(link->nwamd_link_wifi_bssid, bssid, in nwamd_wlan_connected()
1240 (void) strlcpy(link->nwamd_link_wifi_bssid, bssid, in nwamd_wlan_connected()
1285 char bssid[DLADM_STRSIZE]; in wlan_scan_thread() local
1472 sizeof (bssid)); in wlan_scan_thread()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Ddriver_wifi.c40 char *bssid) in wpa_driver_wifi_get_bssid() argument
55 (void) memcpy(bssid, wl_attrp->wa_bssid.wb_bytes, DLADM_WLAN_BSSID_LEN); in wpa_driver_wifi_get_bssid()
58 MAC2STR((unsigned char *)bssid)); in wpa_driver_wifi_get_bssid()
284 const char *bssid, uint8_t *wpa_ie, uint32_t wpa_ie_len) in wpa_driver_wifi_associate() argument
290 MACSTR, MAC2STR(bssid)); in wpa_driver_wifi_associate()
300 (void) memcpy(bss.wb_bytes, bssid, DLADM_WLAN_BSSID_LEN); in wpa_driver_wifi_associate()
H A Dwpa_impl.h143 uint8_t bssid[IEEE80211_ADDR_LEN]; member
189 uint8_t bssid[IEEE80211_ADDR_LEN]; member
241 uint8_t bssid[IEEE80211_ADDR_LEN]; member
H A Dwpa_supplicant.c169 MAC2STR(wpa_s->bssid)); in wpa_supplicant_timeout()
231 (void) memset(wpa_s->bssid, 0, IEEE80211_ADDR_LEN); in wpa_supplicant_mark_disassoc()
369 if (memcmp(wpa_s->bssid, "\x00\x00\x00\x00\x00\x00", in wpa_supplicant_disassociate()
373 addr = wpa_s->bssid; in wpa_supplicant_disassociate()
470 memcmp(selected->we_bssid.wb_bytes, wpa_s->bssid, in wpa_supplicant_scan_results()
517 wpa_clear_keys(wpa_s, wpa_s->bssid); in wpa_event_handler()
H A Dwpa.c757 uint8_t bssid[IEEE80211_ADDR_LEN]; in wpa_supplicant_get_ssid() local
768 (char *)bssid) < 0) { in wpa_supplicant_get_ssid()
781 memcmp(bssid, entry->bssid, IEEE80211_ADDR_LEN) == 0)) in wpa_supplicant_get_ssid()
809 uint8_t bssid[IEEE80211_ADDR_LEN]; in wpa_supplicant_key_request() local
817 (char *)bssid) < 0) { in wpa_supplicant_key_request()
830 (void) memcpy(ethhdr->h_dest, bssid, IEEE80211_ADDR_LEN); in wpa_supplicant_key_request()
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_input.c66 uint8_t *bssid; in ieee80211_input() local
127 bssid = wh->i_addr2; in ieee80211_input()
128 if (!IEEE80211_ADDR_EQ(bssid, in->in_bssid)) in ieee80211_input()
134 bssid = wh->i_addr1; in ieee80211_input()
136 bssid = wh->i_addr1; in ieee80211_input()
144 bssid = wh->i_addr3; in ieee80211_input()
151 if (!IEEE80211_ADDR_EQ(bssid, ic->ic_bss->in_bssid) && in ieee80211_input()
152 !IEEE80211_ADDR_EQ(bssid, wifi_bcastaddr)) { in ieee80211_input()
156 ieee80211_macaddr_sprintf(bssid)); in ieee80211_input()
H A Dnet80211_output.c57 const uint8_t *bssid) in ieee80211_send_setup() argument
64 IEEE80211_ADDR_COPY(wh->i_addr1, bssid); in ieee80211_send_setup()
73 IEEE80211_ADDR_COPY(wh->i_addr3, bssid); in ieee80211_send_setup()
84 IEEE80211_ADDR_COPY(wh->i_addr3, bssid); in ieee80211_send_setup()
424 const uint8_t *sa, const uint8_t *da, const uint8_t *bssid, in ieee80211_send_probereq() argument
461 sa, da, bssid); in ieee80211_send_probereq()
H A Dnet80211_ioctl.c1166 bcopy(in->in_bssid, sr->ess[ap_num].bssid, in wifi_cfg_scanresults()
1511 uint8_t *bssid; in wl_get_bssid() local
1514 bssid = ic->ic_des_bssid; in wl_get_bssid()
1516 bssid = ic->ic_bss->in_bssid; in wl_get_bssid()
1517 bcopy(bssid, wldp_buf, sizeof (wl_bssid_t)); in wl_get_bssid()
1980 bcopy(in->in_bssid, sr->ess[ap_num].bssid, in wl_get_scanresults()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c1257 char bssid[NWAM_MAX_VALUE_LEN]; in select_wifi_func() local
1272 bssid[0] = '\0'; in select_wifi_func()
1338 (void) strlcpy(bssid, wlans[choice - 1].nww_bssid, in select_wifi_func()
1339 sizeof (bssid)); in select_wifi_func()
1367 err = nwam_wlan_set_key(linkname, essid, bssid, security_mode, in select_wifi_func()
1372 err = nwam_wlan_select(linkname, essid, bssid[0] != '\0' ? bssid : NULL, in select_wifi_func()
/illumos-gate/usr/src/uts/common/net/
H A Dwpa.h102 uint8_t bssid[IEEE80211_ADDR_LEN]; member
/illumos-gate/usr/src/uts/common/io/uath/
H A Duath_reg.h311 uint32_t bssid; member
365 uint32_t bssid[2]; member
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlwlan.c912 dladm_wlan_bssid2str(dladm_wlan_bssid_t *bssid, char *buf) in dladm_wlan_bssid2str() argument
914 return (_link_ntoa(bssid->wb_bytes, buf, DLADM_WLAN_BSSID_LEN, in dladm_wlan_bssid2str()
991 dladm_wlan_str2bssid(const char *str, dladm_wlan_bssid_t *bssid) in dladm_wlan_str2bssid() argument
1005 (void) memcpy(bssid->wb_bytes, buf, len); in dladm_wlan_str2bssid()
1445 (void) memcpy(sr[i].we_bssid.wb_bytes, es->ess[i].bssid, in dladm_wlan_wpa_get_sr()
1564 dladm_wlan_bssid_t *bssid) in dladm_wlan_wpa_set_mlme() argument
1580 if (bssid != NULL) in dladm_wlan_wpa_set_mlme()
1581 (void) memcpy(mlme.im_macaddr, bssid->wb_bytes, in dladm_wlan_wpa_set_mlme()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c2079 char essid[34], bssid[32]; in find_active_profile() local
2091 safe_snprintf(bssid, sizeof (bssid), "%02x:%02x:%02x:%02x:%02x:%02x", in find_active_profile()
2124 (strcmp(bssid, pbssid) == 0)) { in find_active_profile()
2284 char bssid[32]; in do_loadpf() local
2290 safe_snprintf(bssid, sizeof (bssid), in do_loadpf()
2302 update_aelist(plist, bssid); in do_loadpf()
3680 uint8_t bssid[6]; in print_gbuf() local
3688 (void) memset(bssid, 0, sizeof (bssid)); in print_gbuf()
3689 if (memcmp((uint8_t *)gbuf->wldp_buf, bssid, sizeof (bssid)) in print_gbuf()
3694 (void) memset(bssid, 0xff, sizeof (bssid)); in print_gbuf()
[all …]
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural.c1204 ural_set_bssid(struct ural_softc *sc, uint8_t *bssid) in ural_set_bssid() argument
1208 tmp = bssid[0] | bssid[1] << 8; in ural_set_bssid()
1211 tmp = bssid[2] | bssid[3] << 8; in ural_set_bssid()
1214 tmp = bssid[4] | bssid[5] << 8; in ural_set_bssid()
1217 ral_debug(RAL_DBG_HW, "setting BSSID to " MACSTR "\n", MAC2STR(bssid)); in ural_set_bssid()
/illumos-gate/usr/src/uts/common/io/wpi/
H A Dwpireg.h311 uint8_t bssid[IEEE80211_ADDR_LEN]; member
395 uint8_t bssid[IEEE80211_ADDR_LEN]; member
H A Dwpi.c1284 (void) memset(&node.bssid, 0xff, IEEE80211_ADDR_LEN); in wpi_newstate()
1431 (void) memset(node.bssid, 0xff, 6); in wpi_key_set()
1434 IEEE80211_ADDR_COPY(node.bssid, ic->ic_bss->in_bssid); in wpi_key_set()
2830 IEEE80211_ADDR_COPY(sc->sc_config.bssid, in->in_bssid);
2848 sc->sc_config.bssid[0], sc->sc_config.bssid[1],
2849 sc->sc_config.bssid[2], sc->sc_config.bssid[3],
2850 sc->sc_config.bssid[4], sc->sc_config.bssid[5]));
2861 IEEE80211_ADDR_COPY(node.bssid, in->in_bssid);
3115 (void) memset(node.bssid, 0xff, 6);
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_impl.h525 uint8_t bssid[IEEE80211_ADDR_LEN]; member
597 uint8_t bssid[IEEE80211_ADDR_LEN]; member
H A Dipw2200.c1764 IEEE80211_ADDR_COPY(assoc.bssid, in->in_bssid); in ipw2200_auth_and_assoc()
1774 assoc.bssid[0], assoc.bssid[1], assoc.bssid[2], in ipw2200_auth_and_assoc()
1775 assoc.bssid[3], assoc.bssid[4], assoc.bssid[5], in ipw2200_auth_and_assoc()
/illumos-gate/usr/src/uts/common/io/iwk/
H A Diwk2.c1847 (void) memset(node.bssid, 0xff, 6); in iwk_key_set()
1860 ibss_node_tb[index1].node.bssid, in iwk_key_set()
2715 ibss_node_tb[index1].node.bssid, in iwk_send()
3041 (void) memset(node.bssid, 0xff, 6); in iwk_m_ioctl()
3567 sc->sc_config.bssid[0], sc->sc_config.bssid[1], in iwk_hw_set_before_auth()
3568 sc->sc_config.bssid[2], sc->sc_config.bssid[3], in iwk_hw_set_before_auth()
3569 sc->sc_config.bssid[4], sc->sc_config.bssid[5])); in iwk_hw_set_before_auth()
3592 IEEE80211_ADDR_COPY(node.bssid, in->in_bssid); in iwk_hw_set_before_auth()
3904 (void) memset(node.bssid, 0xff, 6); in iwk_config()
5896 ibss_node_tb[index1].node.bssid, in iwk_recv_mgmt()
[all …]
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560.c241 rt2560_set_bssid(struct rt2560_softc *sc, uint8_t *bssid) in rt2560_set_bssid() argument
245 tmp = bssid[0] | bssid[1] << 8 | bssid[2] << 16 | bssid[3] << 24; in rt2560_set_bssid()
248 tmp = bssid[4] | bssid[5] << 8; in rt2560_set_bssid()
251 ral_debug(RAL_DBG_HW, "setting BSSID to " MACSTR "\n", MAC2STR(bssid)); in rt2560_set_bssid()
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum.c1237 rum_set_bssid(struct rum_softc *sc, const uint8_t *bssid) in rum_set_bssid() argument
1241 tmp = bssid[0] | bssid[1] << 8 | bssid[2] << 16 | bssid[3] << 24; in rum_set_bssid()
1244 tmp = bssid[4] | bssid[5] << 8 | RT2573_ONE_BSSID << 16; in rum_set_bssid()

12