/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_mlme.c | 48 struct wlan_network *pnetwork; in _init_mlme_priv() local 70 pnetwork = (struct wlan_network *)pbuf; in _init_mlme_priv() 72 INIT_LIST_HEAD(&(pnetwork->list)); in _init_mlme_priv() 73 list_add_tail(&(pnetwork->list), in _init_mlme_priv() 75 pnetwork++; in _init_mlme_priv() 88 struct wlan_network *pnetwork; in _r8712_alloc_network() local 92 pnetwork = list_first_entry_or_null(&free_queue->queue, in _r8712_alloc_network() 94 if (pnetwork) { in _r8712_alloc_network() 95 list_del_init(&pnetwork->list); in _r8712_alloc_network() 96 pnetwork->last_scanned = jiffies; in _r8712_alloc_network() [all …]
|
D | rtl871x_cmd.c | 449 u8 r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork) in r8712_joinbss_cmd() argument 459 pnetwork->network.InfrastructureMode; in r8712_joinbss_cmd() 487 memcpy(psecnetwork, &pnetwork->network, sizeof(*psecnetwork)); in r8712_joinbss_cmd() 504 &pnetwork->network.MacAddress[0]); in r8712_joinbss_cmd() 506 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 508 pnetwork->network.IELength); in r8712_joinbss_cmd() 514 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 516 pnetwork->network.IELength, in r8712_joinbss_cmd() 535 &pnetwork->network.IEs[0], in r8712_joinbss_cmd() 537 pnetwork->network.IELength, in r8712_joinbss_cmd() [all …]
|
D | rtl871x_ioctl_linux.c | 146 struct wlan_network *pnetwork, in translate_scan() argument 157 if ((pnetwork->network.Configuration.DSConfig < 1) || in translate_scan() 158 (pnetwork->network.Configuration.DSConfig > 14)) { in translate_scan() 159 if (pnetwork->network.Configuration.DSConfig < 1) in translate_scan() 160 pnetwork->network.Configuration.DSConfig = 1; in translate_scan() 162 pnetwork->network.Configuration.DSConfig = 14; in translate_scan() 167 ether_addr_copy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress); in translate_scan() 172 iwe.u.data.length = min_t(u32, pnetwork->network.Ssid.SsidLength, 32); in translate_scan() 174 pnetwork->network.Ssid.Ssid); in translate_scan() 176 p = r8712_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, in translate_scan() [all …]
|
D | rtl871x_ioctl_set.c | 172 struct wlan_network *pnetwork = &pmlmepriv->cur_network; in r8712_set_802_11_ssid() local 187 pnetwork)) { in r8712_set_802_11_ssid()
|
D | rtl871x_mlme.h | 217 int r8712_is_same_ibss(struct _adapter *adapter, struct wlan_network *pnetwork);
|
/Linux-v4.19/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 | 925 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument 932 pbuf = rtw_get_wpa_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length - 12); in rtw_get_cipher_info() 937 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 938 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 939 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() 941 __func__, pnetwork->BcnInfo.pairwise_cipher, pnetwork->BcnInfo.is_8021x)); in rtw_get_cipher_info() 945 pbuf = rtw_get_wpa2_ie(&pnetwork->network.ies[12], &wpa_ielen, pnetwork->network.ie_length - 12); in rtw_get_cipher_info() 951 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 952 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 953 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() [all …]
|
D | rtw_cmd.c | 347 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument 359 enum ndis_802_11_network_infra ndis_network_mode = pnetwork->network.InfrastructureMode; in rtw_joinbss_cmd() 408 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd() 424 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); in rtw_joinbss_cmd() 426 …ork->ie_length = rtw_restruct_sec_ie(padapter, &pnetwork->network.ies[0], &psecnetwork->ies[0], pn… in rtw_joinbss_cmd() 433 …tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.ies[0], &psecnetwork->ies[0], pnetwork-… in rtw_joinbss_cmd() 455 rtw_restructure_ht_ie(padapter, &pnetwork->network.ies[0], &psecnetwork->ies[0], in rtw_joinbss_cmd() 456 pnetwork->network.ie_length, &psecnetwork->ie_length); in rtw_joinbss_cmd() 460 pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pnetwork->network.ies, pnetwork->network.ie_length); in rtw_joinbss_cmd() 1191 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf; in rtw_createbss_cmd_callback() local [all …]
|
D | rtw_ap.c | 611 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in start_bss_network() local 617 bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod; in start_bss_network() 618 cur_channel = pnetwork->Configuration.DSConfig; in start_bss_network() 627 …if (!rtw_get_wps_ie(pnetwork->ies + _FIXED_IE_LENGTH_, pnetwork->ie_length - _FIXED_IE_LENGTH_, NU… in start_bss_network() 654 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress); in start_bss_network() 673 UpdateBrateTbl(padapter, pnetwork->SupportedRates); in start_bss_network() 674 rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates); in start_bss_network() 681 …p = rtw_get_ie((pnetwork->ies + sizeof(struct ndis_802_11_fixed_ie)), _HT_ADD_INFO_IE_, &ie_len, (… in start_bss_network() 718 update_capinfo(padapter, rtw_get_capability((struct wlan_bssid_ex *)pnetwork)); in start_bss_network() 721 memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length); in start_bss_network() [all …]
|
D | rtw_mlme_ext.c | 752 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in issue_auth() local 822 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in issue_auth() 824 ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress); in issue_auth() 893 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in issue_asocrsp() local 894 u8 *ie = pnetwork->ies; in issue_asocrsp() 918 ether_addr_copy((void *)GetAddr3Ptr(pwlanhdr), pnetwork->MacAddress); in issue_asocrsp() 954 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->ie_length - _BE… in issue_asocrsp() 962 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->ie_length - _BEAC… in issue_asocrsp() 976 …pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->ie_length - _BEACON_IE_OFFSET_ -… in issue_asocrsp() 1022 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-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_mlme.c | 20 struct wlan_network *pnetwork; in _rtw_init_mlme_priv() local 48 pnetwork = (struct wlan_network *)pbuf; in _rtw_init_mlme_priv() 51 INIT_LIST_HEAD(&(pnetwork->list)); in _rtw_init_mlme_priv() 53 list_add_tail(&(pnetwork->list), &(pmlmepriv->free_bss_pool.queue)); in _rtw_init_mlme_priv() 55 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() 165 pnetwork->network_type = 0; in _rtw_alloc_network() [all …]
|
D | rtw_ieee80211.c | 1134 static int rtw_get_cipher_info(struct wlan_network *pnetwork) in rtw_get_cipher_info() argument 1141 pbuf = rtw_get_wpa_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); in rtw_get_cipher_info() 1146 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 1147 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 1148 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() 1150 __func__, pnetwork->BcnInfo.pairwise_cipher, pnetwork->BcnInfo.is_8021x)); in rtw_get_cipher_info() 1154 pbuf = rtw_get_wpa2_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); in rtw_get_cipher_info() 1160 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; in rtw_get_cipher_info() 1161 pnetwork->BcnInfo.group_cipher = group_cipher; in rtw_get_cipher_info() 1162 pnetwork->BcnInfo.is_8021x = is8021x; in rtw_get_cipher_info() [all …]
|
D | rtw_cmd.c | 786 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_joinbss_cmd() argument 798 enum NDIS_802_11_NETWORK_INFRASTRUCTURE ndis_network_mode = pnetwork->network.InfrastructureMode; in rtw_joinbss_cmd() 851 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); in rtw_joinbss_cmd() 869 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); in rtw_joinbss_cmd() 872 …work->IELength = rtw_restruct_sec_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pn… in rtw_joinbss_cmd() 878 …tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pnetwork-… in rtw_joinbss_cmd() 889 …ptmp = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &tmp_len, pnetwork->network.IELe… in rtw_joinbss_cmd() 902 rtw_restructure_ht_ie(padapter, &pnetwork->network.IEs[12], &psecnetwork->IEs[0], in rtw_joinbss_cmd() 903 pnetwork->network.IELength-12, &psecnetwork->IELength, in rtw_joinbss_cmd() 904 pnetwork->network.Configuration.DSConfig); in rtw_joinbss_cmd() [all …]
|
D | rtw_ap.c | 723 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_ap_info() local 729 psta->bssratelen = rtw_get_rateset_len(pnetwork->SupportedRates); in update_ap_info() 730 memcpy(psta->bssrateset, pnetwork->SupportedRates, psta->bssratelen); in update_ap_info() 822 *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in start_bss_network() local 831 bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod; in start_bss_network() 832 cur_channel = pnetwork->Configuration.DSConfig; in start_bss_network() 841 pnetwork->IEs+_FIXED_IE_LENGTH_, in start_bss_network() 842 pnetwork->IELength-_FIXED_IE_LENGTH_, in start_bss_network() 878 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress); in start_bss_network() 922 (pnetwork->IEs + sizeof(struct ndis_802_11_fix_ie)), in start_bss_network() [all …]
|
D | rtw_debug.c | 437 struct wlan_network *pnetwork = NULL; in proc_get_survey_info() local 456 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); in proc_get_survey_info() 458 if (!pnetwork) in proc_get_survey_info() 462 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { in proc_get_survey_info() 465 notify_signal = translate_percentage_to_dbm(pnetwork->network.PhyInfo.SignalStrength);/*dbm*/ in proc_get_survey_info() 469 …rtw_hal_get_odm_var(padapter, HAL_ODM_NOISE_MONITOR, &(pnetwork->network.Configuration.DSConfig), … in proc_get_survey_info() 474 MAC_ARG(pnetwork->network.MacAddress), in proc_get_survey_info() 475 pnetwork->network.Configuration.DSConfig, in proc_get_survey_info() 476 (int)pnetwork->network.Rssi, in proc_get_survey_info() 479 jiffies_to_msecs(jiffies - pnetwork->last_scanned), in proc_get_survey_info() [all …]
|
D | rtw_mlme_ext.c | 3120 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in issue_asocrsp() local 3121 u8 *ie = pnetwork->IEs; in issue_asocrsp() 3182 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->IELength - _BEA… in issue_asocrsp() 3191 …pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - _BEACO… in issue_asocrsp() 3206 …pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_ - … in issue_asocrsp() 4059 struct wlan_network *pnetwork = NULL; in issue_action_BSSCoexistPacket() local 4142 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); in issue_action_BSSCoexistPacket() 4146 pbss_network = (struct wlan_bssid_ex *)&pnetwork->network; in issue_action_BSSCoexistPacket() 4613 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); in start_create_ibss() local 4614 pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig; in start_create_ibss() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_cmd.c | 301 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in ConstructPSPoll() local 315 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in ConstructPSPoll() 338 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); in ConstructNullFunctionData() local 350 ether_addr_copy(pwlanhdr->addr1, pnetwork->MacAddress); in ConstructNullFunctionData() 357 ether_addr_copy(pwlanhdr->addr2, pnetwork->MacAddress); in ConstructNullFunctionData() 364 ether_addr_copy(pwlanhdr->addr3, pnetwork->MacAddress); in ConstructNullFunctionData() 450 struct wlan_bssid_ex *pnetwork; in SetFwRsvdPagePkt() local 462 pnetwork = &(pmlmeinfo->network); in SetFwRsvdPagePkt() 494 …ConstructNullFunctionData(adapt, &ReservedPagePacket[BufIndex], &NullDataLength, pnetwork->MacAddr… in SetFwRsvdPagePkt() 504 …ConstructProbeRsp(adapt, &ReservedPagePacket[BufIndex], &ProbeRspLength, pnetwork->MacAddress, fal… in SetFwRsvdPagePkt() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_linux.c | 58 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex*)(&(pmlmeinfo->network)); in rtw_indicate_wx_assoc_event() local 65 memcpy(wrqu.ap_addr.sa_data, pnetwork->MacAddress, ETH_ALEN); in rtw_indicate_wx_assoc_event() 83 struct iw_request_info* info, struct wlan_network *pnetwork, in translate_scan() argument 95 u8 ie_offset = (pnetwork->network.Reserved[0] == 2? 0:12); in translate_scan() 103 memcpy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress, ETH_ALEN); in translate_scan() 109 iwe.u.data.length = min((u16)pnetwork->network.Ssid.SsidLength, (u16)32); in translate_scan() 110 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid); in translate_scan() 113 if (pnetwork->network.Reserved[0] == 2) { /* Probe Request */ in translate_scan() 114 …p = rtw_get_ie(&pnetwork->network.IEs[0], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELengt… in translate_scan() 116 …p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELeng… in translate_scan() [all …]
|
D | ioctl_cfg80211.c | 237 …ruct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork) in rtw_cfg80211_inform_bss() argument 263 bssinf_len = pnetwork->network.IELength+sizeof (struct ieee80211_hdr_3addr); in rtw_cfg80211_inform_bss() 272 if (rtw_get_wapi_ie(pnetwork->network.IEs, pnetwork->network.IELength, NULL, &wapi_len)>0) in rtw_cfg80211_inform_bss() 287 struct ndis_802_11_ssid *pssid = &pnetwork->network.Ssid; in rtw_cfg80211_inform_bss() 293 …wpsie = rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_… in rtw_cfg80211_inform_bss() 322 channel = pnetwork->network.Configuration.DSConfig; in rtw_cfg80211_inform_bss() 329 notify_interval = le16_to_cpu(*(__le16 *)rtw_get_beacon_interval_from_ie(pnetwork->network.IEs)); in rtw_cfg80211_inform_bss() 330 notify_capability = le16_to_cpu(*(__le16 *)rtw_get_capability_from_ie(pnetwork->network.IEs)); in rtw_cfg80211_inform_bss() 332 notify_ie = pnetwork->network.IEs+_FIXED_IE_LENGTH_; in rtw_cfg80211_inform_bss() 333 notify_ielen = pnetwork->network.IELength-_FIXED_IE_LENGTH_; in rtw_cfg80211_inform_bss() [all …]
|
/Linux-v4.19/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.SsidLength, 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() 140 if ((rtw_is_cckratesonly_included((u8 *)&pnetwork->network.SupportedRates))) { in translate_scan() 145 } else if ((rtw_is_cckrates_included((u8 *)&pnetwork->network.SupportedRates))) { in translate_scan() 151 if (pnetwork->network.Configuration.DSConfig > 14) { in translate_scan() 168 memcpy(&le_tmp, rtw_get_capability_from_ie(pnetwork->network.ies), 2); in translate_scan() 181 if (pnetwork->network.Configuration.DSConfig < 1) in translate_scan() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | ioctl_cfg80211.h | 98 void rtw_cfg80211_unlink_bss(struct adapter *padapter, struct wlan_network *pnetwork); 100 …uct cfg80211_bss *rtw_cfg80211_inform_bss(struct adapter *padapter, struct wlan_network *pnetwork);
|
D | rtw_mlme.h | 633 extern void _rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 isfree… 634 extern void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork); 658 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_mlme.h | 340 struct wlan_network *pnetwork); 355 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
|
D | rtw_cmd.h | 307 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork);
|