/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_set.c | 56 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in do_join() local 57 struct __queue *queue = &(pmlmepriv->scanned_queue); in do_join() 62 pmlmepriv->cur_network.join_res = -2; in do_join() 63 pmlmepriv->fw_state |= _FW_UNDER_LINKING; in do_join() 64 pmlmepriv->pscanned = plist; in do_join() 65 pmlmepriv->to_join = true; in do_join() 68 if (!check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) && in do_join() 70 if (pmlmepriv->fw_state & _FW_UNDER_LINKING) in do_join() 71 pmlmepriv->fw_state ^= _FW_UNDER_LINKING; in do_join() 75 if (!pmlmepriv->sitesurveyctrl.traffic_busy) in do_join() [all …]
|
D | rtl871x_mlme.c | 49 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in _init_mlme_priv() local 51 memset((u8 *)pmlmepriv, 0, sizeof(struct mlme_priv)); in _init_mlme_priv() 52 pmlmepriv->nic_hdl = (u8 *)padapter; in _init_mlme_priv() 53 pmlmepriv->pscanned = NULL; in _init_mlme_priv() 54 pmlmepriv->fw_state = 0; in _init_mlme_priv() 55 pmlmepriv->cur_network.network.InfrastructureMode = in _init_mlme_priv() 58 pmlmepriv->passive_mode = 1; /* 1: active, 0: passive. */ in _init_mlme_priv() 59 spin_lock_init(&(pmlmepriv->lock)); in _init_mlme_priv() 60 spin_lock_init(&(pmlmepriv->lock2)); in _init_mlme_priv() 61 _init_queue(&(pmlmepriv->free_bss_pool)); in _init_mlme_priv() [all …]
|
D | rtl871x_mlme.h | 118 static inline u8 *get_bssid(struct mlme_priv *pmlmepriv) in get_bssid() argument 120 return pmlmepriv->cur_network.network.MacAddress; in get_bssid() 123 static inline u8 check_fwstate(struct mlme_priv *pmlmepriv, sint state) in check_fwstate() argument 125 if (pmlmepriv->fw_state & state) in check_fwstate() 130 static inline sint get_fwstate(struct mlme_priv *pmlmepriv) in get_fwstate() argument 132 return pmlmepriv->fw_state; in get_fwstate() 142 static inline void set_fwstate(struct mlme_priv *pmlmepriv, sint state) in set_fwstate() argument 144 pmlmepriv->fw_state |= state; in set_fwstate() 147 static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, sint state) in _clr_fwstate_() argument 149 pmlmepriv->fw_state &= ~state; in _clr_fwstate_() [all …]
|
D | rtl871x_cmd.c | 228 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_sitesurvey_cmd() local 241 psurveyPara->passive_mode = cpu_to_le32(pmlmepriv->passive_mode); in r8712_sitesurvey_cmd() 248 set_fwstate(pmlmepriv, _FW_UNDER_SURVEY); in r8712_sitesurvey_cmd() 250 mod_timer(&pmlmepriv->scan_to_timer, in r8712_sitesurvey_cmd() 454 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_joinbss_cmd() local 455 struct qos_priv *pqospriv = &pmlmepriv->qospriv; in r8712_joinbss_cmd() 467 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_ADHOC_STATE) != in r8712_joinbss_cmd() 471 pmlmepriv->fw_state |= WIFI_ADHOC_STATE; in r8712_joinbss_cmd() 474 pmlmepriv->fw_state |= WIFI_STATION_STATE; in r8712_joinbss_cmd() 502 if (!pmlmepriv->assoc_by_bssid) in r8712_joinbss_cmd() [all …]
|
D | rtl871x_ioctl_linux.c | 78 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_indicate_wx_assoc_event() local 81 memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, in r8712_indicate_wx_assoc_event() 377 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in wpa_set_encryption() local 446 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | in wpa_set_encryption() 449 get_bssid(pmlmepriv)); in wpa_set_encryption() 608 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in r8711_wx_get_name() local 609 struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; in r8711_wx_get_name() 612 if (check_fwstate(pmlmepriv, _FW_LINKED | WIFI_ADHOC_MASTER_STATE) == in r8711_wx_get_name() 698 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8711_wx_get_freq() local 699 struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; in r8711_wx_get_freq() [all …]
|
D | rtl871x_xmit.c | 199 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in r8712_update_attrib() local 200 struct qos_priv *pqospriv = &pmlmepriv->qospriv; in r8712_update_attrib() 215 del_timer_sync(&pmlmepriv->dhcp_timer); in r8712_update_attrib() 225 if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) || in r8712_update_attrib() 226 check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE)) { in r8712_update_attrib() 229 } else if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { in r8712_update_attrib() 230 memcpy(pattrib->ra, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib() 232 } else if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) { in r8712_update_attrib() 234 memcpy(pattrib->ta, get_bssid(pmlmepriv), ETH_ALEN); in r8712_update_attrib() 235 } else if (check_fwstate(pmlmepriv, WIFI_MP_STATE)) { in r8712_update_attrib() [all …]
|
D | rtl8712_led.c | 206 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in SwLedBlink() local 222 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink() 223 (pmlmepriv->fw_state & WIFI_STATION_STATE)) in SwLedBlink() 225 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink() 226 ((pmlmepriv->fw_state & WIFI_ADHOC_STATE) || in SwLedBlink() 227 (pmlmepriv->fw_state & WIFI_ADHOC_MASTER_STATE))) in SwLedBlink() 241 if (check_fwstate(pmlmepriv, _FW_LINKED) && in SwLedBlink() 244 else if (check_fwstate(pmlmepriv, _FW_LINKED) && pLed->bLedOn) in SwLedBlink() 282 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in SwLedBlink1() local 295 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in SwLedBlink1() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_ioctl_set.c | 63 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in rtw_do_join() local 64 struct __queue *queue = &(pmlmepriv->scanned_queue); in rtw_do_join() 67 spin_lock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 73 pmlmepriv->cur_network.join_res = -2; in rtw_do_join() 75 set_fwstate(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 77 pmlmepriv->pscanned = plist; in rtw_do_join() 79 pmlmepriv->to_join = true; in rtw_do_join() 82 spin_unlock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 83 _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 88 if (pmlmepriv->LinkDetectInfo.bBusyTraffic == false in rtw_do_join() [all …]
|
D | rtw_mlme.c | 21 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in _rtw_init_mlme_priv() local 24 pmlmepriv->nic_hdl = (u8 *)padapter; in _rtw_init_mlme_priv() 26 pmlmepriv->pscanned = NULL; in _rtw_init_mlme_priv() 27 pmlmepriv->fw_state = WIFI_STATION_STATE; /* Must sync with rtw_wdev_alloc() */ in _rtw_init_mlme_priv() 29 pmlmepriv->cur_network.network.InfrastructureMode = Ndis802_11AutoUnknown; in _rtw_init_mlme_priv() 30 …pmlmepriv->scan_mode = SCAN_ACTIVE;/* 1: active, 0: pasive. Maybe someday we should rename this v… in _rtw_init_mlme_priv() 32 spin_lock_init(&(pmlmepriv->lock)); in _rtw_init_mlme_priv() 33 _rtw_init_queue(&(pmlmepriv->free_bss_pool)); in _rtw_init_mlme_priv() 34 _rtw_init_queue(&(pmlmepriv->scanned_queue)); in _rtw_init_mlme_priv() 36 set_scanned_network_val(pmlmepriv, 0); in _rtw_init_mlme_priv() [all …]
|
D | rtw_ap.c | 20 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in init_mlme_ap_info() local 25 spin_lock_init(&pmlmepriv->bcn_update_lock); in init_mlme_ap_info() 38 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in free_mlme_ap_info() local 44 pmlmepriv->update_bcn = false; in free_mlme_ap_info() 440 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in add_RATid() local 442 *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in add_RATid() 502 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in update_bmc_sta() local 506 *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_bmc_sta() 591 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in update_sta_info_apmode() local 594 struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv; in update_sta_info_apmode() [all …]
|
D | rtw_cmd.c | 602 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_sitesurvey_cmd() local 604 if (check_fwstate(pmlmepriv, _FW_LINKED) == true) { in rtw_sitesurvey_cmd() 625 psurveyPara->scan_mode = pmlmepriv->scan_mode; in rtw_sitesurvey_cmd() 655 set_fwstate(pmlmepriv, _FW_UNDER_SURVEY); in rtw_sitesurvey_cmd() 661 pmlmepriv->scan_start_time = jiffies; in rtw_sitesurvey_cmd() 662 _set_timer(&pmlmepriv->scan_to_timer, SCANNING_TIMEOUT); in rtw_sitesurvey_cmd() 664 _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY); in rtw_sitesurvey_cmd() 709 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_createbss_cmd() local 713 if (pmlmepriv->assoc_ssid.SsidLength == 0) { in rtw_createbss_cmd() 714 …RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, (" createbss for Any SSid:%s\n", pmlmepriv->assoc_ssi… in rtw_createbss_cmd() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/core/ |
D | rtw_ioctl_set.c | 20 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in rtw_do_join() local 21 struct __queue *queue = &(pmlmepriv->scanned_queue); in rtw_do_join() 24 spin_lock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 30 pmlmepriv->cur_network.join_res = -2; in rtw_do_join() 32 set_fwstate(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 34 pmlmepriv->pscanned = plist; in rtw_do_join() 36 pmlmepriv->to_join = true; in rtw_do_join() 39 spin_unlock_bh(&(pmlmepriv->scanned_queue.lock)); in rtw_do_join() 40 _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); in rtw_do_join() 45 if (!pmlmepriv->LinkDetectInfo.bBusyTraffic || in rtw_do_join() [all …]
|
D | rtw_mlme.c | 30 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_init_mlme_priv() local 35 pmlmepriv->nic_hdl = (u8 *)padapter; in rtw_init_mlme_priv() 37 pmlmepriv->pscanned = NULL; in rtw_init_mlme_priv() 38 pmlmepriv->fw_state = 0; in rtw_init_mlme_priv() 39 pmlmepriv->cur_network.network.InfrastructureMode = Ndis802_11AutoUnknown; in rtw_init_mlme_priv() 40 …pmlmepriv->scan_mode = SCAN_ACTIVE;/* 1: active, 0: pasive. Maybe someday we should rename this v… in rtw_init_mlme_priv() 42 spin_lock_init(&(pmlmepriv->lock)); in rtw_init_mlme_priv() 43 _rtw_init_queue(&(pmlmepriv->free_bss_pool)); in rtw_init_mlme_priv() 44 _rtw_init_queue(&(pmlmepriv->scanned_queue)); in rtw_init_mlme_priv() 46 memset(&pmlmepriv->assoc_ssid, 0, sizeof(struct ndis_802_11_ssid)); in rtw_init_mlme_priv() [all …]
|
D | rtw_ap.c | 21 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in init_mlme_ap_info() local 25 spin_lock_init(&pmlmepriv->bcn_update_lock); in init_mlme_ap_info() 37 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in free_mlme_ap_info() local 41 pmlmepriv->update_bcn = false; in free_mlme_ap_info() 340 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in add_RATid() local 341 struct wlan_bssid_ex *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in add_RATid() 425 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in update_bmc_sta() local 426 struct wlan_bssid_ex *pcur_network = (struct wlan_bssid_ex *)&pmlmepriv->cur_network.network; in update_bmc_sta() 507 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in update_sta_info_apmode() local 510 struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv; in update_sta_info_apmode() [all …]
|
D | rtw_cmd.c | 241 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_sitesurvey_cmd() local 243 if (check_fwstate(pmlmepriv, _FW_LINKED) == true) in rtw_sitesurvey_cmd() 263 psurveyPara->scan_mode = pmlmepriv->scan_mode; in rtw_sitesurvey_cmd() 289 set_fwstate(pmlmepriv, _FW_UNDER_SURVEY); in rtw_sitesurvey_cmd() 294 mod_timer(&pmlmepriv->scan_to_timer, in rtw_sitesurvey_cmd() 299 pmlmepriv->scan_interval = SCAN_INTERVAL;/* 30*2 sec = 60sec */ in rtw_sitesurvey_cmd() 301 _clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY); in rtw_sitesurvey_cmd() 317 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_createbss_cmd() local 323 if (pmlmepriv->assoc_ssid.SsidLength == 0) in rtw_createbss_cmd() 324 …RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, (" createbss for Any SSid:%s\n", pmlmepriv->assoc_ssi… in rtw_createbss_cmd() [all …]
|
D | rtw_pwrctrl.c | 45 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_hw_suspend() local 47 if (check_fwstate(pmlmepriv, _FW_LINKED)) { in rtw_hw_suspend() 48 _clr_fwstate_(pmlmepriv, _FW_LINKED); in rtw_hw_suspend() 158 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in ips_leave() local 180 if (pmlmepriv->key_mask & BIT(keyid)) { in ips_leave() 203 struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); in rtw_pwr_unassociated_idle() local 209 if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR) || in rtw_pwr_unassociated_idle() 210 check_fwstate(pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS) || in rtw_pwr_unassociated_idle() 211 check_fwstate(pmlmepriv, WIFI_AP_STATE) || in rtw_pwr_unassociated_idle() 212 check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)) in rtw_pwr_unassociated_idle() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_mlme.h | 233 void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv); 234 int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv); 239 static inline u8 *get_bssid(struct mlme_priv *pmlmepriv) in get_bssid() argument 242 return pmlmepriv->cur_network.network.MacAddress; in get_bssid() 245 static inline int check_fwstate(struct mlme_priv *pmlmepriv, int state) in check_fwstate() argument 247 if (pmlmepriv->fw_state & state) in check_fwstate() 253 static inline int get_fwstate(struct mlme_priv *pmlmepriv) in get_fwstate() argument 255 return pmlmepriv->fw_state; in get_fwstate() 265 static inline void set_fwstate(struct mlme_priv *pmlmepriv, int state) in set_fwstate() argument 267 pmlmepriv->fw_state |= state; in set_fwstate() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | rtw_mlme.h | 521 extern void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv); 524 extern sint rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv); 528 __inline static u8 *get_bssid(struct mlme_priv *pmlmepriv) in get_bssid() argument 531 return pmlmepriv->cur_network.network.MacAddress; in get_bssid() 534 __inline static sint check_fwstate(struct mlme_priv *pmlmepriv, sint state) in check_fwstate() argument 536 if (pmlmepriv->fw_state & state) in check_fwstate() 542 __inline static sint get_fwstate(struct mlme_priv *pmlmepriv) in get_fwstate() argument 544 return pmlmepriv->fw_state; in get_fwstate() 554 __inline static void set_fwstate(struct mlme_priv *pmlmepriv, sint state) in set_fwstate() argument 556 pmlmepriv->fw_state |= state; in set_fwstate() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 66 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_indicate_wx_assoc_event() local 72 memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, ETH_ALEN); in rtw_indicate_wx_assoc_event() 96 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in translate_scan() local 299 if (check_fwstate(pmlmepriv, _FW_LINKED) == true && in translate_scan() 300 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) { in translate_scan() 352 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in wpa_set_encryption() local 435 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { /* sta mode */ in wpa_set_encryption() 436 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 628 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in rtw_wx_get_name() local 629 struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; in rtw_wx_get_name() [all …]
|
D | usb_intf.c | 198 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_suspend() local 226 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) && in rtw_suspend() 227 check_fwstate(pmlmepriv, _FW_LINKED)) { in rtw_suspend() 230 pmlmepriv->cur_network.network.Ssid.Ssid, in rtw_suspend() 231 pmlmepriv->cur_network.network.MacAddress, in rtw_suspend() 232 pmlmepriv->cur_network.network.Ssid.SsidLength, in rtw_suspend() 233 pmlmepriv->assoc_ssid.SsidLength); in rtw_suspend() 235 pmlmepriv->to_roaming = 1; in rtw_suspend() 247 if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) in rtw_suspend() 250 if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) in rtw_suspend() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/os_dep/ |
D | os_intfs.c | 411 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_select_queue() local 415 if (pmlmepriv->acm_mask != 0) in rtw_select_queue() 416 skb->priority = qos_acm(pmlmepriv->acm_mask, skb->priority); in rtw_select_queue() 613 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_init_default_value() local 626 pmlmepriv->scan_mode = SCAN_ACTIVE; in rtw_init_default_value() 632 pmlmepriv->htpriv.ampdu_enable = false;/* set to disabled */ in rtw_init_default_value() 717 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_reset_drv_sw() local 731 pmlmepriv->LinkDetectInfo.bBusyTraffic = false; in rtw_reset_drv_sw() 734 pmlmepriv->LinkDetectInfo.TrafficTransitionCount = 0; in rtw_reset_drv_sw() 735 pmlmepriv->LinkDetectInfo.LowPowerTransitionCount = 0; in rtw_reset_drv_sw() [all …]
|
D | mlme_linux.c | 34 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_init_mlme_timer() local 36 timer_setup(&pmlmepriv->assoc_timer, _rtw_join_timeout_handler, 0); in rtw_init_mlme_timer() 37 timer_setup(&pmlmepriv->scan_to_timer, rtw_scan_timeout_handler, 0); in rtw_init_mlme_timer() 38 timer_setup(&pmlmepriv->dynamic_chk_timer, in rtw_init_mlme_timer() 40 timer_setup(&pmlmepriv->set_scan_deny_timer, in rtw_init_mlme_timer() 46 struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); in rtw_os_indicate_connect() local 48 if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || in rtw_os_indicate_connect() 49 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) in rtw_os_indicate_connect()
|
D | ioctl_linux.c | 55 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_indicate_wx_assoc_event() local 64 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) ==true) in rtw_indicate_wx_assoc_event() 67 memcpy(wrqu.ap_addr.sa_data, pmlmepriv->cur_network.network.MacAddress, ETH_ALEN); in rtw_indicate_wx_assoc_event() 96 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in translate_scan() local 329 if (check_fwstate(pmlmepriv, _FW_LINKED) == true && in translate_scan() 330 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { in translate_scan() 433 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in wpa_set_encryption() local 534 if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == true) { /* sta mode */ in wpa_set_encryption() 535 psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv)); in wpa_set_encryption() 607 } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) { in wpa_set_encryption() [all …]
|
D | ioctl_cfg80211.c | 258 struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); in rtw_cfg80211_inform_bss() local 336 if (check_fwstate(pmlmepriv, _FW_LINKED) == true && in rtw_cfg80211_inform_bss() 337 is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network, 0)) { in rtw_cfg80211_inform_bss() 422 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_cfg80211_ibss_indicate_connect() local 423 struct wlan_network *cur_network = &(pmlmepriv->cur_network); in rtw_cfg80211_ibss_indicate_connect() 437 struct wlan_network *scanned = pmlmepriv->cur_network_scanned; in rtw_cfg80211_ibss_indicate_connect() 439 if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) ==true) in rtw_cfg80211_ibss_indicate_connect() 478 struct mlme_priv *pmlmepriv = &padapter->mlmepriv; in rtw_cfg80211_indicate_connect() local 479 struct wlan_network *cur_network = &(pmlmepriv->cur_network); in rtw_cfg80211_indicate_connect() 489 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) in rtw_cfg80211_indicate_connect() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_dm.c | 69 struct mlme_priv *pmlmepriv = &Adapter->mlmepriv; in Update_ODM_ComInfo_88E() local 105 dm_odm->pbScanInProcess = (bool *)&pmlmepriv->bScanInProcess; in Update_ODM_ComInfo_88E() 134 struct mlme_priv *pmlmepriv = NULL; in rtw_hal_dm_watchdog() local 143 pmlmepriv = &Adapter->mlmepriv; in rtw_hal_dm_watchdog() 145 if ((check_fwstate(pmlmepriv, WIFI_AP_STATE)) || in rtw_hal_dm_watchdog() 146 (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE | in rtw_hal_dm_watchdog() 151 if (check_fwstate(pmlmepriv, _FW_LINKED)) in rtw_hal_dm_watchdog() 191 struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv); in rtw_hal_antdiv_before_linked() local 197 if (check_fwstate(pmlmepriv, _FW_LINKED)) in rtw_hal_antdiv_before_linked()
|