staging: rtl8723au: Remove calls to HW_VAR_H2C_MEDIA_STATUS
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:49 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:11 +0000 (08:29 -0700)
This call was unhandled, so these calls were effectively a no-op

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/include/hal_intf.h

index 9cf26ea0088b4754a833249c089212de2a0ff891..e6969362261d305445179d9ae6719dec2c3c1fd0 100644 (file)
@@ -1299,12 +1299,8 @@ void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, u8 *pbuf)
 /* FOR AP , AD-HOC mode */
 void rtw_stassoc_hw_rpt23a(struct rtw_adapter *adapter, struct sta_info *psta)
 {
-       u16 media_status;
-
-       if (psta == NULL)       return;
-
-       media_status = (psta->mac_id<<8)|1; /*   MACID|OPMODE:1 connect */
-       rtw_hal_set_hwreg23a(adapter, HW_VAR_H2C_MEDIA_STATUS_RPT, (u8 *)&media_status);
+       if (psta == NULL)
+               return;
 }
 
 void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
@@ -1402,13 +1398,6 @@ void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, u8 *pbuf)
 
        DBG_8723A("%s(mac_id=%d)=" MAC_FMT "\n", __func__, mac_id, MAC_ARG(pstadel->macaddr));
 
-       if(mac_id>=0) {
-               u16 media_status;
-               media_status = (mac_id<<8)|0; /*   MACID|OPMODE:0 means disconnect */
-               /* for STA,AP,ADHOC mode, report disconnect stauts to FW */
-               rtw_hal_set_hwreg23a(adapter, HW_VAR_H2C_MEDIA_STATUS_RPT, (u8 *)&media_status);
-       }
-
         if (check_fwstate(pmlmepriv, WIFI_AP_STATE))
         {
                return;
index 94ba6ef8f24b9575c8034a364389430ebe20b39d..ff7ff9eb240389f231204a02ed29ee2c5f807ebf 100644 (file)
@@ -8677,7 +8677,6 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
        struct wlan_bssid_ex *cur_network = &pmlmeinfo->network;
        struct sta_priv         *pstapriv = &padapter->stapriv;
-       u16 media_status;
 
        if (join_res < 0) {
                hw_var_set_mlme_join(padapter, 1);
@@ -8736,9 +8735,6 @@ void mlmeext_joinbss_event_callback23a(struct rtw_adapter *padapter, int join_re
 
                /* set per sta rate after updating HT cap. */
                set_sta_rate23a(padapter, psta);
-
-               media_status = (psta->mac_id<<8)|1; /*   MACID|OPMODE: 1 means connect */
-               rtw_hal_set_hwreg23a(padapter, HW_VAR_H2C_MEDIA_STATUS_RPT, (u8 *)&media_status);
        }
 
        hw_var_set_mlme_join(padapter, 2);
index a4b48772fd8869572d132aa5fd42c24a3d6a3bca..bb27488e12ebd8121eca01dcf5479ac8a2f94a09 100644 (file)
@@ -54,7 +54,6 @@ enum HW_VARIABLES {
        /*  Unit in microsecond. 0 means disable this function. */
        HW_VAR_RPT_TIMER_SETTING,
        HW_VAR_TX_RPT_MAX_MACID,
-       HW_VAR_H2C_MEDIA_STATUS_RPT,
        HW_VAR_CHK_HI_QUEUE_EMPTY,
        HW_VAR_READ_LLT_TAB,
 };