]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8723au: Eliminate HW_VAR_MLME_SITESURVEY usage
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:21 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:00 +0000 (08:29 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_p2p.c
drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
drivers/staging/rtl8723au/include/hal_intf.h

index 87e4df63b28354d546733e63d2611f6042168375..ef0a829e365a8b23ecd07603e1c06f2fb51cb6a6 100644 (file)
@@ -7615,7 +7615,7 @@ bool IsLegal5GChannel(struct rtw_adapter *Adapter, u8 channel)
 
 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;
@@ -7761,8 +7761,7 @@ void site_survey23a(struct rtw_adapter *padapter)
 
                        }
 
-                       val8 = 0; /* survey done */
-                       rtw_hal_set_hwreg23a(padapter, HW_VAR_MLME_SITESURVEY, (u8 *)(&val8));
+                       rtl8723a_mlme_sitesurvey(padapter, 0);
 
                        report_surveydone_event23a(padapter);
 
@@ -9518,7 +9517,6 @@ u8 sitesurvey_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf)
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct sitesurvey_parm *pparm = (struct sitesurvey_parm *)pbuf;
        u8 bdelayscan = false;
-       u8 val8;
        u32 initialgain;
        u32 i;
 
@@ -9589,9 +9587,7 @@ u8 sitesurvey_cmd_hdl23a(struct rtw_adapter *padapter, u8 *pbuf)
                /* 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;
        }
index 27a6cc76973de4970ba903d24060bab46f1a83d1..67d17a17a6b15937024ef8962ef09ae153d4eb6b 100644 (file)
@@ -3120,45 +3120,40 @@ static void restore_p2p_state_handler(struct rtw_adapter *padapter)
 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)
index 0c1eaed9d44a38b27ddbfc5afb0c2b0a21dc0443..bcf400dcb82387fb7b0e4a66257c04fd6d71b8a5 100644 (file)
@@ -3147,10 +3147,6 @@ void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
                rtl8723a_check_bssid(padapter, *val);
                break;
 
-       case HW_VAR_MLME_SITESURVEY:
-               rtl8723a_mlme_sitesurvey(padapter, *val);
-               break;
-
        case HW_VAR_MLME_JOIN:
                hw_var_set_mlme_join(padapter, *val);
                break;
index eb011360cc0ea8e1c39cf131eec14a5193aadb0a..163743190625e663aac84e0cdfb5e1dbc6431e81 100644 (file)
@@ -40,7 +40,6 @@ enum HW_VARIABLES {
        HW_VAR_TXPAUSE,
        HW_VAR_BCN_FUNC,
        HW_VAR_CHECK_BSSID,
-       HW_VAR_MLME_SITESURVEY,
        HW_VAR_MLME_JOIN,
        HW_VAR_BEACON_INTERVAL,
        HW_VAR_SLOT_TIME,