void site_survey23a(struct rtw_adapter *padapter)
{
- unsigned char survey_channel = 0, val8;
+ unsigned char survey_channel = 0;
enum rt_scan_type ScanType = SCAN_PASSIVE;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
}
- val8 = 0; /* survey done */
- rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ rtl8723a_mlme_sitesurvey(padapter, 0);
report_surveydone_event23a(padapter);
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
struct sitesurvey_parm *pparm = (struct sitesurvey_parm *)pbuf;
u8 bdelayscan = false;
- u8 val8;
u32 initialgain;
u32 i;
/* set MSR to no link state */
Set_MSR23a(padapter, _HW_STATE_NOLINK_);
- val8 = 1; /* under site survey */
- rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_SITESURVEY,
- (u8 *)(&val8));
+ rtl8723a_mlme_sitesurvey(padapter, 1);
pmlmeext->sitesurvey_res.state = SCAN_PROCESS;
}
static void pre_tx_invitereq_handler(struct rtw_adapter *padapter)
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- u8 val8 = 1;
set_channel_bwmode23a(padapter, pwdinfo->invitereq_info.peer_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- padapter->HalFunc.SetHwRegHandler(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ rtl8723a_mlme_sitesurvey(padapter, 1);
issue23a_probereq_p2p(padapter, NULL);
mod_timer(&pwdinfo->pre_tx_scan_timer,
jiffies + msecs_to_jiffies(P2P_TX_PRESCAN_TIMEOUT));
-
-
}
static void pre_tx_provdisc_handler(struct rtw_adapter *padapter)
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- u8 val8 = 1;
-
- set_channel_bwmode23a(padapter, pwdinfo->tx_prov_disc_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ set_channel_bwmode23a(padapter,
+ pwdinfo->tx_prov_disc_info.peer_channel_num[0],
+ HAL_PRIME_CHNL_OFFSET_DONT_CARE,
+ HT_CHANNEL_WIDTH_20);
+ rtl8723a_mlme_sitesurvey(padapter, 1);
issue23a_probereq_p2p(padapter, NULL);
mod_timer(&pwdinfo->pre_tx_scan_timer,
jiffies + msecs_to_jiffies(P2P_TX_PRESCAN_TIMEOUT));
-
-
}
static void pre_tx_negoreq_handler(struct rtw_adapter *padapter)
{
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
- u8 val8 = 1;
-
- set_channel_bwmode23a(padapter, pwdinfo->nego_req_info.peer_channel_num[0], HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
- rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+ set_channel_bwmode23a(padapter,
+ pwdinfo->nego_req_info.peer_channel_num[0],
+ HAL_PRIME_CHNL_OFFSET_DONT_CARE,
+ HT_CHANNEL_WIDTH_20);
+ rtl8723a_mlme_sitesurvey(padapter, 1);
issue23a_probereq_p2p(padapter, NULL);
mod_timer(&pwdinfo->pre_tx_scan_timer,
jiffies + msecs_to_jiffies(P2P_TX_PRESCAN_TIMEOUT));
-
-
}
static void ro_ch_handler(struct rtw_adapter *padapter)