Commit 4d593d22 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: bRxRSSIDisplay is always set to zero

parent a0cae30a
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
@@ -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))
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
@@ -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;