/linux/drivers/staging/rtl8723bs/core/ |
H A D | rtw_ioctl_set.c | 41 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in rtw_do_join() local 42 struct __queue *queue = &(pmlmepriv->scanned_queue); in rtw_do_join() 45 spin_lock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 49 pmlmepriv->cur_network.join_res = -2; in rtw_do_join() 51 set_fwstate(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 53 pmlmepriv->pscanned = plist; in rtw_do_join() 55 pmlmepriv->to_join = true; in rtw_do_join() 58 spin_unlock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 59 _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 64 if (pmlmepriv->LinkDetectInfo.bBusyTraffic == false in rtw_do_join() [all …]
|
H A D | rtw_ap.c | 13 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in init_mlme_ap_info() local 17 spin_lock_init(&pmlmepriv->bcn_update_lock); in init_mlme_ap_info() 31 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in free_mlme_ap_info() local 37 pmlmepriv->update_bcn = false; in free_mlme_ap_info() 327 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in add_RATid() local 329 *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in add_RATid() 375 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in update_bmc_sta() local 379 *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_bmc_sta() 454 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in update_sta_info_apmode() local 457 struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv; in update_sta_info_apmode() [all …]
|
H A D | rtw_recv.c | 652 struct mlme_priv *pmlmepriv = &adapter->mlmepriv; in sta2sta_data_frame() local 653 u8 *mybssid = get_bssid(pmlmepriv); in sta2sta_data_frame() 658 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || in sta2sta_data_frame() 659 (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { in sta2sta_data_frame() 681 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) { in sta2sta_data_frame() 689 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in sta2sta_data_frame() 706 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) { in sta2sta_data_frame() 740 struct mlme_priv *pmlmepriv = &adapter->mlmepriv; in ap2sta_data_frame() local 741 u8 *mybssid = get_bssid(pmlmepriv); in ap2sta_data_frame() 745 if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) && in ap2sta_data_frame() [all …]
|
/linux/drivers/staging/rtl8723bs/include/ |
H A D | rtw_mlme.h | 275 extern void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv); 278 extern signed int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv); 282 static inline u8 *get_bssid(struct mlme_priv *pmlmepriv) in get_bssid() argument 285 return pmlmepriv->cur_network.network.mac_address; in get_bssid() 288 static inline signed int check_fwstate(struct mlme_priv *pmlmepriv, signed int state) in check_fwstate() argument 290 if (pmlmepriv->fw_state & state) in check_fwstate() 296 static inline signed int get_fwstate(struct mlme_priv *pmlmepriv) in get_fwstate() argument 298 return pmlmepriv->fw_state; in get_fwstate() 308 static inline void set_fwstate(struct mlme_priv *pmlmepriv, signed int state) in set_fwstate() argument 310 pmlmepriv->fw_state |= state; in set_fwstate() [all …]
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
H A D | mlme_linux.c | 29 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_init_mlme_timer() local 31 timer_setup(&pmlmepriv->assoc_timer, _rtw_join_timeout_handler, 0); in rtw_init_mlme_timer() 32 timer_setup(&pmlmepriv->scan_to_timer, rtw_scan_timeout_handler, 0); in rtw_init_mlme_timer() 33 timer_setup(&pmlmepriv->dynamic_chk_timer, in rtw_init_mlme_timer() 35 timer_setup(&pmlmepriv->set_scan_deny_timer, in rtw_init_mlme_timer() 41 struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); in rtw_os_indicate_connect() local 43 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || in rtw_os_indicate_connect() 44 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) { in rtw_os_indicate_connect()
|
H A D | recv_linux.c | 95 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_os_recv_indicate_pkt() local 99 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in rtw_os_recv_indicate_pkt() 145 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_handle_tkip_mic_err() local 169 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err() 180 memcpy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0], ETH_ALEN); in rtw_handle_tkip_mic_err()
|
H A D | xmit_linux.c | 186 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in _rtw_xmit_entry() local 195 && check_fwstate(pmlmepriv, WIFI_AP_STATE) == true in _rtw_xmit_entry()
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | rtl8723b_dm.c | 59 struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; in Update_ODM_ComInfo_8723b() local 102 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_SCAN, &(pmlmepriv->bScanInProcess)); in Update_ODM_ComInfo_8723b() 186 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtl8723b_hal_dm_in_lps() local 197 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_hal_dm_in_lps() 210 struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; in rtl8723b_HalDmWatchDog_in_LPS() local 237 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in rtl8723b_HalDmWatchDog_in_LPS()
|
H A D | hal_btcoex.c | 162 struct mlme_priv *pmlmepriv; in halbtcoutsrc_IsWifiBusy() local 165 pmlmepriv = &padapter->mlmepriv; in halbtcoutsrc_IsWifiBusy() 167 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == true) { in halbtcoutsrc_IsWifiBusy() 168 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) in halbtcoutsrc_IsWifiBusy() 170 if (pmlmepriv->LinkDetectInfo.bBusyTraffic) in halbtcoutsrc_IsWifiBusy() 179 struct mlme_priv *pmlmepriv; in _halbtcoutsrc_GetWifiLinkStatus() local 184 pmlmepriv = &padapter->mlmepriv; in _halbtcoutsrc_GetWifiLinkStatus() 188 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE) == true) { in _halbtcoutsrc_GetWifiLinkStatus() 189 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { in _halbtcoutsrc_GetWifiLinkStatus()
|
H A D | rtl8723b_cmd.c | 236 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in ConstructNullFunctionData() local 237 struct wlan_network *cur_network = &pmlmepriv->cur_network; in ConstructNullFunctionData() 502 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtl8723b_set_FwRsvdPagePkt() local 617 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in rtl8723b_set_FwRsvdPagePkt()
|