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

/linux-4.4.14/drivers/staging/rtl8712/
H A Drtl871x_mlme.c48 struct wlan_network *pnetwork; _init_mlme_priv() local
70 pnetwork = (struct wlan_network *)pbuf; _init_mlme_priv()
72 INIT_LIST_HEAD(&(pnetwork->list)); _init_mlme_priv()
73 list_add_tail(&(pnetwork->list), _init_mlme_priv()
75 pnetwork++; _init_mlme_priv()
88 struct wlan_network *pnetwork; _r8712_alloc_network() local
96 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); _r8712_alloc_network()
97 list_del_init(&pnetwork->list); _r8712_alloc_network()
98 pnetwork->last_scanned = jiffies; _r8712_alloc_network()
101 return pnetwork; _r8712_alloc_network()
105 struct wlan_network *pnetwork) _free_network()
111 if (pnetwork == NULL) _free_network()
113 if (pnetwork->fixed) _free_network()
116 delta_time = (curr_time - (u32)pnetwork->last_scanned) / HZ; _free_network()
120 list_del_init(&pnetwork->list); _free_network()
121 list_add_tail(&pnetwork->list, &free_queue->queue); _free_network()
127 struct wlan_network *pnetwork) _free_network_nolock()
131 if (pnetwork == NULL) _free_network_nolock()
133 if (pnetwork->fixed) _free_network_nolock()
135 list_del_init(&pnetwork->list); _free_network_nolock()
136 list_add_tail(&pnetwork->list, &free_queue->queue); _free_network_nolock()
151 struct wlan_network *pnetwork = NULL; _r8712_find_network() local
159 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); _r8712_find_network()
161 if (!memcmp(addr, pnetwork->network.MacAddress, ETH_ALEN)) _r8712_find_network()
165 return pnetwork; _r8712_find_network()
172 struct wlan_network *pnetwork; _free_network_queue() local
180 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); _free_network_queue()
182 _free_network(pmlmepriv, pnetwork); _free_network_queue()
238 struct wlan_network *pnetwork) free_network_nolock()
240 _free_network_nolock(pmlmepriv, pnetwork); free_network_nolock()
257 struct wlan_network *pnetwork = _r8712_find_network(scanned_queue, r8712_find_network() local
260 return pnetwork; r8712_find_network()
263 int r8712_is_same_ibss(struct _adapter *adapter, struct wlan_network *pnetwork) r8712_is_same_ibss() argument
269 (pnetwork->network.Privacy == 0)) r8712_is_same_ibss()
272 (pnetwork->network.Privacy == 1)) r8712_is_same_ibss()
365 struct wlan_bssid_ex *pnetwork) update_current_network()
369 if (is_same_network(&(pmlmepriv->cur_network.network), pnetwork)) { update_current_network()
371 pnetwork, adapter); update_current_network()
390 struct wlan_network *pnetwork = NULL; update_scanned_network() local
400 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); update_scanned_network()
401 if (is_same_network(&pnetwork->network, target)) update_scanned_network()
405 (unsigned long)pnetwork->last_scanned)) update_scanned_network()
406 oldest = pnetwork; update_scanned_network()
417 pnetwork = oldest; update_scanned_network()
418 target->Rssi = (pnetwork->network.Rssi + update_scanned_network()
420 memcpy(&pnetwork->network, target, update_scanned_network()
422 pnetwork->last_scanned = jiffies; update_scanned_network()
426 pnetwork = alloc_network(pmlmepriv); update_scanned_network()
427 if (pnetwork == NULL) update_scanned_network()
431 memcpy(&pnetwork->network, target, bssid_ex_sz); update_scanned_network()
432 list_add_tail(&pnetwork->list, &queue->queue); update_scanned_network()
440 update_network(&pnetwork->network, target, adapter); update_scanned_network()
441 pnetwork->last_scanned = jiffies; update_scanned_network()
446 struct wlan_bssid_ex *pnetwork) rtl8711_add_network()
453 update_current_network(adapter, pnetwork); rtl8711_add_network()
454 update_scanned_network(adapter, pnetwork); rtl8711_add_network()
466 struct wlan_network *pnetwork) is_desired_network()
474 if (r8712_get_wps_ie(pnetwork->network.IEs, is_desired_network()
475 pnetwork->network.IELength, wps_ie, is_desired_network()
482 (pnetwork->network.Privacy == 0)) is_desired_network()
485 if (pnetwork->network.InfrastructureMode != is_desired_network()
502 struct wlan_bssid_ex *pnetwork; r8712_survey_event_callback() local
505 pnetwork = (struct wlan_bssid_ex *)pbuf; r8712_survey_event_callback()
508 pnetwork->Length = le32_to_cpu(pnetwork->Length); r8712_survey_event_callback()
509 pnetwork->Ssid.SsidLength = le32_to_cpu(pnetwork->Ssid.SsidLength); r8712_survey_event_callback()
510 pnetwork->Privacy = le32_to_cpu(pnetwork->Privacy); r8712_survey_event_callback()
511 pnetwork->Rssi = le32_to_cpu(pnetwork->Rssi); r8712_survey_event_callback()
512 pnetwork->NetworkTypeInUse = le32_to_cpu(pnetwork->NetworkTypeInUse); r8712_survey_event_callback()
513 pnetwork->Configuration.ATIMWindow = r8712_survey_event_callback()
514 le32_to_cpu(pnetwork->Configuration.ATIMWindow); r8712_survey_event_callback()
515 pnetwork->Configuration.BeaconPeriod = r8712_survey_event_callback()
516 le32_to_cpu(pnetwork->Configuration.BeaconPeriod); r8712_survey_event_callback()
517 pnetwork->Configuration.DSConfig = r8712_survey_event_callback()
518 le32_to_cpu(pnetwork->Configuration.DSConfig); r8712_survey_event_callback()
519 pnetwork->Configuration.FHConfig.DwellTime = r8712_survey_event_callback()
520 le32_to_cpu(pnetwork->Configuration.FHConfig.DwellTime); r8712_survey_event_callback()
521 pnetwork->Configuration.FHConfig.HopPattern = r8712_survey_event_callback()
522 le32_to_cpu(pnetwork->Configuration.FHConfig.HopPattern); r8712_survey_event_callback()
523 pnetwork->Configuration.FHConfig.HopSet = r8712_survey_event_callback()
524 le32_to_cpu(pnetwork->Configuration.FHConfig.HopSet); r8712_survey_event_callback()
525 pnetwork->Configuration.FHConfig.Length = r8712_survey_event_callback()
526 le32_to_cpu(pnetwork->Configuration.FHConfig.Length); r8712_survey_event_callback()
527 pnetwork->Configuration.Length = r8712_survey_event_callback()
528 le32_to_cpu(pnetwork->Configuration.Length); r8712_survey_event_callback()
529 pnetwork->InfrastructureMode = r8712_survey_event_callback()
530 le32_to_cpu(pnetwork->InfrastructureMode); r8712_survey_event_callback()
531 pnetwork->IELength = le32_to_cpu(pnetwork->IELength); r8712_survey_event_callback()
533 len = r8712_get_wlan_bssid_ex_sz(pnetwork); r8712_survey_event_callback()
540 pnetwork->MacAddress, ETH_ALEN)) { r8712_survey_event_callback()
544 pnetwork->IEs, 8); r8712_survey_event_callback()
547 pnetwork->MacAddress); r8712_survey_event_callback()
550 pnetwork->IEs, 8); r8712_survey_event_callback()
557 if (pnetwork->Ssid.Ssid[0] != 0) { r8712_survey_event_callback()
558 rtl8711_add_network(adapter, pnetwork); r8712_survey_event_callback()
560 pnetwork->Ssid.SsidLength = 8; r8712_survey_event_callback()
561 memcpy(pnetwork->Ssid.Ssid, "<hidden>", 8); r8712_survey_event_callback()
562 rtl8711_add_network(adapter, pnetwork); r8712_survey_event_callback()
698 *pnetwork : returns from r8712_joinbss_event_callback
705 * "pnetwork->network" if (ptarget_wlan !=NULL).
716 struct wlan_network *pnetwork; r8712_joinbss_event_callback() local
719 pnetwork = kmalloc(sizeof(struct wlan_network), GFP_ATOMIC); r8712_joinbss_event_callback()
720 if (!pnetwork) r8712_joinbss_event_callback()
722 memcpy((u8 *)pnetwork + 16, (u8 *)pbuf + 8, r8712_joinbss_event_callback()
725 pnetwork = (struct wlan_network *)pbuf; r8712_joinbss_event_callback()
730 pnetwork->join_res = le32_to_cpu(pnetwork->join_res); r8712_joinbss_event_callback()
731 pnetwork->network_type = le32_to_cpu(pnetwork->network_type); r8712_joinbss_event_callback()
732 pnetwork->network.Length = le32_to_cpu(pnetwork->network.Length); r8712_joinbss_event_callback()
733 pnetwork->network.Ssid.SsidLength = r8712_joinbss_event_callback()
734 le32_to_cpu(pnetwork->network.Ssid.SsidLength); r8712_joinbss_event_callback()
735 pnetwork->network.Privacy = le32_to_cpu(pnetwork->network.Privacy); r8712_joinbss_event_callback()
736 pnetwork->network.Rssi = le32_to_cpu(pnetwork->network.Rssi); r8712_joinbss_event_callback()
737 pnetwork->network.NetworkTypeInUse = r8712_joinbss_event_callback()
738 le32_to_cpu(pnetwork->network.NetworkTypeInUse); r8712_joinbss_event_callback()
739 pnetwork->network.Configuration.ATIMWindow = r8712_joinbss_event_callback()
740 le32_to_cpu(pnetwork->network.Configuration.ATIMWindow); r8712_joinbss_event_callback()
741 pnetwork->network.Configuration.BeaconPeriod = r8712_joinbss_event_callback()
742 le32_to_cpu(pnetwork->network.Configuration.BeaconPeriod); r8712_joinbss_event_callback()
743 pnetwork->network.Configuration.DSConfig = r8712_joinbss_event_callback()
744 le32_to_cpu(pnetwork->network.Configuration.DSConfig); r8712_joinbss_event_callback()
745 pnetwork->network.Configuration.FHConfig.DwellTime = r8712_joinbss_event_callback()
746 le32_to_cpu(pnetwork->network.Configuration.FHConfig. r8712_joinbss_event_callback()
748 pnetwork->network.Configuration.FHConfig.HopPattern = r8712_joinbss_event_callback()
749 le32_to_cpu(pnetwork->network.Configuration. r8712_joinbss_event_callback()
751 pnetwork->network.Configuration.FHConfig.HopSet = r8712_joinbss_event_callback()
752 le32_to_cpu(pnetwork->network.Configuration.FHConfig.HopSet); r8712_joinbss_event_callback()
753 pnetwork->network.Configuration.FHConfig.Length = r8712_joinbss_event_callback()
754 le32_to_cpu(pnetwork->network.Configuration.FHConfig.Length); r8712_joinbss_event_callback()
755 pnetwork->network.Configuration.Length = r8712_joinbss_event_callback()
756 le32_to_cpu(pnetwork->network.Configuration.Length); r8712_joinbss_event_callback()
757 pnetwork->network.InfrastructureMode = r8712_joinbss_event_callback()
758 le32_to_cpu(pnetwork->network.InfrastructureMode); r8712_joinbss_event_callback()
759 pnetwork->network.IELength = le32_to_cpu(pnetwork->network.IELength); r8712_joinbss_event_callback()
762 the_same_macaddr = !memcmp(pnetwork->network.MacAddress, r8712_joinbss_event_callback()
764 pnetwork->network.Length = r8712_joinbss_event_callback()
765 r8712_get_wlan_bssid_ex_sz(&pnetwork->network); r8712_joinbss_event_callback()
767 if (pnetwork->network.Length > sizeof(struct wlan_bssid_ex)) r8712_joinbss_event_callback()
769 if (pnetwork->join_res > 0) { r8712_joinbss_event_callback()
796 pnetwork->network. r8712_joinbss_event_callback()
804 pnetwork->network.MacAddress); r8712_joinbss_event_callback()
822 pnetwork->network.MacAddress); r8712_joinbss_event_callback()
826 pnetwork->network.MacAddress); r8712_joinbss_event_callback()
830 pnetwork->network.MacAddress); r8712_joinbss_event_callback()
833 ptarget_sta->aid = pnetwork->join_res; r8712_joinbss_event_callback()
881 memcpy(&cur_network->network, &pnetwork->network, r8712_joinbss_event_callback()
882 pnetwork->network.Length); r8712_joinbss_event_callback()
883 cur_network->aid = pnetwork->join_res; r8712_joinbss_event_callback()
885 switch (pnetwork->network.InfrastructureMode) { r8712_joinbss_event_callback()
920 kfree(pnetwork); r8712_joinbss_event_callback()
1130 struct wlan_network *pnetwork = NULL; r8712_select_and_join_from_scan() local
1141 pnetwork = pnetwork_max_rssi; r8712_select_and_join_from_scan()
1146 pnetwork = LIST_CONTAINOR(pmlmepriv->pscanned, r8712_select_and_join_from_scan()
1148 if (pnetwork == NULL) r8712_select_and_join_from_scan()
1152 dst_ssid = pnetwork->network.MacAddress; r8712_select_and_join_from_scan()
1158 &pnetwork->network)) { r8712_select_and_join_from_scan()
1174 dst_ssid = pnetwork->network.Ssid.Ssid; r8712_select_and_join_from_scan()
1176 if ((pnetwork->network.Ssid.SsidLength == r8712_select_and_join_from_scan()
1184 if (pnetwork->network.Rssi > r8712_select_and_join_from_scan()
1186 pnetwork_max_rssi = pnetwork; r8712_select_and_join_from_scan()
1188 pnetwork_max_rssi = pnetwork; r8712_select_and_join_from_scan()
1190 } else if (is_desired_network(adapter, pnetwork)) { r8712_select_and_join_from_scan()
1201 return r8712_joinbss_cmd(adapter, pnetwork); r8712_select_and_join_from_scan()
104 _free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) _free_network() argument
126 _free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) _free_network_nolock() argument
237 free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) free_network_nolock() argument
364 update_current_network(struct _adapter *adapter, struct wlan_bssid_ex *pnetwork) update_current_network() argument
445 rtl8711_add_network(struct _adapter *adapter, struct wlan_bssid_ex *pnetwork) rtl8711_add_network() argument
465 is_desired_network(struct _adapter *adapter, struct wlan_network *pnetwork) is_desired_network() argument
H A Drtl871x_cmd.c470 u8 r8712_joinbss_cmd(struct _adapter *padapter, struct wlan_network *pnetwork) r8712_joinbss_cmd() argument
479 enum NDIS_802_11_NETWORK_INFRASTRUCTURE ndis_network_mode = pnetwork-> r8712_joinbss_cmd()
508 memcpy(psecnetwork, &pnetwork->network, sizeof(*psecnetwork)); r8712_joinbss_cmd()
524 &pnetwork->network.MacAddress[0]); r8712_joinbss_cmd()
526 &pnetwork->network.IEs[0], r8712_joinbss_cmd()
528 pnetwork->network.IELength); r8712_joinbss_cmd()
534 &pnetwork->network.IEs[0], r8712_joinbss_cmd()
536 pnetwork->network.IELength, r8712_joinbss_cmd()
554 &pnetwork->network.IEs[0], r8712_joinbss_cmd()
556 pnetwork->network.IELength, r8712_joinbss_cmd()
896 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf; r8712_createbss_cmd_callback() local
905 pnetwork->Length = le32_to_cpu(pnetwork->Length); r8712_createbss_cmd_callback()
906 pnetwork->Ssid.SsidLength = le32_to_cpu(pnetwork->Ssid.SsidLength); r8712_createbss_cmd_callback()
907 pnetwork->Privacy = le32_to_cpu(pnetwork->Privacy); r8712_createbss_cmd_callback()
908 pnetwork->Rssi = le32_to_cpu(pnetwork->Rssi); r8712_createbss_cmd_callback()
909 pnetwork->NetworkTypeInUse = le32_to_cpu(pnetwork->NetworkTypeInUse); r8712_createbss_cmd_callback()
910 pnetwork->Configuration.ATIMWindow = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
912 pnetwork->Configuration.DSConfig = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
914 pnetwork->Configuration.FHConfig.DwellTime = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
916 pnetwork->Configuration.FHConfig.HopPattern = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
918 pnetwork->Configuration.FHConfig.HopSet = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
920 pnetwork->Configuration.FHConfig.Length = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
922 pnetwork->Configuration.Length = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
924 pnetwork->InfrastructureMode = le32_to_cpu(pnetwork-> r8712_createbss_cmd_callback()
926 pnetwork->IELength = le32_to_cpu(pnetwork->IELength); r8712_createbss_cmd_callback()
931 pnetwork->MacAddress); r8712_createbss_cmd_callback()
934 pnetwork->MacAddress); r8712_createbss_cmd_callback()
950 pnetwork->Length = r8712_get_wlan_bssid_ex_sz(pnetwork); r8712_createbss_cmd_callback()
951 memcpy(&(pwlan->network), pnetwork, pnetwork->Length); r8712_createbss_cmd_callback()
953 memcpy(&tgt_network->network, pnetwork, r8712_createbss_cmd_callback()
954 (r8712_get_wlan_bssid_ex_sz(pnetwork))); r8712_createbss_cmd_callback()
H A Drtl871x_ioctl_linux.c142 struct wlan_network *pnetwork, translate_scan()
153 if ((pnetwork->network.Configuration.DSConfig < 1) || translate_scan()
154 (pnetwork->network.Configuration.DSConfig > 14)) { translate_scan()
155 if (pnetwork->network.Configuration.DSConfig < 1) translate_scan()
156 pnetwork->network.Configuration.DSConfig = 1; translate_scan()
158 pnetwork->network.Configuration.DSConfig = 14; translate_scan()
163 ether_addr_copy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress); translate_scan()
168 iwe.u.data.length = min_t(u32, pnetwork->network.Ssid.SsidLength, 32); translate_scan()
170 pnetwork->network.Ssid.Ssid); translate_scan()
172 p = r8712_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, translate_scan()
173 &ht_ielen, pnetwork->network.IELength - 12); translate_scan()
181 if (r8712_is_cckratesonly_included(pnetwork->network.rates)) { translate_scan()
186 } else if (r8712_is_cckrates_included(pnetwork->network.rates)) { translate_scan()
200 memcpy((u8 *)&cap, r8712_get_capability_from_ie(pnetwork->network.IEs), translate_scan()
215 u8 dsconfig = pnetwork->network.Configuration.DSConfig; translate_scan()
220 pnetwork->network.Configuration. translate_scan()
226 iwe.u.freq.i = (u8)pnetwork->network.Configuration.DSConfig; translate_scan()
238 pnetwork->network.Ssid.Ssid); translate_scan()
246 while (pnetwork->network.rates[i] != 0) { translate_scan()
248 iwe.u.bitrate.value = (pnetwork->network.rates[i++] & translate_scan()
263 r8712_get_sec_ie(pnetwork->network.IEs, translate_scan()
264 pnetwork->network.IELength, rsn_ie, &rsn_len, translate_scan()
312 if (r8712_get_wps_ie(pnetwork->network.IEs, translate_scan()
313 pnetwork->network.IELength, translate_scan()
325 rssi = r8712_signal_scale_mapping(pnetwork->network.Rssi); translate_scan()
1050 struct wlan_network *pnetwork = NULL; r8711_wx_set_wap() local
1066 pnetwork = LIST_CONTAINOR(pmlmepriv->pscanned, r8711_wx_set_wap()
1069 dst_bssid = pnetwork->network.MacAddress; r8711_wx_set_wap()
1072 pnetwork->network.InfrastructureMode); r8711_wx_set_wap()
1196 struct wlan_network *pnetwork = NULL; r8711_wx_get_scan() local
1222 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); r8711_wx_get_scan()
1223 ev = translate_scan(padapter, a, pnetwork, ev, stop); r8711_wx_get_scan()
1251 struct wlan_network *pnetwork = NULL; r8711_wx_set_essid() local
1277 pnetwork = LIST_CONTAINOR(pmlmepriv->pscanned, r8711_wx_set_essid()
1280 dst_ssid = pnetwork->network.Ssid.Ssid; r8711_wx_set_essid()
1282 && (pnetwork->network.Ssid.SsidLength == r8711_wx_set_essid()
1286 if (pnetwork->network. r8711_wx_set_essid()
1297 pnetwork->network.InfrastructureMode); r8711_wx_set_essid()
1961 struct wlan_network *pnetwork = NULL; r871x_get_ap_info() local
1991 pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list); r871x_get_ap_info()
2000 if (ether_addr_equal(bssid, pnetwork->network.MacAddress)) { r871x_get_ap_info()
2002 pbuf = r8712_get_wpa_ie(&pnetwork->network.IEs[12], r871x_get_ap_info()
2003 &wpa_ielen, pnetwork->network.IELength - 12); r871x_get_ap_info()
2008 pbuf = r8712_get_wpa2_ie(&pnetwork->network.IEs[12], r871x_get_ap_info()
2009 &wpa_ielen, pnetwork->network.IELength - 12); r871x_get_ap_info()
140 translate_scan(struct _adapter *padapter, struct iw_request_info *info, struct wlan_network *pnetwork, char *start, char *stop) translate_scan() argument
H A Drtl871x_ioctl_set.c178 struct wlan_network *pnetwork = &pmlmepriv->cur_network; r8712_set_802_11_ssid() local
193 pnetwork)) { r8712_set_802_11_ssid()
H A Drtl871x_mlme.h230 int r8712_is_same_ibss(struct _adapter *adapter, struct wlan_network *pnetwork);
H A Drtl871x_cmd.h727 struct wlan_network *pnetwork);
/linux-4.4.14/drivers/staging/rtl8188eu/core/
H A Drtw_mlme.c43 struct wlan_network *pnetwork; rtw_init_mlme_priv() local
72 pnetwork = (struct wlan_network *)pbuf; rtw_init_mlme_priv()
75 INIT_LIST_HEAD(&(pnetwork->list)); rtw_init_mlme_priv()
77 list_add_tail(&(pnetwork->list), &(pmlmepriv->free_bss_pool.queue)); rtw_init_mlme_priv()
79 pnetwork++; rtw_init_mlme_priv()
133 struct wlan_network *pnetwork; _rtw_alloc_network() local
140 pnetwork = NULL; _rtw_alloc_network()
145 pnetwork = container_of(plist, struct wlan_network, list); _rtw_alloc_network()
147 list_del_init(&pnetwork->list); _rtw_alloc_network()
150 pnetwork->network_type = 0; _rtw_alloc_network()
151 pnetwork->fixed = false; _rtw_alloc_network()
152 pnetwork->last_scanned = jiffies; _rtw_alloc_network()
153 pnetwork->aid = 0; _rtw_alloc_network()
154 pnetwork->join_res = 0; _rtw_alloc_network()
161 return pnetwork; _rtw_alloc_network()
164 static void _rtw_free_network(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork, u8 isfreeall) _rtw_free_network() argument
170 if (pnetwork == NULL) _rtw_free_network()
173 if (pnetwork->fixed) _rtw_free_network()
180 delta_time = (curr_time - pnetwork->last_scanned)/HZ; _rtw_free_network()
185 list_del_init(&(pnetwork->list)); _rtw_free_network()
186 list_add_tail(&(pnetwork->list), &(free_queue->queue)); _rtw_free_network()
191 void _rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) _rtw_free_network_nolock() argument
195 if (pnetwork == NULL) _rtw_free_network_nolock()
197 if (pnetwork->fixed) _rtw_free_network_nolock()
199 list_del_init(&(pnetwork->list)); _rtw_free_network_nolock()
200 list_add_tail(&(pnetwork->list), get_list_head(free_queue)); _rtw_free_network_nolock()
212 struct wlan_network *pnetwork = NULL; rtw_find_network() local
216 pnetwork = NULL; rtw_find_network()
223 pnetwork = container_of(plist, struct wlan_network, list); rtw_find_network()
224 if (!memcmp(addr, pnetwork->network.MacAddress, ETH_ALEN)) rtw_find_network()
229 pnetwork = NULL; rtw_find_network()
231 return pnetwork; rtw_find_network()
238 struct wlan_network *pnetwork; rtw_free_network_queue() local
248 pnetwork = container_of(plist, struct wlan_network, list); rtw_free_network_queue()
252 _rtw_free_network(pmlmepriv, pnetwork, isfreeall); rtw_free_network_queue()
312 struct wlan_network *pnetwork) rtw_free_network_nolock()
314 _rtw_free_network_nolock(pmlmepriv, pnetwork); rtw_free_network_nolock()
317 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork) rtw_is_same_ibss() argument
323 (pnetwork->network.Privacy == 0)) rtw_is_same_ibss()
326 (pnetwork->network.Privacy == 1)) rtw_is_same_ibss()
427 static void update_current_network(struct adapter *adapter, struct wlan_bssid_ex *pnetwork) update_current_network() argument
432 (is_same_network(&(pmlmepriv->cur_network.network), pnetwork))) { update_current_network()
433 update_network(&(pmlmepriv->cur_network.network), pnetwork, adapter, true); update_current_network()
448 struct wlan_network *pnetwork = NULL; rtw_update_scanned_network() local
456 pnetwork = container_of(plist, struct wlan_network, list); rtw_update_scanned_network()
458 if (is_same_network(&(pnetwork->network), target)) rtw_update_scanned_network()
461 time_after(oldest->last_scanned, pnetwork->last_scanned)) rtw_update_scanned_network()
462 oldest = pnetwork; rtw_update_scanned_network()
470 pnetwork = oldest; rtw_update_scanned_network()
473 memcpy(&(pnetwork->network), target, get_wlan_bssid_ex_sz(target)); rtw_update_scanned_network()
475 pnetwork->fixed = false; rtw_update_scanned_network()
476 pnetwork->last_scanned = jiffies; rtw_update_scanned_network()
478 pnetwork->network_type = 0; rtw_update_scanned_network()
479 pnetwork->aid = 0; rtw_update_scanned_network()
480 pnetwork->join_res = 0; rtw_update_scanned_network()
483 if (pnetwork->network.PhyInfo.SignalQuality == 101) rtw_update_scanned_network()
484 pnetwork->network.PhyInfo.SignalQuality = 0; rtw_update_scanned_network()
488 pnetwork = rtw_alloc_network(pmlmepriv); /* will update scan_time */ rtw_update_scanned_network()
490 if (pnetwork == NULL) { rtw_update_scanned_network()
498 memcpy(&(pnetwork->network), target, bssid_ex_sz); rtw_update_scanned_network()
500 pnetwork->last_scanned = jiffies; rtw_update_scanned_network()
503 if (pnetwork->network.PhyInfo.SignalQuality == 101) rtw_update_scanned_network()
504 pnetwork->network.PhyInfo.SignalQuality = 0; rtw_update_scanned_network()
505 list_add_tail(&(pnetwork->list), &(queue->queue)); rtw_update_scanned_network()
514 pnetwork->last_scanned = jiffies; rtw_update_scanned_network()
517 if ((pnetwork->network.IELength > target->IELength) && (target->Reserved[0] == 1)) rtw_update_scanned_network()
520 update_network(&(pnetwork->network), target, adapter, update_ie); rtw_update_scanned_network()
529 struct wlan_bssid_ex *pnetwork) rtw_add_network()
531 update_current_network(adapter, pnetwork); rtw_add_network()
532 rtw_update_scanned_network(adapter, pnetwork); rtw_add_network()
543 static int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwork) rtw_is_desired_network() argument
556 privacy = pnetwork->network.Privacy; rtw_is_desired_network()
559 if (rtw_get_wps_ie(pnetwork->network.IEs+_FIXED_IE_LENGTH_, pnetwork->network.IELength-_FIXED_IE_LENGTH_, NULL, &wps_ielen) != NULL) rtw_is_desired_network()
576 if (pnetwork->network.InfrastructureMode != pmlmepriv->cur_network.network.InfrastructureMode) rtw_is_desired_network()
595 struct wlan_bssid_ex *pnetwork; rtw_survey_event_callback() local
598 pnetwork = (struct wlan_bssid_ex *)pbuf; rtw_survey_event_callback()
600 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_survey_event_callback, ssid=%s\n", pnetwork->Ssid.Ssid)); rtw_survey_event_callback()
602 len = get_wlan_bssid_ex_sz(pnetwork); rtw_survey_event_callback()
611 if (!memcmp(&(pmlmepriv->cur_network.network.MacAddress), pnetwork->MacAddress, ETH_ALEN)) { rtw_survey_event_callback()
614 memcpy(pmlmepriv->cur_network.network.IEs, pnetwork->IEs, 8); rtw_survey_event_callback()
616 ibss_wlan = rtw_find_network(&pmlmepriv->scanned_queue, pnetwork->MacAddress); rtw_survey_event_callback()
618 memcpy(ibss_wlan->network.IEs, pnetwork->IEs, 8); rtw_survey_event_callback()
628 if (pnetwork->Ssid.Ssid[0] == 0) rtw_survey_event_callback()
629 pnetwork->Ssid.SsidLength = 0; rtw_survey_event_callback()
630 rtw_add_network(adapter, pnetwork); rtw_survey_event_callback()
902 static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, struct wlan_network *pnetwork) rtw_joinbss_update_stainfo() argument
909 psta = rtw_get_stainfo(pstapriv, pnetwork->network.MacAddress); rtw_joinbss_update_stainfo()
911 psta = rtw_alloc_stainfo(pstapriv, pnetwork->network.MacAddress); rtw_joinbss_update_stainfo()
915 psta->aid = pnetwork->join_res; rtw_joinbss_update_stainfo()
970 /* pnetwork: returns from rtw_joinbss_event_callback */
972 static void rtw_joinbss_update_network(struct adapter *padapter, struct wlan_network *ptarget_wlan, struct wlan_network *pnetwork) rtw_joinbss_update_network() argument
981 get_fwstate(pmlmepriv), pnetwork->network.MacAddress)); rtw_joinbss_update_network()
985 memcpy(&cur_network->network, &pnetwork->network, pnetwork->network.Length); rtw_joinbss_update_network()
986 /* some IEs in pnetwork is wrong, so we should use ptarget_wlan IEs */ rtw_joinbss_update_network()
990 cur_network->aid = pnetwork->join_res; rtw_joinbss_update_network()
1001 switch (pnetwork->network.InfrastructureMode) { rtw_joinbss_update_network()
1024 /* pnetwork: returns from rtw_joinbss_event_callback */
1028 /* if join_res > 0, update "cur_network->network" from "pnetwork->network" if (ptarget_wlan != NULL). */
1035 struct wlan_network *pnetwork = (struct wlan_network *)pbuf; rtw_joinbss_event_prehandle() local
1040 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("joinbss event call back received with res=%d\n", pnetwork->join_res)); rtw_joinbss_event_prehandle()
1050 the_same_macaddr = !memcmp(pnetwork->network.MacAddress, cur_network->network.MacAddress, ETH_ALEN); rtw_joinbss_event_prehandle()
1052 pnetwork->network.Length = get_wlan_bssid_ex_sz(&pnetwork->network); rtw_joinbss_event_prehandle()
1053 if (pnetwork->network.Length > sizeof(struct wlan_bssid_ex)) { rtw_joinbss_event_prehandle()
1062 if (pnetwork->join_res > 0) { rtw_joinbss_event_prehandle()
1081 ptarget_wlan = rtw_find_network(&pmlmepriv->scanned_queue, pnetwork->network.MacAddress); rtw_joinbss_event_prehandle()
1088 ptarget_wlan = rtw_find_network(&pmlmepriv->scanned_queue, pnetwork->network.MacAddress); rtw_joinbss_event_prehandle()
1097 rtw_joinbss_update_network(adapter, ptarget_wlan, pnetwork); rtw_joinbss_event_prehandle()
1107 ptarget_sta = rtw_joinbss_update_stainfo(adapter, pnetwork); rtw_joinbss_event_prehandle()
1136 } else if (pnetwork->join_res == -4) { rtw_joinbss_event_prehandle()
1157 struct wlan_network *pnetwork = (struct wlan_network *)pbuf; rtw_joinbss_event_callback() local
1159 mlmeext_joinbss_event_callback(adapter, pnetwork->join_res); rtw_joinbss_event_callback()
1533 struct wlan_network *pnetwork = NULL; rtw_select_and_join_from_scanned_queue() local
1542 pnetwork = container_of(pmlmepriv->pscanned, struct wlan_network, list); rtw_select_and_join_from_scanned_queue()
1543 if (pnetwork == NULL) { rtw_select_and_join_from_scanned_queue()
1544 RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s return _FAIL:(pnetwork==NULL)\n", __func__)); rtw_select_and_join_from_scanned_queue()
1549 rtw_check_join_candidate(pmlmepriv, &candidate, pnetwork); rtw_select_and_join_from_scanned_queue()
2146 struct wlan_network *pnetwork; _rtw_roaming() local
2149 pnetwork = tgt_network; _rtw_roaming()
2151 pnetwork = &pmlmepriv->cur_network; _rtw_roaming()
2155 pnetwork->network.Ssid.Ssid, pnetwork->network.MacAddress, _rtw_roaming()
2156 pnetwork->network.Ssid.SsidLength); _rtw_roaming()
2157 memcpy(&pmlmepriv->assoc_ssid, &pnetwork->network.Ssid, sizeof(struct ndis_802_11_ssid)); _rtw_roaming()
311 rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) rtw_free_network_nolock() argument
528 rtw_add_network(struct adapter *adapter, struct wlan_bssid_ex *pnetwork) rtw_add_network() argument
H A Drtw_ieee80211.c1185 static int rtw_get_cipher_info(struct wlan_network *pnetwork) rtw_get_cipher_info() argument
1191 pbuf = rtw_get_wpa_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); rtw_get_cipher_info()
1196 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; rtw_get_cipher_info()
1197 pnetwork->BcnInfo.group_cipher = group_cipher; rtw_get_cipher_info()
1198 pnetwork->BcnInfo.is_8021x = is8021x; rtw_get_cipher_info()
1199 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("%s: pnetwork->pairwise_cipher: %d, is_8021x is %d", rtw_get_cipher_info()
1200 __func__, pnetwork->BcnInfo.pairwise_cipher, pnetwork->BcnInfo.is_8021x)); rtw_get_cipher_info()
1204 pbuf = rtw_get_wpa2_ie(&pnetwork->network.IEs[12], &wpa_ielen, pnetwork->network.IELength-12); rtw_get_cipher_info()
1210 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; rtw_get_cipher_info()
1211 pnetwork->BcnInfo.group_cipher = group_cipher; rtw_get_cipher_info()
1212 pnetwork->BcnInfo.is_8021x = is8021x; rtw_get_cipher_info()
1213 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("%s: pnetwork->pairwise_cipher: %d," rtw_get_cipher_info()
1214 "pnetwork->group_cipher is %d, is_8021x is %d", __func__, pnetwork->BcnInfo.pairwise_cipher, rtw_get_cipher_info()
1215 pnetwork->BcnInfo.group_cipher, pnetwork->BcnInfo.is_8021x)); rtw_get_cipher_info()
1224 void rtw_get_bcn_info(struct wlan_network *pnetwork) rtw_get_bcn_info() argument
1235 memcpy(&le_tmp, rtw_get_capability_from_ie(pnetwork->network.IEs), 2); rtw_get_bcn_info()
1239 pnetwork->network.Privacy = 1; rtw_get_bcn_info()
1241 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_OPENSYS; rtw_get_bcn_info()
1243 rtw_get_sec_ie(pnetwork->network.IEs, pnetwork->network.IELength, NULL, &rsn_len, NULL, &wpa_len); rtw_get_bcn_info()
1244 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_get_bcn_info: ssid =%s\n", pnetwork->network.Ssid.Ssid)); rtw_get_bcn_info()
1246 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_get_bcn_info: ssid =%s\n", pnetwork->network.Ssid.Ssid)); rtw_get_bcn_info()
1250 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WPA2; rtw_get_bcn_info()
1252 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WPA; rtw_get_bcn_info()
1255 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WEP; rtw_get_bcn_info()
1257 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_get_bcn_info: pnetwork->encryp_protocol is %x\n", rtw_get_bcn_info()
1258 pnetwork->BcnInfo.encryp_protocol)); rtw_get_bcn_info()
1259 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_get_bcn_info: pnetwork->encryp_protocol is %x\n", rtw_get_bcn_info()
1260 pnetwork->BcnInfo.encryp_protocol)); rtw_get_bcn_info()
1261 rtw_get_cipher_info(pnetwork); rtw_get_bcn_info()
1265 p = rtw_get_ie(pnetwork->network.IEs + _FIXED_IE_LENGTH_, _HT_CAPABILITY_IE_, &len, pnetwork->network.IELength - _FIXED_IE_LENGTH_); rtw_get_bcn_info()
1268 pnetwork->BcnInfo.ht_cap_info = pht_cap->cap_info; rtw_get_bcn_info()
1270 pnetwork->BcnInfo.ht_cap_info = 0; rtw_get_bcn_info()
1273 p = rtw_get_ie(pnetwork->network.IEs + _FIXED_IE_LENGTH_, _HT_ADD_INFO_IE_, &len, pnetwork->network.IELength - _FIXED_IE_LENGTH_); rtw_get_bcn_info()
1276 pnetwork->BcnInfo.ht_info_infos_0 = pht_info->infos[0]; rtw_get_bcn_info()
1278 pnetwork->BcnInfo.ht_info_infos_0 = 0; rtw_get_bcn_info()
H A Drtw_ap.c167 void rtw_add_bcn_ie(struct adapter *padapter, struct wlan_bssid_ex *pnetwork, rtw_add_bcn_ie() argument
172 u8 *pie = pnetwork->IEs; rtw_add_bcn_ie()
177 for (i = sizeof(struct ndis_802_11_fixed_ie); i < pnetwork->IELength;) { rtw_add_bcn_ie()
178 pIE = (struct ndis_802_11_var_ie *)(pnetwork->IEs + i); rtw_add_bcn_ie()
201 remainder_ielen = pnetwork->IELength - ie_offset - ielen; rtw_add_bcn_ie()
230 pnetwork->IELength = offset + remainder_ielen; rtw_add_bcn_ie()
233 void rtw_remove_bcn_ie(struct adapter *padapter, struct wlan_bssid_ex *pnetwork, rtw_remove_bcn_ie() argument
239 u8 *pie = pnetwork->IEs; rtw_remove_bcn_ie()
242 pnetwork->IELength - _FIXED_IE_LENGTH_); rtw_remove_bcn_ie()
250 remainder_ielen = pnetwork->IELength - ie_offset - ielen; rtw_remove_bcn_ie()
270 pnetwork->IELength = offset + remainder_ielen; rtw_remove_bcn_ie()
742 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; start_bss_network() local
748 bcn_interval = (u16)pnetwork->Configuration.BeaconPeriod; start_bss_network()
749 cur_channel = pnetwork->Configuration.DSConfig; start_bss_network()
757 if (!rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_, pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL)) start_bss_network()
781 rtw_hal_set_hwreg(padapter, HW_VAR_BSSID, pnetwork->MacAddress); start_bss_network()
800 UpdateBrateTbl(padapter, pnetwork->SupportedRates); start_bss_network()
801 rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates); start_bss_network()
808 p = rtw_get_ie((pnetwork->IEs + sizeof(struct ndis_802_11_fixed_ie)), _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - sizeof(struct ndis_802_11_fixed_ie))); start_bss_network()
843 update_capinfo(padapter, rtw_get_capability((struct wlan_bssid_ex *)pnetwork)); start_bss_network()
846 memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length); start_bss_network()
1253 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); update_bcn_erpinfo_ie() local
1254 unsigned char *p, *ie = pnetwork->IEs; update_bcn_erpinfo_ie()
1264 (pnetwork->IELength - _BEACON_IE_OFFSET_)); update_bcn_erpinfo_ie()
1315 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); update_bcn_wps_ie() local
1316 unsigned char *ie = pnetwork->IEs; update_bcn_wps_ie()
1317 u32 ielen = pnetwork->IELength; update_bcn_wps_ie()
1351 pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen; update_bcn_wps_ie()
H A Drtw_cmd.c385 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork) rtw_joinbss_cmd() argument
397 enum ndis_802_11_network_infra ndis_network_mode = pnetwork->network.InfrastructureMode; rtw_joinbss_cmd()
448 memcpy(psecnetwork, &pnetwork->network, get_wlan_bssid_ex_sz(&pnetwork->network)); rtw_joinbss_cmd()
464 memcpy(&pmlmepriv->assoc_bssid[0], &pnetwork->network.MacAddress[0], ETH_ALEN); rtw_joinbss_cmd()
466 psecnetwork->IELength = rtw_restruct_sec_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pnetwork->network.IELength); rtw_joinbss_cmd()
474 tmp_len = rtw_restruct_wmm_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], pnetwork->network.IELength, psecnetwork->IELength); rtw_joinbss_cmd()
496 rtw_restructure_ht_ie(padapter, &pnetwork->network.IEs[0], &psecnetwork->IEs[0], rtw_joinbss_cmd()
497 pnetwork->network.IELength, &psecnetwork->IELength); rtw_joinbss_cmd()
501 pmlmeinfo->assoc_AP_vendor = check_assoc_AP(pnetwork->network.IEs, pnetwork->network.IELength); rtw_joinbss_cmd()
1293 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf; rtw_createbss_cmd_callback() local
1308 psta = rtw_get_stainfo(&padapter->stapriv, pnetwork->MacAddress); rtw_createbss_cmd_callback()
1310 psta = rtw_alloc_stainfo(&padapter->stapriv, pnetwork->MacAddress); rtw_createbss_cmd_callback()
1333 pnetwork->Length = get_wlan_bssid_ex_sz(pnetwork); rtw_createbss_cmd_callback()
1334 memcpy(&(pwlan->network), pnetwork, pnetwork->Length); rtw_createbss_cmd_callback()
1336 memcpy(&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz(pnetwork))); rtw_createbss_cmd_callback()
H A Drtw_mlme_ext.c769 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_auth() local
838 memcpy(pwlanhdr->addr1, pnetwork->MacAddress, ETH_ALEN); issue_auth()
840 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); issue_auth()
913 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_asocrsp() local
914 u8 *ie = pnetwork->IEs; issue_asocrsp()
938 memcpy((void *)GetAddr3Ptr(pwlanhdr), pnetwork->MacAddress, ETH_ALEN); issue_asocrsp()
975 pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_CAPABILITY_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_)); issue_asocrsp()
983 pbuf = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _HT_ADD_INFO_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_)); issue_asocrsp()
997 pbuf = rtw_get_ie(pbuf, _VENDOR_SPECIFIC_IE_, &ie_len, (pnetwork->IELength - _BEACON_IE_OFFSET_ - (ie_len + 2))); issue_asocrsp()
1044 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_assocreq() local
1060 memcpy(pwlanhdr->addr1, pnetwork->MacAddress, ETH_ALEN); issue_assocreq()
1062 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); issue_assocreq()
1236 struct wlan_bssid_ex *pnetwork; _issue_nulldata() local
1244 pnetwork = &(pmlmeinfo->network); _issue_nulldata()
1273 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); _issue_nulldata()
1305 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_nulldata() local
1309 da = pnetwork->MacAddress; issue_nulldata()
1355 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); _issue_qos_nulldata() local
1399 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); _issue_qos_nulldata()
1430 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_qos_nulldata() local
1434 da = pnetwork->MacAddress; issue_qos_nulldata()
1477 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); _issue_deauth() local
1500 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); _issue_deauth()
1654 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); issue_action_BA() local
1677 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); issue_action_BA()
1795 struct wlan_network *pnetwork = NULL; issue_action_BSSCoexistPacket() local
1874 pnetwork = container_of(plist, struct wlan_network, list); issue_action_BSSCoexistPacket()
1878 pbss_network = (struct wlan_bssid_ex *)&pnetwork->network; issue_action_BSSCoexistPacket()
2280 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); start_create_ibss() local
2281 pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig; start_create_ibss()
2282 pmlmeinfo->bcn_interval = get_beacon_interval(pnetwork); start_create_ibss()
2288 caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); start_create_ibss()
2330 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); start_clnt_join() local
2333 pmlmeext->cur_channel = (u8)pnetwork->Configuration.DSConfig; start_clnt_join()
2334 pmlmeinfo->bcn_interval = get_beacon_interval(pnetwork); start_clnt_join()
2340 caps = rtw_get_capability((struct wlan_bssid_ex *)pnetwork); start_clnt_join()
2431 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); receive_disconnect() local
2434 if (memcmp(MacAddr, pnetwork->MacAddress, ETH_ALEN)) receive_disconnect()
2672 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); OnBeacon() local
2679 if (!memcmp(GetAddr3Ptr(pframe), pnetwork->MacAddress, ETH_ALEN)) { OnBeacon()
3533 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); OnDeAuth() local
3536 if (memcmp(GetAddr3Ptr(pframe), pnetwork->MacAddress, ETH_ALEN)) OnDeAuth()
3588 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); OnDisassoc() local
3591 if (memcmp(GetAddr3Ptr(pframe), pnetwork->MacAddress, ETH_ALEN)) OnDisassoc()
5005 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); createbss_hdl() local
5048 memcpy(pnetwork, pbuf, FIELD_OFFSET(struct wlan_bssid_ex, IELength)); createbss_hdl()
5049 pnetwork->IELength = ((struct wlan_bssid_ex *)pbuf)->IELength; createbss_hdl()
5051 if (pnetwork->IELength > MAX_IE_SZ)/* Check pbuf->IELength */ createbss_hdl()
5054 memcpy(pnetwork->IEs, ((struct wlan_bssid_ex *)pbuf)->IEs, pnetwork->IELength); createbss_hdl()
5069 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); join_cmd_hdl() local
5076 issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, 5, 100); join_cmd_hdl()
5107 memcpy(pnetwork, pbuf, FIELD_OFFSET(struct wlan_bssid_ex, IELength)); join_cmd_hdl()
5108 pnetwork->IELength = ((struct wlan_bssid_ex *)pbuf)->IELength; join_cmd_hdl()
5110 if (pnetwork->IELength > MAX_IE_SZ)/* Check pbuf->IELength */ join_cmd_hdl()
5113 memcpy(pnetwork->IEs, ((struct wlan_bssid_ex *)pbuf)->IEs, pnetwork->IELength); join_cmd_hdl()
5117 for (i = sizeof(struct ndis_802_11_fixed_ie); i < pnetwork->IELength;) { join_cmd_hdl()
5118 pIE = (struct ndis_802_11_var_ie *)(pnetwork->IEs + i); join_cmd_hdl()
5181 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)(&(pmlmeinfo->network)); disconnect_hdl() local
5185 issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, param->deauth_timeout_ms/100, 100); disconnect_hdl()
H A Drtw_ioctl_set.c235 struct wlan_network *pnetwork = &pmlmepriv->cur_network; rtw_set_802_11_ssid() local
267 if (!rtw_is_same_ibss(padapter, pnetwork)) { rtw_set_802_11_ssid()
H A Drtw_wlan_util.c1028 ("%s pnetwork->pairwise_cipher: %d, group_cipher is %d, is_8021x is %d\n", __func__, rtw_check_bcn_info()
1037 ("%s pnetwork->pairwise_cipher: %d, pnetwork->group_cipher is %d, is_802x is %d\n", rtw_check_bcn_info()
/linux-4.4.14/drivers/staging/rtl8723au/core/
H A Drtw_mlme.c104 struct wlan_network *pnetwork; rtw_alloc_network() local
106 pnetwork = kzalloc(sizeof(struct wlan_network), gfp); rtw_alloc_network()
107 if (pnetwork) { rtw_alloc_network()
108 INIT_LIST_HEAD(&pnetwork->list); rtw_alloc_network()
109 pnetwork->network_type = 0; rtw_alloc_network()
110 pnetwork->fixed = false; rtw_alloc_network()
111 pnetwork->last_scanned = jiffies; rtw_alloc_network()
112 pnetwork->join_res = 0; rtw_alloc_network()
115 return pnetwork; rtw_alloc_network()
119 struct wlan_network *pnetwork) _rtw_free_network23a()
121 if (!pnetwork) _rtw_free_network23a()
124 if (pnetwork->fixed == true) _rtw_free_network23a()
127 list_del_init(&pnetwork->list); _rtw_free_network23a()
129 kfree(pnetwork); _rtw_free_network23a()
141 struct wlan_network *pnetwork = NULL; rtw_find_network23a() local
144 pnetwork = NULL; rtw_find_network23a()
154 pnetwork = container_of(plist, struct wlan_network, list); rtw_find_network23a()
156 if (ether_addr_equal(addr, pnetwork->network.MacAddress)) rtw_find_network23a()
163 pnetwork = NULL; rtw_find_network23a()
169 return pnetwork; rtw_find_network23a()
175 struct wlan_network *pnetwork; rtw_free_network_queue23a() local
184 pnetwork = container_of(plist, struct wlan_network, list); list_for_each_safe()
186 _rtw_free_network23a(pmlmepriv, pnetwork); list_for_each_safe()
231 struct wlan_network *pnetwork; _rtw_roaming() local
235 pnetwork = tgt_network; _rtw_roaming()
237 pnetwork = &pmlmepriv->cur_network; _rtw_roaming()
241 pnetwork->network.Ssid.ssid, _rtw_roaming()
242 pnetwork->network.MacAddress, _rtw_roaming()
243 pnetwork->network.Ssid.ssid_len); _rtw_roaming()
244 memcpy(&pmlmepriv->assoc_ssid, &pnetwork->network.Ssid, _rtw_roaming()
283 struct wlan_network *pnetwork) rtw_free_network_nolock()
285 _rtw_free_network23a(pmlmepriv, pnetwork); rtw_free_network_nolock()
289 struct wlan_network *pnetwork) rtw_is_same_ibss23a()
295 pnetwork->network.Privacy == 0) rtw_is_same_ibss23a()
298 pnetwork->network.Privacy == 1) rtw_is_same_ibss23a()
415 struct wlan_bssid_ex *pnetwork) update_current_network()
420 is_same_network23a(&pmlmepriv->cur_network.network, pnetwork)) { update_current_network()
422 pnetwork, adapter, true); update_current_network()
440 struct wlan_network *pnetwork = NULL; rtw_update_scanned_network() local
450 pnetwork = container_of(plist, struct wlan_network, list); list_for_each()
452 if (is_same_network23a(&pnetwork->network, target)) { list_for_each()
457 pnetwork->last_scanned)) list_for_each()
458 oldest = pnetwork; list_for_each()
464 pnetwork = rtw_alloc_network(pmlmepriv, GFP_ATOMIC);
465 if (!pnetwork) {
471 pnetwork = oldest;
473 list_add_tail(&pnetwork->list, &queue->queue);
477 memcpy(&pnetwork->network, target, bssid_ex_sz);
480 pnetwork->fixed = false;
481 pnetwork->last_scanned = jiffies;
483 pnetwork->network_type = 0;
484 pnetwork->join_res = 0;
487 if (pnetwork->network.SignalQuality == 101)
488 pnetwork->network.SignalQuality = 0;
498 pnetwork->last_scanned = jiffies;
502 if (pnetwork->network.IELength > target->IELength &&
506 update_network23a(&pnetwork->network, target, adapter,
515 struct wlan_bssid_ex *pnetwork) rtw_add_network()
517 update_current_network(adapter, pnetwork); rtw_add_network()
518 rtw_update_scanned_network(adapter, pnetwork); rtw_add_network()
528 struct wlan_network *pnetwork) rtw_is_desired_network()
537 privacy = pnetwork->network.Privacy; rtw_is_desired_network()
542 pnetwork->network.IEs, rtw_is_desired_network()
543 pnetwork->network.IELength)) rtw_is_desired_network()
562 if (pnetwork->network.ifmode != rtw_is_desired_network()
573 struct wlan_bssid_ex *pnetwork; rtw_survey_event_cb23a() local
577 pnetwork = survey->bss; rtw_survey_event_cb23a()
580 "rtw_survey_event_cb23a, ssid=%s\n", pnetwork->Ssid.ssid); rtw_survey_event_cb23a()
582 len = get_wlan_bssid_ex_sz(pnetwork); rtw_survey_event_cb23a()
594 pnetwork->MacAddress)) { rtw_survey_event_cb23a()
598 pnetwork->beacon_interval; rtw_survey_event_cb23a()
600 pnetwork->capability; rtw_survey_event_cb23a()
601 pmlmepriv->cur_network.network.tsf = pnetwork->tsf; rtw_survey_event_cb23a()
605 pnetwork->MacAddress); rtw_survey_event_cb23a()
622 if (pnetwork->Ssid.ssid[0] == 0) rtw_survey_event_cb23a()
623 pnetwork->Ssid.ssid_len = 0; rtw_survey_event_cb23a()
625 rtw_add_network(adapter, pnetwork); rtw_survey_event_cb23a()
713 struct wlan_network *pnetwork; free_scanqueue() local
723 pnetwork = container_of(plist, struct wlan_network, list); list_for_each_safe()
724 pnetwork->fixed = false; list_for_each_safe()
725 _rtw_free_network23a(pmlmepriv, pnetwork); list_for_each_safe()
887 struct wlan_network *pnetwork) rtw_joinbss_update_stainfo()
894 psta = rtw_get_stainfo23a(pstapriv, pnetwork->network.MacAddress); rtw_joinbss_update_stainfo()
897 pnetwork->network.MacAddress, rtw_joinbss_update_stainfo()
903 psta->aid = pnetwork->join_res; rtw_joinbss_update_stainfo()
977 /* pnetwork : returns from rtw23a_joinbss_event_cb */
982 struct wlan_network *pnetwork) rtw_joinbss_update_network23a()
992 pnetwork->network.MacAddress); rtw_joinbss_update_network23a()
995 memcpy(&cur_network->network, &pnetwork->network, rtw_joinbss_update_network23a()
996 pnetwork->network.Length); rtw_joinbss_update_network23a()
997 /* some IEs in pnetwork is wrong, so we should use ptarget_wlan IEs */ rtw_joinbss_update_network23a()
1021 switch (pnetwork->network.ifmode) { rtw_joinbss_update_network23a()
1049 * pnetwork : returns from rtw23a_joinbss_event_cb
1055 * if join_res > 0, update "cur_network->network" from "pnetwork->network"
1064 struct wlan_network *pnetwork = (struct wlan_network *)pbuf; rtw_joinbss_event_prehandle23a() local
1071 pnetwork->join_res); rtw_joinbss_event_prehandle23a()
1082 if (ether_addr_equal(pnetwork->network.MacAddress, rtw_joinbss_event_prehandle23a()
1088 pnetwork->network.Length = get_wlan_bssid_ex_sz(&pnetwork->network); rtw_joinbss_event_prehandle23a()
1089 if (pnetwork->network.Length > sizeof(struct wlan_bssid_ex)) { rtw_joinbss_event_prehandle23a()
1100 if (pnetwork->join_res > 0) { rtw_joinbss_event_prehandle23a()
1120 ptarget_wlan = rtw_find_network23a(&pmlmepriv->scanned_queue, pnetwork->network.MacAddress); rtw_joinbss_event_prehandle23a()
1132 pnetwork->network.MacAddress); rtw_joinbss_event_prehandle23a()
1144 pnetwork); rtw_joinbss_event_prehandle23a()
1156 adapter, pnetwork); rtw_joinbss_event_prehandle23a()
1190 } else if (pnetwork->join_res == -4) { rtw_joinbss_event_prehandle23a()
1217 struct wlan_network *pnetwork = (struct wlan_network *)pbuf; rtw23a_joinbss_event_cb() local
1219 mlmeext_joinbss_event_callback23a(adapter, pnetwork->join_res); rtw23a_joinbss_event_cb()
1628 struct wlan_network *pnetwork, *candidate = NULL; rtw_select_candidate_from_queue() local
1636 pnetwork = container_of(plist, struct wlan_network, list); list_for_each_safe()
1637 if (!pnetwork) { list_for_each_safe()
1639 "%s: return _FAIL:(pnetwork == NULL)\n", list_for_each_safe()
1644 rtw_check_join_candidate(pmlmepriv, &candidate, pnetwork); list_for_each_safe()
118 _rtw_free_network23a(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) _rtw_free_network23a() argument
282 rtw_free_network_nolock(struct mlme_priv *pmlmepriv, struct wlan_network *pnetwork) rtw_free_network_nolock() argument
288 rtw_is_same_ibss23a(struct rtw_adapter *adapter, struct wlan_network *pnetwork) rtw_is_same_ibss23a() argument
414 update_current_network(struct rtw_adapter *adapter, struct wlan_bssid_ex *pnetwork) update_current_network() argument
514 rtw_add_network(struct rtw_adapter *adapter, struct wlan_bssid_ex *pnetwork) rtw_add_network() argument
527 rtw_is_desired_network(struct rtw_adapter *adapter, struct wlan_network *pnetwork) rtw_is_desired_network() argument
886 rtw_joinbss_update_stainfo(struct rtw_adapter *padapter, struct wlan_network *pnetwork) rtw_joinbss_update_stainfo() argument
980 rtw_joinbss_update_network23a(struct rtw_adapter *padapter, struct wlan_network *ptarget_wlan, struct wlan_network *pnetwork) rtw_joinbss_update_network23a() argument
H A Drtw_ieee80211.c686 static int rtw_get_cipher_info(struct wlan_network *pnetwork) rtw_get_cipher_info() argument
694 pie = pnetwork->network.IEs; rtw_get_cipher_info()
695 plen = pnetwork->network.IELength; rtw_get_cipher_info()
706 pnetwork->BcnInfo.pairwise_cipher = pairwise_cipher; rtw_get_cipher_info()
707 pnetwork->BcnInfo.group_cipher = group_cipher; rtw_get_cipher_info()
708 pnetwork->BcnInfo.is_8021x = is8021x; rtw_get_cipher_info()
710 "%s: pnetwork->pairwise_cipher: %d, is_8021x is %d\n", rtw_get_cipher_info()
711 __func__, pnetwork->BcnInfo.pairwise_cipher, rtw_get_cipher_info()
712 pnetwork->BcnInfo.is_8021x); rtw_get_cipher_info()
727 pnetwork->BcnInfo.pairwise_cipher = rtw_get_cipher_info()
729 pnetwork->BcnInfo.group_cipher = group_cipher; rtw_get_cipher_info()
730 pnetwork->BcnInfo.is_8021x = is8021x; rtw_get_cipher_info()
732 "%s: pnetwork->pairwise_cipher: %d,pnetwork->group_cipher is %d, is_8021x is %d\n", rtw_get_cipher_info()
734 pnetwork->BcnInfo.pairwise_cipher, rtw_get_cipher_info()
735 pnetwork->BcnInfo.group_cipher, rtw_get_cipher_info()
736 pnetwork->BcnInfo.is_8021x); rtw_get_cipher_info()
745 void rtw_get_bcn_info23a(struct wlan_network *pnetwork) rtw_get_bcn_info23a() argument
752 if (pnetwork->network.capability & WLAN_CAPABILITY_PRIVACY) { rtw_get_bcn_info23a()
754 pnetwork->network.Privacy = 1; rtw_get_bcn_info23a()
756 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_OPENSYS; rtw_get_bcn_info23a()
759 "%s: ssid =%s\n", __func__, pnetwork->network.Ssid.ssid); rtw_get_bcn_info23a()
761 pie = pnetwork->network.IEs; rtw_get_bcn_info23a()
762 pie_len = pnetwork->network.IELength; rtw_get_bcn_info23a()
766 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WPA2; rtw_get_bcn_info23a()
770 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WPA; rtw_get_bcn_info23a()
773 pnetwork->BcnInfo.encryp_protocol = ENCRYP_PROTOCOL_WEP; rtw_get_bcn_info23a()
776 "%s: pnetwork->encryp_protocol is %x\n", __func__, rtw_get_bcn_info23a()
777 pnetwork->BcnInfo.encryp_protocol); rtw_get_bcn_info23a()
779 "%s: pnetwork->encryp_protocol is %x\n", __func__, rtw_get_bcn_info23a()
780 pnetwork->BcnInfo.encryp_protocol); rtw_get_bcn_info23a()
781 rtw_get_cipher_info(pnetwork); rtw_get_bcn_info23a()
H A Drtw_cmd.c445 struct wlan_network *pnetwork) rtw_joinbss_cmd23a()
459 ifmode = pnetwork->network.ifmode; rtw_joinbss_cmd23a()
506 memcpy(psecnetwork, &pnetwork->network, rtw_joinbss_cmd23a()
507 get_wlan_bssid_ex_sz(&pnetwork->network)); rtw_joinbss_cmd23a()
518 &pnetwork->network.MacAddress[0]); rtw_joinbss_cmd23a()
521 rtw_restruct_sec_ie23a(padapter, &pnetwork->network.IEs[0], rtw_joinbss_cmd23a()
523 pnetwork->network.IELength); rtw_joinbss_cmd23a()
531 &pnetwork->network.IEs[0], rtw_joinbss_cmd23a()
533 pnetwork->network.IELength, rtw_joinbss_cmd23a()
558 &pnetwork->network.IEs[0], rtw_joinbss_cmd23a()
560 pnetwork->network.IELength, rtw_joinbss_cmd23a()
566 check_assoc_AP23a(pnetwork->network.IEs, rtw_joinbss_cmd23a()
567 pnetwork->network.IELength); rtw_joinbss_cmd23a()
1344 struct wlan_bssid_ex *pnetwork = (struct wlan_bssid_ex *)pcmd->parmbuf; rtw_createbss_cmd23a_callback() local
1359 pnetwork->MacAddress); rtw_createbss_cmd23a_callback()
1362 pnetwork->MacAddress, rtw_createbss_cmd23a_callback()
1391 pnetwork->Length = get_wlan_bssid_ex_sz(pnetwork); rtw_createbss_cmd23a_callback()
1392 memcpy(&pwlan->network, pnetwork, pnetwork->Length); rtw_createbss_cmd23a_callback()
1400 memcpy(&tgt_network->network, pnetwork, rtw_createbss_cmd23a_callback()
1401 get_wlan_bssid_ex_sz(pnetwork)); rtw_createbss_cmd23a_callback()
444 rtw_joinbss_cmd23a(struct rtw_adapter *padapter, struct wlan_network *pnetwork) rtw_joinbss_cmd23a() argument
H A Drtw_ap.c640 struct wlan_bssid_ex *pnetwork = &pmlmepriv->cur_network.network; start_bss_network() local
646 bcn_interval = (u16)pnetwork->beacon_interval; start_bss_network()
647 cur_channel = pnetwork->DSConfig; start_bss_network()
660 pnetwork->IEs, start_bss_network()
661 pnetwork->IELength)) start_bss_network()
693 hw_var_set_bssid(padapter, pnetwork->MacAddress); start_bss_network()
713 UpdateBrateTbl23a(padapter, pnetwork->SupportedRates); start_bss_network()
714 HalSetBrateCfg23a(padapter, pnetwork->SupportedRates); start_bss_network()
727 p = cfg80211_find_ie(WLAN_EID_HT_OPERATION, pnetwork->IEs, start_bss_network()
728 pnetwork->IELength); start_bss_network()
772 update_capinfo23a(padapter, pnetwork->capability); start_bss_network()
775 memcpy(pnetwork_mlmeext, pnetwork, pnetwork->Length); start_bss_network()
1162 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; update_bcn_erpinfo_ie() local
1163 unsigned char *p, *ie = pnetwork->IEs; update_bcn_erpinfo_ie()
1172 p = rtw_get_ie23a(ie, WLAN_EID_ERP_INFO, &len, pnetwork->IELength); update_bcn_erpinfo_ie()
H A Drtw_mlme_ext.c2976 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; issue_assocrsp() local
2978 u8 *ie = pnetwork->IEs; issue_assocrsp()
3009 mgmt->u.assoc_resp.capab_info = cpu_to_le16(pnetwork->capability); issue_assocrsp()
3031 pnetwork->IELength); issue_assocrsp()
3041 pnetwork->IELength); issue_assocrsp()
3057 pnetwork->IELength - (ie_len + 2)); issue_assocrsp()
4305 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; start_create_ibss() local
4307 pmlmeext->cur_channel = (u8)pnetwork->DSConfig; start_create_ibss()
4308 pmlmeinfo->bcn_interval = pnetwork->beacon_interval; start_create_ibss()
4314 caps = pnetwork->capability; start_create_ibss()
4355 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; start_clnt_join() local
4358 pmlmeext->cur_channel = (u8)pnetwork->DSConfig; start_clnt_join()
4359 pmlmeinfo->bcn_interval = pnetwork->beacon_interval; start_clnt_join()
4365 caps = pnetwork->capability; start_clnt_join()
5478 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; createbss_hdl23a() local
5519 memcpy(pnetwork, pparm, sizeof(struct wlan_bssid_ex)); createbss_hdl23a()
5532 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; join_cmd_hdl23a() local
5543 issue_deauth_ex(padapter, pnetwork->MacAddress, join_cmd_hdl23a()
5574 memcpy(pnetwork, pbuf, sizeof(struct wlan_bssid_ex)); join_cmd_hdl23a()
5577 /* pmlmeinfo->assoc_AP_vendor = check_assoc_AP23a(pnetwork->IEs, join_cmd_hdl23a()
5578 pnetwork->IELength); */ join_cmd_hdl23a()
5580 for (i = 0; i < pnetwork->IELength;) { join_cmd_hdl23a()
5581 p = pnetwork->IEs + i; join_cmd_hdl23a()
5650 struct wlan_bssid_ex *pnetwork = &pmlmeinfo->network; disconnect_hdl23a() local
5653 issue_deauth_ex(padapter, pnetwork->MacAddress, disconnect_hdl23a()
H A Drtw_wlan_util.c389 inline u8 *get_my_bssid23a(struct wlan_bssid_ex *pnetwork) get_my_bssid23a() argument
391 return pnetwork->MacAddress; get_my_bssid23a()
958 "%s pnetwork->pairwise_cipher: %d, pnetwork->group_cipher: %d, is_802x : %d\n", rtw_check_bcn_info23a()
972 "%s pnetwork->pairwise_cipher: %d, group_cipher is %d, is_8021x is %d\n", rtw_check_bcn_info23a()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
H A Drtw_ap.h35 void rtw_add_bcn_ie(struct adapter *padapter, struct wlan_bssid_ex *pnetwork,
38 struct wlan_bssid_ex *pnetwork, u8 index);
H A Drtw_mlme.h569 struct wlan_network *pnetwork);
584 int rtw_is_same_ibss(struct adapter *adapter, struct wlan_network *pnetwork);
H A Drtw_cmd.h346 u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork);
H A Dieee80211.h1168 void rtw_get_bcn_info(struct wlan_network *pnetwork);
/linux-4.4.14/drivers/staging/rtl8723au/include/
H A Drtw_ap.h29 void rtw_add_bcn_ie(struct rtw_adapter *padapter, struct wlan_bssid_ex *pnetwork, u8 index, u8 *data, u8 len);
30 void rtw_remove_bcn_ie(struct rtw_adapter *padapter, struct wlan_bssid_ex *pnetwork, u8 index);
H A Dieee80211.h336 void rtw_get_bcn_info23a(struct wlan_network *pnetwork);
H A Drtw_mlme.h333 struct wlan_network *pnetwork);
H A Drtw_cmd.h686 int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, struct wlan_network* pnetwork);
H A Drtw_mlme_ext.h487 u8 *get_my_bssid23a(struct wlan_bssid_ex *pnetwork);
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
H A Drtl8188e_cmd.c316 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); ConstructPSPoll() local
330 memcpy(pwlanhdr->addr1, pnetwork->MacAddress, ETH_ALEN); ConstructPSPoll()
353 struct wlan_bssid_ex *pnetwork = &(pmlmeinfo->network); ConstructNullFunctionData() local
365 memcpy(pwlanhdr->addr1, pnetwork->MacAddress, ETH_ALEN); ConstructNullFunctionData()
372 memcpy(pwlanhdr->addr2, pnetwork->MacAddress, ETH_ALEN); ConstructNullFunctionData()
379 memcpy(pwlanhdr->addr3, pnetwork->MacAddress, ETH_ALEN); ConstructNullFunctionData()
466 struct wlan_bssid_ex *pnetwork; SetFwRsvdPagePkt() local
479 pnetwork = &(pmlmeinfo->network); SetFwRsvdPagePkt()
511 ConstructNullFunctionData(adapt, &ReservedPagePacket[BufIndex], &NullDataLength, pnetwork->MacAddress, false, 0, 0, false); SetFwRsvdPagePkt()
521 ConstructProbeRsp(adapt, &ReservedPagePacket[BufIndex], &ProbeRspLength, pnetwork->MacAddress, false); SetFwRsvdPagePkt()
532 &QosNullLength, pnetwork->MacAddress, true, 0, 0, false); SetFwRsvdPagePkt()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
H A Dioctl_linux.c107 struct wlan_network *pnetwork, translate_scan()
127 memcpy(iwe.u.ap_addr.sa_data, pnetwork->network.MacAddress, ETH_ALEN); translate_scan()
133 iwe.u.data.length = min_t(u16, pnetwork->network.Ssid.SsidLength, 32); translate_scan()
134 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid); translate_scan()
137 p = rtw_get_ie(&pnetwork->network.IEs[12], _HT_CAPABILITY_IE_, &ht_ielen, pnetwork->network.IELength-12); translate_scan()
150 if ((rtw_is_cckratesonly_included((u8 *)&pnetwork->network.SupportedRates))) { translate_scan()
155 } else if ((rtw_is_cckrates_included((u8 *)&pnetwork->network.SupportedRates))) { translate_scan()
161 if (pnetwork->network.Configuration.DSConfig > 14) { translate_scan()
178 memcpy(&le_tmp, rtw_get_capability_from_ie(pnetwork->network.IEs), 2); translate_scan()
191 if (pnetwork->network.Configuration.DSConfig < 1) translate_scan()
192 pnetwork->network.Configuration.DSConfig = 1; translate_scan()
196 iwe.u.freq.m = rtw_ch2freq(pnetwork->network.Configuration.DSConfig) * 100000; translate_scan()
198 iwe.u.freq.i = pnetwork->network.Configuration.DSConfig; translate_scan()
208 start = iwe_stream_add_point(info, start, stop, &iwe, pnetwork->network.Ssid.Ssid); translate_scan()
214 while (pnetwork->network.SupportedRates[i] != 0) { translate_scan()
215 rate = pnetwork->network.SupportedRates[i]&0x7F; translate_scan()
247 rtw_get_sec_ie(pnetwork->network.IEs, pnetwork->network.IELength, rsn_ie, &rsn_len, wpa_ie, &wpa_len); translate_scan()
248 RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("rtw_wx_get_scan: ssid =%s\n", pnetwork->network.Ssid.Ssid)); translate_scan()
291 u8 *ie_ptr = pnetwork->network.IEs + _FIXED_IE_LENGTH_; translate_scan()
292 total_ielen = pnetwork->network.IELength - _FIXED_IE_LENGTH_; translate_scan()
310 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) { translate_scan()
314 ss = pnetwork->network.PhyInfo.SignalStrength; translate_scan()
315 sq = pnetwork->network.PhyInfo.SignalQuality; translate_scan()
969 struct wlan_network *pnetwork = NULL; rtw_wx_set_wap() local
993 pnetwork = container_of(pmlmepriv->pscanned, struct wlan_network, list); rtw_wx_set_wap()
997 dst_bssid = pnetwork->network.MacAddress; rtw_wx_set_wap()
1002 if (!rtw_set_802_11_infrastructure_mode(padapter, pnetwork->network.InfrastructureMode)) { rtw_wx_set_wap()
1223 struct wlan_network *pnetwork = NULL; rtw_wx_get_scan() local
1260 pnetwork = container_of(plist, struct wlan_network, list); rtw_wx_get_scan()
1263 if (rtw_ch_set_search_ch(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig) >= 0) rtw_wx_get_scan()
1264 ev = translate_scan(padapter, a, pnetwork, ev, stop); rtw_wx_get_scan()
1291 struct wlan_network *pnetwork = NULL; rtw_wx_set_essid() local
1340 pnetwork = container_of(pmlmepriv->pscanned, struct wlan_network, list); rtw_wx_set_essid()
1344 dst_ssid = pnetwork->network.Ssid.Ssid; rtw_wx_set_essid()
1348 pnetwork->network.Ssid.Ssid)); rtw_wx_set_essid()
1351 (pnetwork->network.Ssid.SsidLength == ndis_ssid.SsidLength)) { rtw_wx_set_essid()
1356 if (pnetwork->network.InfrastructureMode != pmlmepriv->cur_network.network.InfrastructureMode) rtw_wx_set_essid()
1360 if (!rtw_set_802_11_infrastructure_mode(padapter, pnetwork->network.InfrastructureMode)) { rtw_wx_set_essid()
105 translate_scan(struct adapter *padapter, struct iw_request_info *info, struct wlan_network *pnetwork, char *start, char *stop) translate_scan() argument
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
H A Dioctl_cfg80211.c243 struct wlan_network *pnetwork) rtw_cfg80211_inform_bss()
257 channel = pnetwork->network.DSConfig; rtw_cfg80211_inform_bss()
267 notify_ie = pnetwork->network.IEs; rtw_cfg80211_inform_bss()
268 notify_ielen = pnetwork->network.IELength; rtw_cfg80211_inform_bss()
275 &pnetwork->network)) { rtw_cfg80211_inform_bss()
279 pnetwork->network.SignalStrength); /* dbm */ rtw_cfg80211_inform_bss()
284 pnetwork->network.MacAddress, rtw_cfg80211_inform_bss()
285 pnetwork->network.tsf, rtw_cfg80211_inform_bss()
286 pnetwork->network.capability, rtw_cfg80211_inform_bss()
287 pnetwork->network.beacon_interval, rtw_cfg80211_inform_bss()
1276 struct wlan_network *pnetwork; rtw_cfg80211_surveydone_event_callback() local
1283 pnetwork = container_of(plist, struct wlan_network, list); list_for_each_safe()
1289 pnetwork->network.DSConfig) >= 0) list_for_each_safe()
1290 rtw_cfg80211_inform_bss(padapter, pnetwork); list_for_each_safe()
1803 struct wlan_network *pnetwork = &pmlmepriv->cur_network; rtw_set_ssid() local
1838 if (rtw_is_same_ibss23a(padapter, pnetwork)) { rtw_set_ssid()
1954 struct wlan_network *pnetwork = NULL; cfg80211_rtw_connect() local
2003 pnetwork = container_of(plist, struct wlan_network, list); list_for_each_safe()
2006 if (!ether_addr_equal(pnetwork->network.MacAddress, list_for_each_safe()
2012 if (pnetwork->network.Ssid.ssid_len != sme->ssid_len || list_for_each_safe()
2013 memcmp(pnetwork->network.Ssid.ssid, sme->ssid, list_for_each_safe()
2019 if (ether_addr_equal(pnetwork->network.MacAddress, list_for_each_safe()
2027 if (!memcmp(pnetwork->network.Ssid.ssid, list_for_each_safe()
2029 pnetwork->network.Ssid.ssid_len == sme->ssid_len) { list_for_each_safe()
2040 if (!matched || !pnetwork) {
2047 padapter, pnetwork->network.ifmode) != _SUCCESS) {
2150 if (rtw_set_ssid(padapter, pnetwork) != _SUCCESS) {
242 rtw_cfg80211_inform_bss(struct rtw_adapter *padapter, struct wlan_network *pnetwork) rtw_cfg80211_inform_bss() argument

Completed in 708 milliseconds