Home
last modified time | relevance | path

Searched refs:pmlmepriv (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c62 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in do_join() local
63 struct __queue *queue = &(pmlmepriv->scanned_queue); in do_join()
67 pmlmepriv->cur_network.join_res = -2; in do_join()
68 pmlmepriv->fw_state |= _FW_UNDER_LINKING; in do_join()
69 pmlmepriv->pscanned = plist; in do_join()
70 pmlmepriv->to_join = true; in do_join()
73 if (!check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) && in do_join()
75 if (pmlmepriv->fw_state & _FW_UNDER_LINKING) in do_join()
76 pmlmepriv->fw_state ^= _FW_UNDER_LINKING; in do_join()
80 if (pmlmepriv->sitesurveyctrl.traffic_busy == false) in do_join()
[all …]
Drtl871x_mlme.c47 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in _init_mlme_priv() local
49 memset((u8 *)pmlmepriv, 0, sizeof(struct mlme_priv)); in _init_mlme_priv()
50 pmlmepriv->nic_hdl = (u8 *)padapter; in _init_mlme_priv()
51 pmlmepriv->pscanned = NULL; in _init_mlme_priv()
52 pmlmepriv->fw_state = 0; in _init_mlme_priv()
53 pmlmepriv->cur_network.network.InfrastructureMode = in _init_mlme_priv()
56 pmlmepriv->passive_mode = 1; /* 1: active, 0: passive. */ in _init_mlme_priv()
57 spin_lock_init(&(pmlmepriv->lock)); in _init_mlme_priv()
58 spin_lock_init(&(pmlmepriv->lock2)); in _init_mlme_priv()
59 _init_queue(&(pmlmepriv->free_bss_pool)); in _init_mlme_priv()
[all …]
Drtl871x_mlme.h113 static inline u8 *get_bssid(struct mlme_priv *pmlmepriv) in get_bssid() argument
115 return pmlmepriv->cur_network.network.MacAddress; in get_bssid()
118 static inline u8 check_fwstate(struct mlme_priv *pmlmepriv, sint state) in check_fwstate() argument
120 if (pmlmepriv->fw_state & state) in check_fwstate()
125 static inline sint get_fwstate(struct mlme_priv *pmlmepriv) in get_fwstate() argument
127 return pmlmepriv->fw_state; in get_fwstate()
137 static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state) in set_fwstate() argument
139 pmlmepriv->fw_state |= state; in set_fwstate()
142 static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state) in _clr_fwstate_() argument
144 pmlmepriv->fw_state &= ~state; in _clr_fwstate_()
[all …]
Dmlme_linux.c73 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_init_mlme_timer() local
75 _init_timer(&(pmlmepriv->assoc_timer), padapter->pnetdev, in r8712_init_mlme_timer()
76 join_timeout_handler, (pmlmepriv->nic_hdl)); in r8712_init_mlme_timer()
77 _init_timer(&(pmlmepriv->sitesurveyctrl.sitesurvey_ctrl_timer), in r8712_init_mlme_timer()
79 (u8 *)(pmlmepriv->nic_hdl)); in r8712_init_mlme_timer()
80 _init_timer(&(pmlmepriv->scan_to_timer), padapter->pnetdev, in r8712_init_mlme_timer()
81 _scan_timeout_handler, (pmlmepriv->nic_hdl)); in r8712_init_mlme_timer()
82 _init_timer(&(pmlmepriv->dhcp_timer), padapter->pnetdev, in r8712_init_mlme_timer()
83 dhcp_timeout_handler, (u8 *)(pmlmepriv->nic_hdl)); in r8712_init_mlme_timer()
84 _init_timer(&(pmlmepriv->wdg_timer), padapter->pnetdev, in r8712_init_mlme_timer()
[all …]
Drtl871x_cmd.c229 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_sitesurvey_cmd() local
243 psurveyPara->passive_mode = cpu_to_le32(pmlmepriv->passive_mode); in r8712_sitesurvey_cmd()
250 set_fwstate(pmlmepriv, _FW_UNDER_SURVEY); in r8712_sitesurvey_cmd()
252 _set_timer(&pmlmepriv->scan_to_timer, SCANNING_TIMEOUT); in r8712_sitesurvey_cmd()
488 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_joinbss_cmd() local
489 struct qos_priv *pqospriv = &pmlmepriv->qospriv; in r8712_joinbss_cmd()
509 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) != in r8712_joinbss_cmd()
513 pmlmepriv->fw_state |= WIFI_ADHOC_STATE; in r8712_joinbss_cmd()
516 pmlmepriv->fw_state |= WIFI_STATION_STATE; in r8712_joinbss_cmd()
545 if (pmlmepriv->assoc_by_bssid == false) in r8712_joinbss_cmd()
[all …]
Drtl871x_ioctl_linux.c104 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_indicate_wx_assoc_event() local
107 memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, in r8712_indicate_wx_assoc_event()
403 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in wpa_set_encryption() local
481 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | in wpa_set_encryption()
484 get_bssid(pmlmepriv)); in wpa_set_encryption()
648 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in r8711_wx_get_name() local
649 struct ndis_wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; in r8711_wx_get_name()
652 if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == in r8711_wx_get_name()
735 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8711_wx_get_freq() local
736 struct ndis_wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; in r8711_wx_get_freq()
[all …]
Drtl8712_led.c208 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in SwLedBlink() local
224 if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) && in SwLedBlink()
225 (pmlmepriv->fw_state & WIFI_STATION_STATE)) in SwLedBlink()
227 if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) && in SwLedBlink()
228 ((pmlmepriv->fw_state & WIFI_ADHOC_STATE) || in SwLedBlink()
229 (pmlmepriv->fw_state & WIFI_ADHOC_MASTER_STATE))) in SwLedBlink()
243 if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) && in SwLedBlink()
246 else if ((check_fwstate(pmlmepriv, _FW_LINKED) == in SwLedBlink()
289 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in SwLedBlink1() local
302 if (check_fwstate(pmlmepriv, _FW_LINKED) == true) { in SwLedBlink1()
[all …]
Drtl871x_xmit.c198 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_update_attrib() local
199 struct qos_priv *pqospriv = &pmlmepriv->qospriv; in r8712_update_attrib()
214 _cancel_timer(&(pmlmepriv->dhcp_timer), &bool); in r8712_update_attrib()
223 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in r8712_update_attrib()
224 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { in r8712_update_attrib()
227 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in r8712_update_attrib()
228 memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib()
230 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in r8712_update_attrib()
232 memcpy(pattrib->ta, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib()
233 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) { in r8712_update_attrib()
[all …]
Drtl871x_recv.c321 struct mlme_priv *pmlmepriv = &adapter->mlmepriv; in sta2sta_data_frame() local
322 u8 *mybssid = get_bssid(pmlmepriv); in sta2sta_data_frame()
327 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in sta2sta_data_frame()
328 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { in sta2sta_data_frame()
339 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) { in sta2sta_data_frame()
345 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in sta2sta_data_frame()
358 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) { in sta2sta_data_frame()
372 if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) in sta2sta_data_frame()
386 struct mlme_priv *pmlmepriv = &adapter->mlmepriv; in ap2sta_data_frame() local
387 u8 *mybssid = get_bssid(pmlmepriv); in ap2sta_data_frame()
[all …]
Drtl871x_mp_ioctl.c164 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in mp_start_test() local
165 struct wlan_network *tgt_network = &pmlmepriv->cur_network; in mp_start_test()
186 spin_lock_irqsave(&pmlmepriv->lock, irqL); in mp_start_test()
187 if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) in mp_start_test()
190 pmppriv->prev_fw_state = get_fwstate(pmlmepriv); in mp_start_test()
191 pmlmepriv->fw_state = WIFI_MP_STATE; in mp_start_test()
193 set_fwstate(pmlmepriv, WIFI_MP_LPBK_STATE); /*append txdesc*/ in mp_start_test()
194 set_fwstate(pmlmepriv, _FW_UNDER_LINKING); in mp_start_test()
210 _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); in mp_start_test()
213 set_fwstate(pmlmepriv, _FW_LINKED); in mp_start_test()
[all …]
Drtl871x_ioctl_rtl.c320 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in oid_rt_get_channel_hdl() local
326 if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) || in oid_rt_get_channel_hdl()
327 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) in oid_rt_get_channel_hdl()
328 pnic_Config = &pmlmepriv->cur_network.network.Configuration; in oid_rt_get_channel_hdl()
507 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in oid_rt_get_connect_state_hdl() local
517 if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true) in oid_rt_get_connect_state_hdl()
519 else if (check_fwstate(pmlmepriv, _FW_LINKED) == true) in oid_rt_get_connect_state_hdl()
521 else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) in oid_rt_get_connect_state_hdl()
Drecv_linux.c91 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_handle_tkip_mic_err() local
99 memcpy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0], ETH_ALEN); in r8712_handle_tkip_mic_err()
Dos_intfs.c281 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in init_default_value() local
292 pmlmepriv->passive_mode = 1; /* 1: active, 0: passive. */ in init_default_value()
296 struct ht_priv *phtpriv = &pmlmepriv->htpriv; in init_default_value()
Drtl8712_recv.c658 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_process_recv_indicatepkts() local
659 struct ht_priv *phtpriv = &pmlmepriv->htpriv; in r8712_process_recv_indicatepkts()
978 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in recv_func() local
983 if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)) { in recv_func()
988 if (check_fwstate(pmlmepriv, WIFI_MP_LPBK_STATE) == false) { in recv_func()
Drtl8712_xmit.c420 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in update_txdesc() local
421 struct qos_priv *pqospriv = &pmlmepriv->qospriv; in update_txdesc()
431 struct ht_priv *phtpriv = &pmlmepriv->htpriv; in update_txdesc()