Home
last modified time | relevance | path

Searched refs:check_fwstate (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v6.6/drivers/staging/rtl8712/
Drtl871x_ioctl_set.c55 if (!check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) && in do_join()
72 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { in do_join()
117 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY | in r8712_set_802_11_bssid()
119 status = check_fwstate(pmlmepriv, _FW_UNDER_LINKING); in r8712_set_802_11_bssid()
122 if (check_fwstate(pmlmepriv, in r8712_set_802_11_bssid()
126 if (!check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in r8712_set_802_11_bssid()
133 if (check_fwstate(pmlmepriv, _FW_LINKED)) in r8712_set_802_11_bssid()
136 if ((check_fwstate(pmlmepriv, in r8712_set_802_11_bssid()
164 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY | _FW_UNDER_LINKING)) { in r8712_set_802_11_ssid()
165 check_fwstate(pmlmepriv, _FW_UNDER_LINKING); in r8712_set_802_11_ssid()
[all …]
Drtl871x_mlme.c177 !check_fwstate(&padapter->mlmepriv, _FW_LINKED)) { in r8712_if_up()
287 if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) && in update_network()
432 if (check_fwstate(&adapter->mlmepriv, WIFI_ADHOC_STATE)) { in is_desired_network()
485 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) { in r8712_survey_event_callback()
503 if (!check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) { in r8712_survey_event_callback()
523 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) { in r8712_surveydone_event_callback()
530 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { in r8712_surveydone_event_callback()
531 if (!check_fwstate(pmlmepriv, _FW_LINKED)) { in r8712_surveydone_event_callback()
582 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_AP_STATE)) { in r8712_free_assoc_resources()
593 if (check_fwstate(pmlmepriv, in r8712_free_assoc_resources()
[all …]
Drtl871x_recv.c308 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) || in sta2sta_data_frame()
309 check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) { in sta2sta_data_frame()
320 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in sta2sta_data_frame()
327 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in sta2sta_data_frame()
342 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) { in sta2sta_data_frame()
357 if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) in sta2sta_data_frame()
376 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) && in ap2sta_data_frame()
377 check_fwstate(pmlmepriv, _FW_LINKED)) { in ap2sta_data_frame()
408 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE) && in ap2sta_data_frame()
409 check_fwstate(pmlmepriv, _FW_LINKED)) { in ap2sta_data_frame()
[all …]
Drtl8712_led.c210 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink()
213 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink()
229 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink()
232 else if (check_fwstate(pmlmepriv, _FW_LINKED) && pLed->bLedOn) in SwLedBlink()
283 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1()
321 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1()
330 } else if (!check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1()
355 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1()
364 } else if (!check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1()
436 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink2()
[all …]
Drtl871x_xmit.c238 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) || in r8712_update_attrib()
239 check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) { in r8712_update_attrib()
242 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in r8712_update_attrib()
245 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in r8712_update_attrib()
248 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) { in r8712_update_attrib()
291 if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) { in r8712_update_attrib()
299 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in r8712_update_attrib()
327 !check_fwstate(pmlmepriv, WIFI_MP_STATE)) in r8712_update_attrib()
363 if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) in r8712_update_attrib()
512 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in make_wlanhdr()
[all …]
Drtl871x_ioctl_linux.c441 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | in wpa_set_encryption()
607 if (check_fwstate(pmlmepriv, _FW_LINKED | WIFI_ADHOC_MASTER_STATE) == in r8711_wx_get_name()
696 if (!check_fwstate(pmlmepriv, _FW_LINKED)) in r8711_wx_get_freq()
745 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in r8711_wx_get_mode()
747 else if (check_fwstate(pmlmepriv, in r8711_wx_get_mode()
750 else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) in r8711_wx_get_mode()
936 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in r871x_wx_set_priv()
1040 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) in r8711_wx_set_wap()
1042 if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) in r8711_wx_set_wap()
1084 if (check_fwstate(pmlmepriv, _FW_LINKED | WIFI_ADHOC_MASTER_STATE | in r8711_wx_get_wap()
[all …]
Drtl871x_ioctl_rtl.c311 if (check_fwstate(pmlmepriv, _FW_LINKED) || in oid_rt_get_channel_hdl()
312 check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) in oid_rt_get_channel_hdl()
501 if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) in oid_rt_get_connect_state_hdl()
503 else if (check_fwstate(pmlmepriv, _FW_LINKED)) in oid_rt_get_connect_state_hdl()
505 else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) in oid_rt_get_connect_state_hdl()
Drtl871x_mlme.h110 static inline u8 check_fwstate(struct mlme_priv *pmlmepriv, sint state) in check_fwstate() function
148 if (check_fwstate(pmlmepriv, state)) in clr_fwstate()
Drtl871x_cmd.c357 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_ADHOC_STATE) != in r8712_joinbss_cmd()
542 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in r8712_setstakey_cmd()
764 if ((check_fwstate(pmlmepriv, WIFI_MP_STATE)) && in r8712_setassocsta_cmdrsp_callback()
765 (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))) in r8712_setassocsta_cmdrsp_callback()
Drtl871x_pwrctrl.c220 (check_fwstate(&padapter->mlmepriv, in r8712_unregister_cmd_alive()
/Linux-v6.6/drivers/staging/rtl8723bs/core/
Drtw_ioctl_set.c88 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) { in rtw_do_join()
155 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == true) in rtw_set_802_11_ssid()
157 else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true) in rtw_set_802_11_ssid()
160 if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == true) { in rtw_set_802_11_ssid()
163 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == false) { in rtw_set_802_11_ssid()
168 if (check_fwstate(pmlmepriv, _FW_LINKED) == true) in rtw_set_802_11_ssid()
173 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) { in rtw_set_802_11_ssid()
186 if (check_fwstate(pmlmepriv, _FW_LINKED) == true) in rtw_set_802_11_ssid()
191 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) { in rtw_set_802_11_ssid()
212 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == true) in rtw_set_802_11_ssid()
[all …]
Drtw_mlme.c181 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || in _rtw_free_network()
182 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) in _rtw_free_network()
280 (check_fwstate(&padapter->mlmepriv, _FW_LINKED) == false)) in rtw_if_up()
455 …if (check_fwstate(&padapter->mlmepriv, _FW_LINKED) && is_same_network(&(padapter->mlmepriv.cur_net… in update_network()
498 …if ((check_fwstate(pmlmepriv, _FW_LINKED) == true) && (is_same_network(&(pmlmepriv->cur_network.ne… in update_current_network()
651 if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS)) { in rtw_is_desired_network()
677 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) { in rtw_is_desired_network()
705 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) == true) { in rtw_survey_event_callback()
722 if ((check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) == false) { in rtw_survey_event_callback()
744 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) { in rtw_surveydone_event_callback()
[all …]
Drtw_pwrctrl.c104 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR) in rtw_pwr_unassociated_idle()
105 || check_fwstate(pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS) in rtw_pwr_unassociated_idle()
106 || check_fwstate(pmlmepriv, WIFI_AP_STATE) in rtw_pwr_unassociated_idle()
107 || check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE) in rtw_pwr_unassociated_idle()
115 if (check_fwstate(b_pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR) in rtw_pwr_unassociated_idle()
116 || check_fwstate(b_pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS) in rtw_pwr_unassociated_idle()
117 || check_fwstate(b_pmlmepriv, WIFI_AP_STATE) in rtw_pwr_unassociated_idle()
118 || check_fwstate(b_pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE) in rtw_pwr_unassociated_idle()
328 if (check_fwstate(pmlmepriv, WIFI_SITE_MONITOR) in PS_RDY_CHECK()
329 || check_fwstate(pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS) in PS_RDY_CHECK()
[all …]
Drtw_recv.c659 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in sta2sta_data_frame()
660 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { in sta2sta_data_frame()
682 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) { in sta2sta_data_frame()
690 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in sta2sta_data_frame()
707 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) { in sta2sta_data_frame()
746 if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) && in ap2sta_data_frame()
747 (check_fwstate(pmlmepriv, _FW_LINKED) == true || in ap2sta_data_frame()
748 check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true) in ap2sta_data_frame()
793 } else if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) && in ap2sta_data_frame()
794 (check_fwstate(pmlmepriv, _FW_LINKED) == true)) { in ap2sta_data_frame()
[all …]
Drtw_cmd.c535 if (check_fwstate(pmlmepriv, _FW_LINKED)) in rtw_sitesurvey_cmd()
701 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) != true) { in rtw_joinbss_cmd()
882 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in rtw_setstakey_cmd()
1149 if ((check_fwstate(pmlmepriv, _FW_LINKED)) in traffic_status_watchdog()
1214 if (check_fwstate(&dvobj->padapters->mlmepriv, WIFI_ASOC_STATE)) in traffic_status_watchdog()
1241 if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) in dynamic_chk_wk_hdl()
1273 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) || in lps_ctrl_wk_hdl()
1274 check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { in lps_ctrl_wk_hdl()
1282 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in lps_ctrl_wk_hdl()
1855 if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_createbss_cmd_callback()
[all …]
Drtw_xmit.c485 if ((pattrib->ether_type != 0x888e) && (check_fwstate(pmlmepriv, WIFI_MP_STATE) == false)) { in update_attrib_sec_info()
639 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in update_attrib()
640 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { in update_attrib()
643 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in update_attrib()
646 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in update_attrib()
704 } else if ((check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) && (!(psta->state & _FW_LINKED))) { in update_attrib()
740 if (check_fwstate(pmlmepriv, WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE)) { in update_attrib()
876 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) { in rtw_make_wlanhdr()
890 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in rtw_make_wlanhdr()
899 } else if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in rtw_make_wlanhdr()
[all …]
Drtw_btcoex.c15 && (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) { in rtw_btcoex_MediaStatusNotify()
/Linux-v6.6/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c277 if (check_fwstate(pmlmepriv, _FW_LINKED) == true && in rtw_cfg80211_inform_bss()
373 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) { in rtw_cfg80211_ibss_indicate_connect()
411 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) in rtw_cfg80211_indicate_connect()
480 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) in rtw_cfg80211_indicate_disconnect()
484 if (check_fwstate(&padapter->mlmepriv, _FW_LINKED)) { in rtw_cfg80211_indicate_disconnect()
570 if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_cfg80211_ap_set_encryption()
619 if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_cfg80211_ap_set_encryption()
772 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == true) { /* sta mode */ in rtw_cfg80211_set_encryption()
833 } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { /* adhoc mode */ in rtw_cfg80211_set_encryption()
904 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) { in cfg80211_rtw_add_key()
[all …]
Dioctl_linux.c140 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == true) { /* sta mode */ in wpa_set_encryption()
207 } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { in wpa_set_encryption()
619 if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { /* group key */ in rtw_set_encryption()
667 if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_set_encryption()
753 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) != true) in rtw_set_beacon()
790 if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) in rtw_add_sta()
855 if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) in rtw_del_sta()
894 if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) in rtw_ioctl_get_sta_data()
951 if (check_fwstate(pmlmepriv, (_FW_LINKED | WIFI_AP_STATE)) != true) in rtw_get_sta_wpaie()
990 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) != true) in rtw_set_wps_beacon()
[all …]
Dos_intfs.c1074 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) in rtw_suspend_free_assoc_resource()
1075 && check_fwstate(pmlmepriv, _FW_LINKED)) { in rtw_suspend_free_assoc_resource()
1080 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED)) { in rtw_suspend_free_assoc_resource()
1084 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_suspend_free_assoc_resource()
1094 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) in rtw_suspend_free_assoc_resource()
1097 if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) { in rtw_suspend_free_assoc_resource()
1159 if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) in rtw_suspend_common()
1161 else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) in rtw_suspend_common()
1224 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in rtw_resume_process_normal()
1227 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in rtw_resume_process_normal()
Dmlme_linux.c44 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || in rtw_os_indicate_connect()
45 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) { in rtw_os_indicate_connect()
Drecv_linux.c100 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in rtw_os_recv_indicate_pkt()
/Linux-v6.6/drivers/staging/rtl8723bs/hal/
Dhal_btcoex.c168 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == true) { in halbtcoutsrc_IsWifiBusy()
169 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) in halbtcoutsrc_IsWifiBusy()
189 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == true) { in _halbtcoutsrc_GetWifiLinkStatus()
190 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in _halbtcoutsrc_GetWifiLinkStatus()
299 *pu8 = check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE); in halbtcoutsrc_Get()
313 *pu8 = check_fwstate(&padapter->mlmepriv, WIFI_UNDER_LINKING); in halbtcoutsrc_Get()
317 *pu8 = check_fwstate(&padapter->mlmepriv, WIFI_UNDER_LINKING); in halbtcoutsrc_Get()
325 *pu8 = check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE); in halbtcoutsrc_Get()
531 if (check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE) == true) { in halbtcoutsrc_Set()
Drtl8723bs_xmit.c49 ret = ret || check_fwstate(pmlmepriv, _FW_UNDER_SURVEY); in rtl8723_dequeue_writeport()
275 if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true) in xmit_xmitframes()
Drtl8723bs_recv.c139 (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true) in update_recvframe_phyinfo()
147 if (check_fwstate(&padapter->mlmepriv, adhoc_state)) in update_recvframe_phyinfo()

12