staging: rtl8723au: bRxRSSIDisplay is always set to zero
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 26 Apr 2014 16:55:27 +0000 (18:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2014 17:16:18 +0000 (10:16 -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/include/drv_types.h
drivers/staging/rtl8723au/os_dep/os_intfs.c

index 40fcf36d54bd873485b2b3dff39e577e481c2f1d..abaedd21fe03ea4bce715ea43a92a42e5cc22f47 100644 (file)
@@ -5533,28 +5533,6 @@ void mlmeext_sta_del_event_callback23a(struct rtw_adapter *padapter)
        }
 }
 
-/****************************************************************************
-
-Following are the functions for the timer handlers
-
-*****************************************************************************/
-static void linked23a_rx_sig_stren_disp(struct rtw_adapter *padapter)
-{
-       struct mlme_ext_priv    *pmlmeext = &padapter->mlmeextpriv;
-       struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
-       u8 mac_id;
-       int UndecoratedSmoothedPWDB;
-       if ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
-               mac_id = 0;
-       else if ((pmlmeinfo->state&0x03) == _HW_STATE_AP_)
-               mac_id = 2;
-
-       rtw_hal_get_def_var23a(padapter, HW_DEF_RA_INFO_DUMP,&mac_id);
-
-       rtw_hal_get_def_var23a(padapter, HAL_DEF_UNDERCORATEDSMOOTHEDPWDB, &UndecoratedSmoothedPWDB);
-       DBG_8723A("UndecoratedSmoothedPWDB:%d\n", UndecoratedSmoothedPWDB);
-}
-
 static u8 chk_ap_is_alive(struct rtw_adapter *padapter, struct sta_info *psta)
 {
        u8 ret = false;
@@ -5579,9 +5557,6 @@ void linked_status_chk23a(struct rtw_adapter *padapter)
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
        struct sta_priv         *pstapriv = &padapter->stapriv;
 
-       if (padapter->bRxRSSIDisplay)
-                linked23a_rx_sig_stren_disp(padapter);
-
        rtw_hal_sreset_linked_status_check23a(padapter);
 
        if (is_client_associated_to_ap23a(padapter))
index 8ad2ae4a194753cde3a623c52abbd224362953d3..b82d5a1fe60230fb51465006460e5511439c08d6 100644 (file)
@@ -300,7 +300,6 @@ struct rtw_adapter {
        u8 bBTFWReady;
        u8 bReadPortCancel;
        u8 bWritePortCancel;
-       u8 bRxRSSIDisplay;
        /* The driver will show the desired chan nor when this flag is 1. */
        u8 bNotifyChannelChange;
        struct rtw_adapter *pbuddy_adapter;
index 4347896e1df150037cf9618b39c2cfbdc7a703d8..dd401e6ce41502cabf43ee806a3e23cb2a75a693 100644 (file)
@@ -424,7 +424,6 @@ static u8 rtw_init_default_value(struct rtw_adapter *padapter)
        /* misc. */
        padapter->bReadPortCancel = false;
        padapter->bWritePortCancel = false;
-       padapter->bRxRSSIDisplay = 0;
        padapter->bNotifyChannelChange = 0;
        return ret;
 }
@@ -439,7 +438,6 @@ u8 rtw_reset_drv_sw23a(struct rtw_adapter *padapter)
        rtw_hal_def_value_init23a(padapter);
        padapter->bReadPortCancel = false;
        padapter->bWritePortCancel = false;
-       padapter->bRxRSSIDisplay = 0;
        pmlmepriv->scan_interval = SCAN_INTERVAL;/*  30*2 sec = 60sec */
 
        padapter->xmitpriv.tx_pkts = 0;