/Linux-v5.10/drivers/staging/rtl8712/ |
D | rtl871x_mlme.c | 36 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 …]
|
D | rtl871x_cmd.c | 337 int r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork) in r8712_joinbss_cmd() argument 347 pnetwork->network.InfrastructureMode; in r8712_joinbss_cmd() 371 memcpy(psecnetwork, &pnetwork->network, sizeof(*psecnetwork)); in r8712_joinbss_cmd() 388 &pnetwork->network.MacAddress[0]); in r8712_joinbss_cmd() 390 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 392 pnetwork->network.IELength); in r8712_joinbss_cmd() 398 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 400 pnetwork->network.IELength, in r8712_joinbss_cmd() 419 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 421 pnetwork->network.IELength, in r8712_joinbss_cmd() [all …]
|
D | rtl871x_ioctl_linux.c | 128 struct wlan_network *pnetwork, in translate_scan_wpa() argument 138 r8712_get_sec_ie(pnetwork->network.IEs, in translate_scan_wpa() 139 pnetwork->network.IELength, rsn_ie, &rsn_len, in translate_scan_wpa() 186 struct wlan_network *pnetwork, in translate_scan_wps() argument 194 if (r8712_get_wps_ie(pnetwork->network.IEs, in translate_scan_wps() 195 pnetwork->network.IELength, in translate_scan_wps() 210 struct wlan_network *pnetwork, in translate_scan() argument 220 if ((pnetwork->network.Configuration.DSConfig < 1) || in translate_scan() 221 (pnetwork->network.Configuration.DSConfig > 14)) { in translate_scan() 222 if (pnetwork->network.Configuration.DSConfig < 1) in translate_scan() [all …]
|
D | rtl871x_ioctl_set.c | 160 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in r8712_set_802_11_ssid() local 175 pnetwork)) { in r8712_set_802_11_ssid()
|
D | rtl871x_mlme.h | 204 int r8712_is_same_ibss(struct _adapter *adapter, struct wlan_network *pnetwork);
|
/Linux-v5.10/drivers/staging/rtl8188eu/core/ |
D | rtw_mlme.c | 29 struct wlan_network *pnetwork; in rtw_init_mlme_priv() local 56 pnetwork = (struct wlan_network *)pbuf; in rtw_init_mlme_priv() 59 INIT_LIST_HEAD(&pnetwork->list); in rtw_init_mlme_priv() 61 list_add_tail(&pnetwork->list, &pmlmepriv->free_bss_pool.queue); in rtw_init_mlme_priv() 63 pnetwork++; in rtw_init_mlme_priv() 110 struct wlan_network *pnetwork; in rtw_alloc_network() local 114 pnetwork = list_first_entry_or_null(&free_queue->queue, in rtw_alloc_network() 116 if (!pnetwork) in rtw_alloc_network() 119 list_del_init(&pnetwork->list); in rtw_alloc_network() 122 ("rtw_alloc_network: ptr=%p\n", &pnetwork->list)); in rtw_alloc_network() [all …]
|
D | rtw_ieee80211.c | 916 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument 923 pbuf = rtw_get_wpa_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length - 12); in rtw_get_cipher_info() 928 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 929 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 930 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() 933 __func__, pnetwork->BcnInfo.pairwise_cipher, in rtw_get_cipher_info() 934 pnetwork->BcnInfo.is_8021x)); in rtw_get_cipher_info() 938 pbuf = rtw_get_wpa2_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length - 12); in rtw_get_cipher_info() 944 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 945 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() [all …]
|
D | rtw_cmd.c | 353 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument 365 enum ndis_802_11_network_infra ndis_network_mode = pnetwork->network.InfrastructureMode; in rtw_joinbss_cmd() 415 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd() 432 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); in rtw_joinbss_cmd() 434 psecnetwork->ie_length = rtw_restruct_sec_ie(padapter, &pnetwork->network.ies[0], in rtw_joinbss_cmd() 436 pnetwork->network.ie_length); in rtw_joinbss_cmd() 443 tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.ies[0], in rtw_joinbss_cmd() 445 pnetwork->network.ie_length, in rtw_joinbss_cmd() 468 rtw_restructure_ht_ie(padapter, &pnetwork->network.ies[0], in rtw_joinbss_cmd() 470 pnetwork->network.ie_length, &psecnetwork->ie_length); in rtw_joinbss_cmd() [all …]
|
D | rtw_ap.c | 602 struct wlan_bssid_ex *pnetwork = &pmlmepriv->cur_network.network; in start_bss_network() local 608 bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod; in start_bss_network() 609 cur_channel = pnetwork->Configuration.DSConfig; in start_bss_network() 618 …if (!rtw_get_wps_ie(pnetwork->ies + _FIXED_IE_LENGTH_, pnetwork->ie_length - _FIXED_IE_LENGTH_, NU… in start_bss_network() 645 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress); in start_bss_network() 665 UpdateBrateTbl(padapter, pnetwork->SupportedRates); in start_bss_network() 666 rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates); in start_bss_network() 673 p = rtw_get_ie(pnetwork->ies + sizeof(struct ndis_802_11_fixed_ie), in start_bss_network() 675 pnetwork->ie_length - in start_bss_network() 714 update_capinfo(padapter, rtw_get_capability(pnetwork)); in start_bss_network() [all …]
|
D | rtw_mlme_ext.c | 745 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in issue_auth() local 815 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in issue_auth() 817 ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress); in issue_auth() 886 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in issue_asocrsp() local 887 u8 *ie = pnetwork->ies; in issue_asocrsp() 911 ether_addr_copy((void *)GetAddr3Ptr(pwlanhdr), pnetwork->MacAddress); in issue_asocrsp() 947 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->ie_length - _BE… in issue_asocrsp() 955 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->ie_length - _BEAC… in issue_asocrsp() 969 …pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->ie_length - _BEACON_IE_OFFSET_ -… in issue_asocrsp() 1015 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in issue_assocreq() local [all …]
|
D | rtw_ioctl_set.c | 208 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in rtw_set_802_11_ssid() local 239 if (!rtw_is_same_ibss(padapter, pnetwork)) { in rtw_set_802_11_ssid()
|
/Linux-v5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_mlme.c | 21 struct wlan_network *pnetwork; in rtw_init_mlme_priv() local 49 pnetwork = (struct wlan_network *)pbuf; in rtw_init_mlme_priv() 52 INIT_LIST_HEAD(&pnetwork->list); in rtw_init_mlme_priv() 54 list_add_tail(&pnetwork->list, &pmlmepriv->free_bss_pool.queue); in rtw_init_mlme_priv() 56 pnetwork++; in rtw_init_mlme_priv() 148 struct wlan_network *pnetwork; in rtw_alloc_network() local 155 pnetwork = NULL; in rtw_alloc_network() 160 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); in rtw_alloc_network() 162 list_del_init(&pnetwork->list); in rtw_alloc_network() 166 pnetwork->network_type = 0; in rtw_alloc_network() [all …]
|
D | rtw_ieee80211.c | 1133 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument 1140 pbuf = rtw_get_wpa_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); in rtw_get_cipher_info() 1145 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 1146 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 1147 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() 1149 __func__, pnetwork->BcnInfo.pairwise_cipher, pnetwork->BcnInfo.is_8021x)); in rtw_get_cipher_info() 1153 pbuf = rtw_get_wpa2_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); in rtw_get_cipher_info() 1159 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 1160 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 1161 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() [all …]
|
D | rtw_cmd.c | 756 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument 768 enum NDIS_802_11_NETWORK_INFRASTRUCTURE ndis_network_mode = pnetwork->network.InfrastructureMode; in rtw_joinbss_cmd() 813 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd() 830 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); in rtw_joinbss_cmd() 833 …work->IELength = rtw_restruct_sec_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pn… in rtw_joinbss_cmd() 839 …tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pnetwork-… in rtw_joinbss_cmd() 850 …ptmp = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &tmp_len, pnetwork->network.IELe… in rtw_joinbss_cmd() 863 rtw_restructure_ht_ie(padapter, &pnetwork->network.IEs[12], &psecnetwork->IEs[0], in rtw_joinbss_cmd() 864 pnetwork->network.IELength-12, &psecnetwork->IELength, in rtw_joinbss_cmd() 865 pnetwork->network.Configuration.DSConfig); in rtw_joinbss_cmd() [all …]
|
D | rtw_ap.c | 676 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_ap_info() local 682 psta->bssratelen = rtw_get_rateset_len(pnetwork->SupportedRates); in update_ap_info() 683 memcpy(psta->bssrateset, pnetwork->SupportedRates, psta->bssratelen); in update_ap_info() 769 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in start_bss_network() local 778 bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod; in start_bss_network() 779 cur_channel = pnetwork->Configuration.DSConfig; in start_bss_network() 786 if (!rtw_get_wps_ie(pnetwork->IEs + _FIXED_IE_LENGTH_, in start_bss_network() 787 pnetwork->IELength - _FIXED_IE_LENGTH_, NULL, NULL)) in start_bss_network() 818 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress); in start_bss_network() 859 (pnetwork->IEs + sizeof(struct ndis_802_11_fix_ie)), in start_bss_network() [all …]
|
D | rtw_mlme_ext.c | 3107 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in issue_asocrsp() local 3108 u8 *ie = pnetwork->IEs; in issue_asocrsp() 3169 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->IELength - _BEA… in issue_asocrsp() 3178 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - _BEACO… in issue_asocrsp() 3193 …pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_ - … in issue_asocrsp() 4041 struct wlan_network *pnetwork = NULL; in issue_action_BSSCoexistPacket() local 4124 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); in issue_action_BSSCoexistPacket() 4128 pbss_network = (struct wlan_bssid_ex *)&pnetwork->network; in issue_action_BSSCoexistPacket() 4594 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); in start_create_ibss() local 4596 pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig; in start_create_ibss() [all …]
|
D | rtw_ioctl_set.c | 240 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in rtw_set_802_11_ssid() local 272 if (rtw_is_same_ibss(padapter, pnetwork) == false) { in rtw_set_802_11_ssid()
|
/Linux-v5.10/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_cmd.c | 292 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in ConstructPSPoll() local 306 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in ConstructPSPoll() 329 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; in ConstructNullFunctionData() local 341 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in ConstructNullFunctionData() 348 ether_addr_copy(pwlanhdr->addr2, pnetwork->MacAddress); in ConstructNullFunctionData() 355 ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress); in ConstructNullFunctionData() 441 struct wlan_bssid_ex *pnetwork; in SetFwRsvdPagePkt() local 453 pnetwork = &pmlmeinfo->network; in SetFwRsvdPagePkt() 485 …ConstructNullFunctionData(adapt, &ReservedPagePacket[BufIndex], &NullDataLength, pnetwork->MacAddr… in SetFwRsvdPagePkt() 495 …ConstructProbeRsp(adapt, &ReservedPagePacket[BufIndex], &ProbeRspLength, pnetwork->MacAddress, fal… in SetFwRsvdPagePkt() [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 56 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); in rtw_indicate_wx_assoc_event() local 63 memcpy(wrqu.ap_addr.sa_data, pnetwork->MacAddress, ETH_ALEN); in rtw_indicate_wx_assoc_event() 81 struct iw_request_info* info, struct wlan_network *pnetwork, in translate_scan() argument 93 u8 ie_offset = (pnetwork->network.Reserved[0] == 2 ? 0 : 12); in translate_scan() 101 memcpy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress, ETH_ALEN); in translate_scan() 107 iwe.u.data.length = min((u16)pnetwork->network.Ssid.SsidLength, (u16)32); in translate_scan() 108 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid); in translate_scan() 111 if (pnetwork->network.Reserved[0] == 2) { /* Probe Request */ in translate_scan() 112 …p = rtw_get_ie(&pnetwork->network.IEs[0], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELengt… in translate_scan() 114 …p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELeng… in translate_scan() [all …]
|
D | ioctl_cfg80211.c | 219 …ruct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_cfg80211_inform_bss() argument 241 bssinf_len = pnetwork->network.IELength + sizeof(struct ieee80211_hdr_3addr); in rtw_cfg80211_inform_bss() 250 if (rtw_get_wapi_ie(pnetwork->network.IEs, pnetwork->network.IELength, NULL, &wapi_len) > 0) in rtw_cfg80211_inform_bss() 265 struct ndis_802_11_ssid *pssid = &pnetwork->network.Ssid; in rtw_cfg80211_inform_bss() 271 …wpsie = rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_… in rtw_cfg80211_inform_bss() 300 channel = pnetwork->network.Configuration.DSConfig; in rtw_cfg80211_inform_bss() 309 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { in rtw_cfg80211_inform_bss() 312 …notify_signal = 100*translate_percentage_to_dbm(pnetwork->network.PhyInfo.SignalStrength);/* dbm */ in rtw_cfg80211_inform_bss() 327 if (pnetwork->network.Reserved[0] == 1) { /* WIFI_BEACON */ in rtw_cfg80211_inform_bss() 335 memcpy(pwlanhdr->addr2, pnetwork->network.MacAddress, ETH_ALEN); in rtw_cfg80211_inform_bss() [all …]
|
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 93 struct wlan_network *pnetwork, in translate_scan() argument 113 memcpy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress, ETH_ALEN); in translate_scan() 119 iwe.u.data.length = min_t(u16, pnetwork->network.ssid.ssid_length, 32); in translate_scan() 120 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.ssid.ssid); in translate_scan() 123 …p = rtw_get_ie(&pnetwork->network.ies[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.ie_len… in translate_scan() 141 if ((rtw_is_cckratesonly_included((u8 *)&pnetwork->network.SupportedRates))) { in translate_scan() 146 } else if ((rtw_is_cckrates_included((u8 *)&pnetwork->network.SupportedRates))) { in translate_scan() 162 memcpy(&le_tmp, rtw_get_capability_from_ie(pnetwork->network.ies), 2); in translate_scan() 175 if (pnetwork->network.Configuration.DSConfig < 1) in translate_scan() 176 pnetwork->network.Configuration.DSConfig = 1; in translate_scan() [all …]
|
/Linux-v5.10/drivers/staging/rtl8723bs/include/ |
D | ioctl_cfg80211.h | 97 void rtw_cfg80211_unlink_bss(struct adapter *padapter, struct wlan_network *pnetwork); 99 …uct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork);
|
D | rtw_mlme.h | 599 extern void _rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 isfree… 600 extern void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork); 622 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|
/Linux-v5.10/drivers/staging/rtl8188eu/include/ |
D | rtw_cmd.h | 307 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork);
|
D | rtw_mlme.h | 351 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|