Home
last modified time | relevance | path

Searched refs:pnetwork (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.1.9/drivers/staging/rtl8712/
Drtl871x_mlme.c36 struct wlan_network *pnetwork; in r8712_init_mlme_priv() local
58 pnetwork = (struct wlan_network *)pbuf; in r8712_init_mlme_priv()
60 INIT_LIST_HEAD(&(pnetwork->list)); in r8712_init_mlme_priv()
61 list_add_tail(&(pnetwork->list), in r8712_init_mlme_priv()
63 pnetwork++; in r8712_init_mlme_priv()
76 struct wlan_network *pnetwork; in _r8712_alloc_network() local
80 pnetwork = list_first_entry_or_null(&free_queue->queue, in _r8712_alloc_network()
82 if (pnetwork) { in _r8712_alloc_network()
83 list_del_init(&pnetwork->list); in _r8712_alloc_network()
84 pnetwork->last_scanned = jiffies; in _r8712_alloc_network()
[all …]
Drtl871x_cmd.c339 int r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork) in r8712_joinbss_cmd() argument
349 pnetwork->network.InfrastructureMode; in r8712_joinbss_cmd()
373 memcpy(psecnetwork, &pnetwork->network, sizeof(*psecnetwork)); in r8712_joinbss_cmd()
390 &pnetwork->network.MacAddress[0]); in r8712_joinbss_cmd()
392 &pnetwork->network.IEs[0], in r8712_joinbss_cmd()
394 pnetwork->network.IELength); in r8712_joinbss_cmd()
400 &pnetwork->network.IEs[0], in r8712_joinbss_cmd()
402 pnetwork->network.IELength, in r8712_joinbss_cmd()
421 &pnetwork->network.IEs[0], in r8712_joinbss_cmd()
423 pnetwork->network.IELength, in r8712_joinbss_cmd()
[all …]
Drtl871x_ioctl_linux.c126 struct wlan_network *pnetwork, in translate_scan_wpa() argument
136 r8712_get_sec_ie(pnetwork->network.IEs, in translate_scan_wpa()
137 pnetwork->network.IELength, rsn_ie, &rsn_len, in translate_scan_wpa()
184 struct wlan_network *pnetwork, in translate_scan_wps() argument
192 if (r8712_get_wps_ie(pnetwork->network.IEs, in translate_scan_wps()
193 pnetwork->network.IELength, in translate_scan_wps()
208 struct wlan_network *pnetwork, in translate_scan() argument
218 if ((pnetwork->network.Configuration.DSConfig < 1) || in translate_scan()
219 (pnetwork->network.Configuration.DSConfig > 14)) { in translate_scan()
220 if (pnetwork->network.Configuration.DSConfig < 1) in translate_scan()
[all …]
Drtl871x_ioctl_set.c159 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in r8712_set_802_11_ssid() local
174 pnetwork)) { in r8712_set_802_11_ssid()
Drtl871x_mlme.h203 int r8712_is_same_ibss(struct _adapter *adapter, struct wlan_network *pnetwork);
Drtl871x_cmd.h724 struct wlan_network *pnetwork);
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_mlme.c52 void _rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 isfreeall) in _rtw_free_network() argument
58 if (!pnetwork) in _rtw_free_network()
61 if (pnetwork->fixed) in _rtw_free_network()
68 delta_time = (curr_time - pnetwork->last_scanned) / HZ; in _rtw_free_network()
73 list_del_init(&pnetwork->list); in _rtw_free_network()
74 list_add_tail(&pnetwork->list, &free_queue->queue); in _rtw_free_network()
79 void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) in _rtw_free_network_nolock() argument
83 if (!pnetwork) in _rtw_free_network_nolock()
85 if (pnetwork->fixed) in _rtw_free_network_nolock()
87 list_del_init(&pnetwork->list); in _rtw_free_network_nolock()
[all …]
Drtw_ieee80211.c1045 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument
1052 pbuf = rtw_get_wpa_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength - 12); in rtw_get_cipher_info()
1056 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info()
1057 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info()
1058 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info()
1062 pbuf = rtw_get_wpa2_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength - 12); in rtw_get_cipher_info()
1066 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info()
1067 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info()
1068 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info()
1077 void rtw_get_bcn_info(struct wlan_network *pnetwork) in rtw_get_bcn_info() argument
[all …]
Drtw_cmd.c410 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument
422 enum ndis_802_11_network_infra ndis_network_mode = pnetwork->network.InfrastructureMode; in rtw_joinbss_cmd()
461 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd()
477 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); in rtw_joinbss_cmd()
479 …work->IELength = rtw_restruct_sec_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pn… in rtw_joinbss_cmd()
486 …tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pnetwork-… in rtw_joinbss_cmd()
505 rtw_restructure_ht_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], in rtw_joinbss_cmd()
506 pnetwork->network.IELength, &psecnetwork->IELength); in rtw_joinbss_cmd()
510 pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pnetwork->network.IEs, pnetwork->network.IELength); in rtw_joinbss_cmd()
1483 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf; in rtw_createbss_cmd_callback() local
[all …]
Drtw_ap.c537 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in update_bcn_erpinfo_ie() local
538 unsigned char *p, *ie = pnetwork->IEs; in update_bcn_erpinfo_ie()
546 (pnetwork->IELength - _BEACON_IE_OFFSET_)); in update_bcn_erpinfo_ie()
572 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in update_bcn_wps_ie() local
573 unsigned char *ie = pnetwork->IEs; in update_bcn_wps_ie()
574 u32 ielen = pnetwork->IELength; in update_bcn_wps_ie()
606 pnetwork->IELength = wps_offset + (wps_ielen + 2) + remainder_ielen; in update_bcn_wps_ie()
Drtw_mlme_ext.c4757 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in issue_asocrsp() local
4758 u8 *ie = pnetwork->IEs; in issue_asocrsp()
4815 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->IELength - _BEA… in issue_asocrsp()
4823 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - _BEACO… in issue_asocrsp()
4837 …pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_ - … in issue_asocrsp()
5579 struct wlan_network *pnetwork = NULL; in issue_action_BSSCoexistPacket() local
5650 pnetwork = container_of(plist, struct wlan_network, list); in issue_action_BSSCoexistPacket()
5654 pbss_network = (struct wlan_bssid_ex *)&pnetwork->network; in issue_action_BSSCoexistPacket()
6324 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&pmlmeinfo->network); in start_create_ibss() local
6325 pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig; in start_create_ibss()
[all …]
Drtw_ioctl_set.c180 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in rtw_set_802_11_ssid() local
199 if (!rtw_is_same_ibss(padapter, pnetwork)) { in rtw_set_802_11_ssid()
/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_mlme.c17 struct wlan_network *pnetwork; in rtw_init_mlme_priv() local
47 pnetwork = (struct wlan_network *)pbuf; in rtw_init_mlme_priv()
50 INIT_LIST_HEAD(&pnetwork->list); in rtw_init_mlme_priv()
52 list_add_tail(&pnetwork->list, &pmlmepriv->free_bss_pool.queue); in rtw_init_mlme_priv()
54 pnetwork++; in rtw_init_mlme_priv()
142 struct wlan_network *pnetwork; in rtw_alloc_network() local
149 pnetwork = NULL; in rtw_alloc_network()
154 pnetwork = container_of(plist, struct wlan_network, list); in rtw_alloc_network()
156 list_del_init(&pnetwork->list); in rtw_alloc_network()
158 pnetwork->network_type = 0; in rtw_alloc_network()
[all …]
Drtw_ieee80211.c998 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument
1005 pbuf = rtw_get_wpa_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length-12); in rtw_get_cipher_info()
1009 pnetwork->bcn_info.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info()
1010 pnetwork->bcn_info.group_cipher = group_cipher; in rtw_get_cipher_info()
1011 pnetwork->bcn_info.is_8021x = is8021x; in rtw_get_cipher_info()
1015 pbuf = rtw_get_wpa2_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length-12); in rtw_get_cipher_info()
1019 pnetwork->bcn_info.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info()
1020 pnetwork->bcn_info.group_cipher = group_cipher; in rtw_get_cipher_info()
1021 pnetwork->bcn_info.is_8021x = is8021x; in rtw_get_cipher_info()
1030 void rtw_get_bcn_info(struct wlan_network *pnetwork) in rtw_get_bcn_info() argument
[all …]
Drtw_cmd.c673 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument
685 enum ndis_802_11_network_infrastructure ndis_network_mode = pnetwork->network.infrastructure_mode; in rtw_joinbss_cmd()
722 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd()
738 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.mac_address[0], ETH_ALEN); in rtw_joinbss_cmd()
740 …ork->ie_length = rtw_restruct_sec_ie(padapter, &pnetwork->network.ies[0], &psecnetwork->ies[0], pn… in rtw_joinbss_cmd()
746 …tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.ies[0], &psecnetwork->ies[0], pnetwork-… in rtw_joinbss_cmd()
757 …ptmp = rtw_get_ie(&pnetwork->network.ies[12], WLAN_EID_HT_CAPABILITY, &tmp_len, pnetwork->network.… in rtw_joinbss_cmd()
770 rtw_restructure_ht_ie(padapter, &pnetwork->network.ies[12], &psecnetwork->ies[0], in rtw_joinbss_cmd()
771 pnetwork->network.ie_length-12, &psecnetwork->ie_length, in rtw_joinbss_cmd()
772 pnetwork->network.configuration.ds_config); in rtw_joinbss_cmd()
[all …]
Drtw_ap.c569 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_ap_info() local
575 psta->bssratelen = rtw_get_rateset_len(pnetwork->supported_rates); in update_ap_info()
576 memcpy(psta->bssrateset, pnetwork->supported_rates, psta->bssratelen); in update_ap_info()
652 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in start_bss_network() local
659 bcn_interval = (u16)pnetwork->configuration.beacon_period; in start_bss_network()
660 cur_channel = pnetwork->configuration.ds_config; in start_bss_network()
667 if (!rtw_get_wps_ie(pnetwork->ies + _FIXED_IE_LENGTH_, in start_bss_network()
668 pnetwork->ie_length - _FIXED_IE_LENGTH_, NULL, NULL)) in start_bss_network()
697 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->mac_address); in start_bss_network()
737 p = rtw_get_ie((pnetwork->ies + sizeof(struct ndis_802_11_fix_ie)), in start_bss_network()
[all …]
Drtw_mlme_ext.c2727 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in issue_asocrsp() local
2728 u8 *ie = pnetwork->ies; in issue_asocrsp()
2787 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_HT_CAPABILITY, &ie_len, (pnetwork->ie_length -… in issue_asocrsp()
2796 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_HT_OPERATION, &ie_len, (pnetwork->ie_length - … in issue_asocrsp()
2811 …pbuf = rtw_get_ie(pbuf, WLAN_EID_VENDOR_SPECIFIC, &ie_len, (pnetwork->ie_length - _BEACON_IE_OFFSE… in issue_asocrsp()
3594 struct wlan_network *pnetwork = NULL; in issue_action_BSSCoexistPacket() local
3672 pnetwork = container_of(plist, struct wlan_network, list); in issue_action_BSSCoexistPacket()
3676 pbss_network = (struct wlan_bssid_ex *)&pnetwork->network; in issue_action_BSSCoexistPacket()
4080 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); in start_create_ibss() local
4082 pmlmeext->cur_channel = (u8)pnetwork->configuration.ds_config; in start_create_ibss()
[all …]
Drtw_ioctl_set.c142 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in rtw_set_802_11_ssid() local
163 if (rtw_is_same_ibss(padapter, pnetwork) == false) { in rtw_set_802_11_ssid()
/linux-6.1.9/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c77 struct wlan_network *pnetwork, in translate_scan() argument
102 if (!memcmp(pnetwork->network.Ssid.Ssid, pwdinfo->p2p_wildcard_ssid, P2P_WILDCARD_SSID_LEN)) { in translate_scan()
105 if (pnetwork->network.Reserved[0] == 2) {/* Probe Request */ in translate_scan()
107 if (rtw_get_p2p_ie(pnetwork->network.IEs, pnetwork->network.IELength, NULL, &p2pielen)) in translate_scan()
111 … if (rtw_get_p2p_ie(&pnetwork->network.IEs[12], pnetwork->network.IELength - 12, NULL, &p2pielen)) in translate_scan()
124 memcpy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress, ETH_ALEN); in translate_scan()
130 iwe.u.data.length = min_t(u16, pnetwork->network.Ssid.SsidLength, 32); in translate_scan()
131 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid); in translate_scan()
134 …p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELeng… in translate_scan()
150 if ((rtw_is_cckratesonly_included((u8 *)&pnetwork->network.SupportedRates))) { in translate_scan()
[all …]
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c209 …ruct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_cfg80211_inform_bss() argument
227 bssinf_len = pnetwork->network.ie_length + sizeof(struct ieee80211_hdr_3addr); in rtw_cfg80211_inform_bss()
234 if (rtw_get_wapi_ie(pnetwork->network.ies, pnetwork->network.ie_length, NULL, &wapi_len) > 0) { in rtw_cfg80211_inform_bss()
244 struct ndis_802_11_ssid *pssid = &pnetwork->network.ssid; in rtw_cfg80211_inform_bss()
250 …wpsie = rtw_get_wps_ie(pnetwork->network.ies+_FIXED_IE_LENGTH_, pnetwork->network.ie_length-_FIXED… in rtw_cfg80211_inform_bss()
270 channel = pnetwork->network.configuration.ds_config; in rtw_cfg80211_inform_bss()
279 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { in rtw_cfg80211_inform_bss()
282 …notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.phy_info.signal_strength);/* dbm… in rtw_cfg80211_inform_bss()
297 if (pnetwork->network.reserved[0] == 1) { /* WIFI_BEACON */ in rtw_cfg80211_inform_bss()
305 memcpy(pwlanhdr->addr2, pnetwork->network.mac_address, ETH_ALEN); in rtw_cfg80211_inform_bss()
[all …]
/linux-6.1.9/drivers/staging/rtl8723bs/include/
Dioctl_cfg80211.h95 void rtw_cfg80211_unlink_bss(struct adapter *padapter, struct wlan_network *pnetwork);
97 …uct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork);
Drtw_mlme.h551 extern void _rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 isfree…
552 extern void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork);
574 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
Drtw_cmd.h591 extern u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork);
/linux-6.1.9/drivers/staging/r8188eu/include/
Drtw_mlme.h546 struct wlan_network *pnetwork, u8 isfreeall);
548 struct wlan_network *pnetwork);
567 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
Dieee80211.h811 void rtw_get_bcn_info(struct wlan_network *pnetwork);

12