staging: rtl8723au: Eliminate Set_MSR() wrapper call
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 17 Jul 2014 20:59:45 +0000 (22:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 00:54:08 +0000 (17:54 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/core/rtw_sreset.c
drivers/staging/rtl8723au/core/rtw_wlan_util.c
drivers/staging/rtl8723au/include/rtw_mlme_ext.h

index ab9a66ecb2178afd40510197434d229ca881e57d..1ee8747b129f2ddd93a0541d32607589893285c9 100644 (file)
@@ -688,7 +688,7 @@ static void start_bss_network(struct rtw_adapter *padapter, u8 *pbuf)
        }
 
        /* set MSR to AP_Mode */
-       Set_MSR23a(padapter, _HW_STATE_AP_);
+       rtl8723a_set_media_status(padapter, _HW_STATE_AP_);
 
        /* Set BSSID REG */
        hw_var_set_bssid(padapter, pnetwork->MacAddress);
index 3655ee5e8347f2940b0cc3020b4114260ca1e1d1..44f3cd930cd1fcc08ea28a5d71929b58bea6fb93 100644 (file)
@@ -4102,7 +4102,7 @@ static void rtw_site_survey(struct rtw_adapter *padapter)
                /* val8 = 0; */
 
                /* config MSR */
-               Set_MSR23a(padapter, (pmlmeinfo->state & 0x3));
+               rtl8723a_set_media_status(padapter, pmlmeinfo->state & 0x3);
 
                /* restore RX GAIN */
                rtl8723a_set_initial_gain(padapter, 0xff);
@@ -4339,7 +4339,7 @@ static void start_create_ibss(struct rtw_adapter* padapter)
 
                /* set msr to WIFI_FW_ADHOC_STATE */
                pmlmeinfo->state = WIFI_FW_ADHOC_STATE;
-               Set_MSR23a(padapter, (pmlmeinfo->state & 0x3));
+               rtl8723a_set_media_status(padapter, pmlmeinfo->state & 0x3);
 
                /* issue beacon */
                if (send_beacon23a(padapter) == _FAIL)
@@ -4387,7 +4387,7 @@ static void start_clnt_join(struct rtw_adapter* padapter)
                /* switch channel */
                set_channel_bwmode23a(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
 
-               Set_MSR23a(padapter, WIFI_FW_STATION_STATE);
+               rtl8723a_set_media_status(padapter, WIFI_FW_STATION_STATE);
 
                val8 = (pmlmeinfo->auth_algo == dot11AuthAlgrthm_8021X) ?
                        0xcc: 0xcf;
@@ -4405,7 +4405,7 @@ static void start_clnt_join(struct rtw_adapter* padapter)
                          msecs_to_jiffies((REAUTH_TO * REAUTH_LIMIT) + (REASSOC_TO*REASSOC_LIMIT) + beacon_timeout));
                pmlmeinfo->state = WIFI_FW_AUTH_NULL | WIFI_FW_STATION_STATE;
        } else if (caps & WLAN_CAPABILITY_IBSS) {       /* adhoc client */
-               Set_MSR23a(padapter, WIFI_FW_ADHOC_STATE);
+               rtl8723a_set_media_status(padapter, WIFI_FW_ADHOC_STATE);
 
                rtl8723a_set_sec_cfg(padapter, 0xcf);
 
@@ -5185,7 +5185,7 @@ void mlmeext_sta_del_event_callback23a(struct rtw_adapter *padapter)
                pmlmeinfo->state = WIFI_FW_NULL_STATE;
 
                /* set MSR to no link state -> infra. mode */
-               Set_MSR23a(padapter, _HW_STATE_STATION_);
+               rtl8723a_set_media_status(padapter, _HW_STATE_STATION_);
 
                del_timer_sync(&pmlmeext->link_timer);
        }
@@ -5584,8 +5584,8 @@ int join_cmd_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
                del_timer_sync(&pmlmeext->link_timer);
 
                /* set MSR to nolink -> infra. mode */
-               /* Set_MSR23a(padapter, _HW_STATE_NOLINK_); */
-               Set_MSR23a(padapter, _HW_STATE_STATION_);
+               /* rtl8723a_set_media_status(padapter, _HW_STATE_NOLINK_); */
+               rtl8723a_set_media_status(padapter, _HW_STATE_STATION_);
 
                hw_var_set_mlme_disconnect(padapter);
        }
@@ -5704,7 +5704,7 @@ int disconnect_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
                rtl8723a_set_bcn_func(padapter, 0);     /* Stop BCN */
 
        /* set MSR to no link state -> infra. mode */
-       Set_MSR23a(padapter, _HW_STATE_STATION_);
+       rtl8723a_set_media_status(padapter, _HW_STATE_STATION_);
 
        pmlmeinfo->state = WIFI_FW_NULL_STATE;
 
@@ -5865,7 +5865,7 @@ int sitesurvey_cmd_hdl23a(struct rtw_adapter *padapter, const u8 *pbuf)
                rtl8723a_set_initial_gain(padapter, initialgain);
 
                /* set MSR to no link state */
-               Set_MSR23a(padapter, _HW_STATE_NOLINK_);
+               rtl8723a_set_media_status(padapter, _HW_STATE_NOLINK_);
 
                rtl8723a_mlme_sitesurvey(padapter, 1);
 
index c152aefb59ea51d8640db8cf8f5a3233c4c01ba5..9a79e11f7ffcf3d3c2b9728b494bff431e4d3654 100644 (file)
@@ -103,7 +103,7 @@ static void sreset_restore_network_station(struct rtw_adapter *padapter)
        hw_var_set_bssid(padapter, pmlmeinfo->network.MacAddress);
        hw_var_set_mlme_join(padapter, 0);
 
-       Set_MSR23a(padapter, (pmlmeinfo->state & 0x3));
+       rtl8723a_set_media_status(padapter, pmlmeinfo->state & 0x3);
 
        mlmeext_joinbss_event_callback23a(padapter, 1);
        /* restore Sequence No. */
index 25dae51fa97964abaed12de0a3c21d3a740d85cb..59cf5f14b6588046508295949777e29fc5c4c6e9 100644 (file)
@@ -293,11 +293,6 @@ void Update23aTblForSoftAP(u8 *bssrateset, u32 bssratelen)
        }
 }
 
-void Set_MSR23a(struct rtw_adapter *padapter, u8 type)
-{
-       rtl8723a_set_media_status(padapter, type);
-}
-
 inline u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter)
 {
        return adapter_to_dvobj(adapter)->oper_channel;
index 7fd249f573b5522dc17554e8d48987076c535653..87803e096d00b9306e6c27aebfcf6b652755d241 100644 (file)
@@ -471,8 +471,6 @@ void get_rate_set23a(struct rtw_adapter *padapter, unsigned char *pbssrate,
 void UpdateBrateTbl23a(struct rtw_adapter *padapter,u8 *mBratesOS);
 void Update23aTblForSoftAP(u8 *bssrateset, u32 bssratelen);
 
-void Set_MSR23a(struct rtw_adapter *padapter, u8 type);
-
 u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter);
 void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch);
 u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter);