Home
last modified time | relevance | path

Searched refs:ssid_len (Results 1 – 25 of 135) sorted by relevance

123456

/Linux-v5.15/drivers/net/wireless/ti/wlcore/
Dscan.c333 const u8 *ssid, size_t ssid_len, in wlcore_scan() argument
349 if (ssid_len && ssid) { in wlcore_scan()
350 wl->scan.ssid_len = ssid_len; in wlcore_scan()
351 memcpy(wl->scan.ssid, ssid, ssid_len); in wlcore_scan()
353 wl->scan.ssid_len = 0; in wlcore_scan()
384 if (sets[i].ssid.ssid_len > 0) in wlcore_scan_sched_scan_ssid_list()
390 (req->n_ssids == 1 && req->ssids[0].ssid_len == 0))) { in wlcore_scan_sched_scan_ssid_list()
407 cmd->ssids[cmd->n_ssids].type = (ssids[i].ssid_len) ? in wlcore_scan_sched_scan_ssid_list()
409 cmd->ssids[cmd->n_ssids].len = ssids[i].ssid_len; in wlcore_scan_sched_scan_ssid_list()
411 ssids[i].ssid_len); in wlcore_scan_sched_scan_ssid_list()
[all …]
Dscan.h16 const u8 *ssid, size_t ssid_len,
19 const u8 *ssid, size_t ssid_len,
/Linux-v5.15/net/wireless/
Dibss.c31 if (!wdev->ssid_len) in __cfg80211_ibss_joined()
99 if (wdev->ssid_len) in __cfg80211_join_ibss()
151 memcpy(wdev->ssid, params->ssid, params->ssid_len); in __cfg80211_join_ibss()
152 wdev->ssid_len = params->ssid_len; in __cfg80211_join_ibss()
184 wdev->ssid_len = 0; in __cfg80211_clear_ibss()
188 wdev->wext.ibss.ssid_len = 0; in __cfg80211_clear_ibss()
210 if (!wdev->ssid_len) in __cfg80211_leave_ibss()
284 if (!wdev->wext.ibss.ssid_len) in cfg80211_ibss_wext_join()
344 if (wdev->ssid_len) in cfg80211_ibss_wext_siwfreq()
413 if (wdev->ssid_len) in cfg80211_ibss_wext_siwessid()
[all …]
Dsme.c122 wdev->conn->params.ssid_len); in cfg80211_conn_scan()
123 request->ssids[0].ssid_len = wdev->conn->params.ssid_len; in cfg80211_conn_scan()
173 params->ssid, params->ssid_len, in cfg80211_conn_do_work()
198 params->ssid_len, &req); in cfg80211_conn_do_work()
282 wdev->conn->params.ssid_len, in cfg80211_get_conn_bss()
567 wdev->conn->params.ssid_len = wdev->ssid_len; in cfg80211_sme_connect()
730 wdev->ssid, wdev->ssid_len, in __cfg80211_connect_result()
746 wdev->ssid_len = 0; in __cfg80211_connect_result()
806 wdev->ssid, wdev->ssid_len, in cfg80211_connect_done()
969 wdev->ssid_len, in cfg80211_roamed()
[all …]
Dwext-sme.c43 if (!wdev->wext.connect.ssid_len) in cfg80211_mgd_wext_connect()
101 if (wdev->wext.connect.ssid_len) in cfg80211_mgd_wext_siwfreq()
172 len == wdev->wext.connect.ssid_len && in cfg80211_mgd_wext_siwessid()
188 wdev->wext.connect.ssid_len = len; in cfg80211_mgd_wext_siwessid()
229 } else if (wdev->wext.connect.ssid && wdev->wext.connect.ssid_len) { in cfg80211_mgd_wext_giwessid()
231 data->length = wdev->wext.connect.ssid_len; in cfg80211_mgd_wext_giwessid()
/Linux-v5.15/drivers/net/wireless/ti/wl18xx/
Dscan.c93 cmd->ssid_len = req->ssids[0].ssid_len; in wl18xx_scan_send()
94 memcpy(cmd->ssid, req->ssids[0].ssid, cmd->ssid_len); in wl18xx_scan_send()
103 req->ssids ? req->ssids[0].ssid_len : 0, in wl18xx_scan_send()
120 req->ssids ? req->ssids[0].ssid_len : 0, in wl18xx_scan_send()
246 req->ssids ? req->ssids[0].ssid_len : 0, in wl18xx_scan_sched_scan_config()
263 req->ssids ? req->ssids[0].ssid_len : 0, in wl18xx_scan_sched_scan_config()
Devent.c80 u8 ssid_len, u8 *ssid, in wlcore_smart_config_decode_event() argument
86 wl1271_dump_ascii(DEBUG_EVENT, "SSID:", ssid, ssid_len); in wlcore_smart_config_decode_event()
89 ssid_len + pwd_len + 20, in wlcore_smart_config_decode_event()
93 if (nla_put(skb, WLCORE_VENDOR_ATTR_SSID, ssid_len, ssid) || in wlcore_smart_config_decode_event()
/Linux-v5.15/drivers/net/wireless/ath/ath10k/
Dwow.c176 u8 ssid_len; in ath10k_wmi_pno_check() local
191 ssid_len = nd_config->match_sets[i].ssid.ssid_len; in ath10k_wmi_pno_check()
193 if (ssid_len == 0 || ssid_len > 32) in ath10k_wmi_pno_check()
196 pno->a_networks[i].ssid.ssid_len = __cpu_to_le32(ssid_len); in ath10k_wmi_pno_check()
200 nd_config->match_sets[i].ssid.ssid_len); in ath10k_wmi_pno_check()
224 if (__le32_to_cpu(pno->a_networks[j].ssid.ssid_len) == in ath10k_wmi_pno_check()
225 nd_config->ssids[i].ssid_len && in ath10k_wmi_pno_check()
228 __le32_to_cpu(pno->a_networks[j].ssid.ssid_len)) == 0)) { in ath10k_wmi_pno_check()
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/dvm/
Dscan.c567 u8 ssid_len, int left) in iwl_fill_probe_req() argument
590 left -= ssid_len + 2; in iwl_fill_probe_req()
594 *pos++ = ssid_len; in iwl_fill_probe_req()
595 if (ssid && ssid_len) { in iwl_fill_probe_req()
596 memcpy(pos, ssid, ssid_len); in iwl_fill_probe_req()
597 pos += ssid_len; in iwl_fill_probe_req()
600 len += ssid_len + 2; in iwl_fill_probe_req()
637 u8 ssid_len = 0; in iwlagn_request_scan() local
710 ssid_len = priv->scan_request->ssids[0].ssid_len; in iwlagn_request_scan()
720 priv->scan_request->ssids[i].ssid_len; in iwlagn_request_scan()
[all …]
/Linux-v5.15/drivers/net/wireless/ti/wl12xx/
Dscan.c138 if (wl->scan.ssid_len) { in wl1271_scan_send()
139 cmd->params.ssid_len = wl->scan.ssid_len; in wl1271_scan_send()
140 memcpy(cmd->params.ssid, wl->scan.ssid, wl->scan.ssid_len); in wl1271_scan_send()
147 wl->scan.ssid, wl->scan.ssid_len, in wl1271_scan_send()
342 cfg->ssid_len = 0; in wl1271_scan_sched_scan_config()
371 req->ssids[0].ssid_len, in wl1271_scan_sched_scan_config()
388 req->ssids[0].ssid_len, in wl1271_scan_sched_scan_config()
Dscan.h27 u8 ssid_len; member
83 u8 ssid_len; /* For SCAN_SSID_FILTER_SPECIFIC */ member
/Linux-v5.15/net/mac80211/
Dibss.c89 *pos++ = ifibss->ssid_len; in ieee80211_ibss_build_presp()
90 memcpy(pos, ifibss->ssid, ifibss->ssid_len); in ieee80211_ibss_build_presp()
91 pos += ifibss->ssid_len; in ieee80211_ibss_build_presp()
329 sdata->vif.bss_conf.ssid_len = ifibss->ssid_len; in __ieee80211_sta_join_ibss()
330 memcpy(sdata->vif.bss_conf.ssid, ifibss->ssid, ifibss->ssid_len); in __ieee80211_sta_join_ibss()
370 sdata->vif.bss_conf.ssid_len = 0; in __ieee80211_sta_join_ibss()
500 ifibss->ssid_len, IEEE80211_BSS_TYPE_IBSS, in ieee80211_ibss_csa_beacon()
542 ifibss->ssid_len, in ieee80211_ibss_finish_csa()
683 ifibss->ssid_len, in ieee80211_ibss_disconnect()
714 sdata->vif.bss_conf.ssid_len = 0; in ieee80211_ibss_disconnect()
[all …]
/Linux-v5.15/drivers/net/wireless/marvell/libertas/
Dcfg.c165 static int lbs_add_ssid_tlv(u8 *tlv, const u8 *ssid, int ssid_len) in lbs_add_ssid_tlv() argument
175 ssid_tlv->header.len = cpu_to_le16(ssid_len); in lbs_add_ssid_tlv()
176 memcpy(ssid_tlv->ssid, ssid, ssid_len); in lbs_add_ssid_tlv()
177 return sizeof(ssid_tlv->header) + ssid_len; in lbs_add_ssid_tlv()
586 u8 ssid_len = 0; in lbs_ret_scan() local
626 ssid_len = elen; in lbs_ret_scan()
641 bssid, capa, chan_no, ssid_len, ssid, in lbs_ret_scan()
708 if (priv->scan_req->n_ssids && priv->scan_req->ssids[0].ssid_len > 0) in lbs_scan_worker()
711 priv->scan_req->ssids[0].ssid_len); in lbs_scan_worker()
1265 memcpy(creq->ssids[0].ssid, sme->ssid, sme->ssid_len); in _new_connect_scan_req()
[all …]
/Linux-v5.15/drivers/staging/rtl8192e/
Drtllib_rx.c2055 network->ssid_len = min(info_element->len, in rtllib_parse_info_param()
2058 network->ssid_len); in rtllib_parse_info_param()
2059 if (network->ssid_len < IW_ESSID_MAX_SIZE) in rtllib_parse_info_param()
2060 memset(network->ssid + network->ssid_len, 0, in rtllib_parse_info_param()
2061 IW_ESSID_MAX_SIZE - network->ssid_len); in rtllib_parse_info_param()
2064 network->ssid, network->ssid_len); in rtllib_parse_info_param()
2305 network->ssid_len = 0; in rtllib_network_init()
2356 escape_essid(network->ssid, network->ssid_len), in rtllib_network_init()
2367 if (rtllib_is_empty_essid(network->ssid, network->ssid_len)) in rtllib_network_init()
2385 return (((src->ssid_len == dst->ssid_len) || (!ssidbroad)) && in is_same_network()
[all …]
Drtllib_softmac.c339 len = ieee->current_network.ssid_len; in rtllib_probe_req()
823 int ssid_len = ieee->current_network.ssid_len; in rtllib_probe_resp() local
878 ssid_len + 3 + rate_len + rate_ex_len + atim_len + erp_len in rtllib_probe_resp()
913 beacon_buf->info_element[0].len = ssid_len; in rtllib_probe_resp()
917 memcpy(tag, ssid, ssid_len); in rtllib_probe_resp()
919 tag += ssid_len; in rtllib_probe_resp()
1215 + beacon->ssid_len in rtllib_association_req()
1262 hdr->info_element[0].len = beacon->ssid_len; in rtllib_association_req()
1263 skb_put_data(skb, beacon->ssid, beacon->ssid_len); in rtllib_association_req()
1638 ssidbroad = !(net->ssid_len == 0 || net->ssid[0] == '\0'); in rtllib_softmac_new_net()
[all …]
/Linux-v5.15/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c517 vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
518 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
530 } else if (vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
531 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
536 vif->ssid_len = sme->ssid_len; in ath6kl_cfg80211_connect()
537 memcpy(vif->ssid, sme->ssid, sme->ssid_len); in ath6kl_cfg80211_connect()
638 vif->ssid_len, vif->ssid, in ath6kl_cfg80211_connect()
657 vif->ssid_len = 0; in ath6kl_cfg80211_connect()
701 vif->ssid, vif->ssid_len, in ath6kl_add_bss_if_needed()
712 ie = kmalloc(2 + vif->ssid_len + beacon_ie_len, GFP_KERNEL); in ath6kl_add_bss_if_needed()
[all …]
/Linux-v5.15/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c327 u8 *ssid, size_t ssid_len) in __hostap_get_bss() argument
336 (ssid_len == bss->ssid_len && in __hostap_get_bss()
337 memcmp(ssid, bss->ssid, ssid_len) == 0))) { in __hostap_get_bss()
348 u8 *ssid, size_t ssid_len) in __hostap_add_bss() argument
365 memcpy(bss->ssid, ssid, ssid_len); in __hostap_add_bss()
366 bss->ssid_len = ssid_len; in __hostap_add_bss()
399 size_t ssid_len = 0, wpa_len = 0, rsn_len = 0; in hostap_rx_sta_beacon() local
415 ssid_len = pos[1]; in hostap_rx_sta_beacon()
442 if (ssid_len > sizeof(bss->ssid)) in hostap_rx_sta_beacon()
443 ssid_len = sizeof(bss->ssid); in hostap_rx_sta_beacon()
[all …]
/Linux-v5.15/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c1115 network->ssid_len = min(info_element->len, in libipw_parse_info_param()
1118 network->ssid_len); in libipw_parse_info_param()
1119 if (network->ssid_len < IW_ESSID_MAX_SIZE) in libipw_parse_info_param()
1120 memset(network->ssid + network->ssid_len, 0, in libipw_parse_info_param()
1121 IW_ESSID_MAX_SIZE - network->ssid_len); in libipw_parse_info_param()
1124 network->ssid_len, network->ssid, in libipw_parse_info_param()
1125 network->ssid_len); in libipw_parse_info_param()
1319 network->ssid_len = 0; in libipw_handle_assoc_resp()
1377 network->ssid_len = 0; in libipw_network_init()
1408 network->ssid_len, network->ssid, in libipw_network_init()
[all …]
/Linux-v5.15/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c1546 network->ssid_len = min(info_element->len, in ieee80211_parse_info_param()
1548 memcpy(network->ssid, info_element->data, network->ssid_len); in ieee80211_parse_info_param()
1549 if (network->ssid_len < IW_ESSID_MAX_SIZE) in ieee80211_parse_info_param()
1550 memset(network->ssid + network->ssid_len, 0, in ieee80211_parse_info_param()
1551 IW_ESSID_MAX_SIZE - network->ssid_len); in ieee80211_parse_info_param()
1554 network->ssid, network->ssid_len); in ieee80211_parse_info_param()
2035 network->ssid_len = 0; in ieee80211_network_init()
2081 network->ssid_len), in ieee80211_network_init()
2092 if (ieee80211_is_empty_essid(network->ssid, network->ssid_len)) in ieee80211_network_init()
2112 (((src->ssid_len == dst->ssid_len) || (ieee->iw_mode == IW_MODE_INFRA)) && in is_same_network()
[all …]
Dieee80211_softmac.c317 len = ieee->current_network.ssid_len; in ieee80211_probe_req()
668 int ssid_len = ieee->current_network.ssid_len; in ieee80211_probe_resp() local
714 + ssid_len in ieee80211_probe_resp()
751 beacon_buf->info_element[0].len = ssid_len; in ieee80211_probe_resp()
755 memcpy(tag, ssid, ssid_len); in ieee80211_probe_resp()
757 tag += ssid_len; in ieee80211_probe_resp()
996 + beacon->ssid_len /* essid tagged val */ in ieee80211_association_req()
1009 + beacon->ssid_len /* essid tagged val */ in ieee80211_association_req()
1053 hdr->info_element[0].len = beacon->ssid_len; in ieee80211_association_req()
1054 skb_put_data(skb, beacon->ssid, beacon->ssid_len); in ieee80211_association_req()
[all …]
/Linux-v5.15/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpno.c211 pfn.ssid.SSID_len = cpu_to_le32(ssid->ssid_len); in brcmf_pno_add_ssid()
212 memcpy(pfn.ssid.SSID, ssid->ssid, ssid->ssid_len); in brcmf_pno_add_ssid()
247 if (ssid->ssid_len == req->ssids[i].ssid_len) { in brcmf_is_ssid_active()
249 ssid->ssid_len)) in brcmf_is_ssid_active()
376 if (ms->ssid.ssid_len) { in brcmf_pno_config_networks()
581 if (ms->ssid.ssid_len == ni->SSID_len && in brcmf_pno_get_bucket_map()
/Linux-v5.15/drivers/net/wireless/quantenna/qtnfmac/
Devent.c192 if (!vif->wdev.ssid_len) { in qtnf_event_handle_bss_join()
200 ie = kzalloc(2 + vif->wdev.ssid_len, GFP_KERNEL); in qtnf_event_handle_bss_join()
210 ie[1] = vif->wdev.ssid_len; in qtnf_event_handle_bss_join()
211 memcpy(ie + 2, vif->wdev.ssid, vif->wdev.ssid_len); in qtnf_event_handle_bss_join()
217 ie, 2 + vif->wdev.ssid_len, in qtnf_event_handle_bss_join()
572 if (ev->ssid_len) { in qtnf_event_handle_external_auth()
573 int len = clamp_val(ev->ssid_len, 0, IEEE80211_MAX_SSID_LEN); in qtnf_event_handle_external_auth()
576 auth.ssid.ssid_len = len; in qtnf_event_handle_external_auth()
/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/
Djoin.c427 ssid_tlv->header.len = cpu_to_le16((u16) bss_desc->ssid.ssid_len); in mwifiex_cmd_802_11_associate()
880 if (req_ssid->ssid_len > IEEE80211_MAX_SSID_LEN) in mwifiex_cmd_802_11_ad_hoc_start()
881 req_ssid->ssid_len = IEEE80211_MAX_SSID_LEN; in mwifiex_cmd_802_11_ad_hoc_start()
882 memcpy(adhoc_start->ssid, req_ssid->ssid, req_ssid->ssid_len); in mwifiex_cmd_802_11_ad_hoc_start()
888 memcpy(bss_desc->ssid.ssid, req_ssid->ssid, req_ssid->ssid_len); in mwifiex_cmd_802_11_ad_hoc_start()
890 bss_desc->ssid.ssid_len = req_ssid->ssid_len; in mwifiex_cmd_802_11_ad_hoc_start()
1165 &bss_desc->ssid.ssid, bss_desc->ssid.ssid_len); in mwifiex_cmd_802_11_ad_hoc_join()
1434 priv->curr_bss_params.bss_descriptor.ssid.ssid_len); in mwifiex_adhoc_join()
1438 bss_desc->ssid.ssid_len); in mwifiex_adhoc_join()
1441 if (priv->curr_bss_params.bss_descriptor.ssid.ssid_len && in mwifiex_adhoc_join()
Dscan.c200 if (!ssid1 || !ssid2 || (ssid1->ssid_len != ssid2->ssid_len)) in mwifiex_ssid_cmp()
202 return memcmp(ssid1->ssid, ssid2->ssid, ssid1->ssid_len); in mwifiex_ssid_cmp()
833 u32 ssid_len; in mwifiex_config_scan() local
906 ssid_len = user_scan_in->ssid_list[i].ssid_len; in mwifiex_config_scan()
914 (u16) (ssid_len + sizeof(wildcard_ssid_tlv-> in mwifiex_config_scan()
923 if (ssid_len) in mwifiex_config_scan()
934 user_scan_in->ssid_list[i].ssid, ssid_len); in mwifiex_config_scan()
948 if (!ssid_len && wildcard_ssid_tlv->max_ssid_length) in mwifiex_config_scan()
1252 bss_entry->ssid.ssid_len = element_len; in mwifiex_update_bss_desc_with_ie()
1657 for (idx = 0; idx < ssid->ssid_len; idx++) { in mwifiex_is_hidden_ssid()
[all …]
/Linux-v5.15/drivers/net/wireless/ti/wl1251/
Dcmd.h33 int wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len,
191 u8 ssid_len; member
263 u8 ssid_len; member

123456