Commit 6a0d9b79 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: remove unneeded parameter from rtl8188e_SetHalODMVar



Function rtl8188e_SetHalODMVar is always called with HAL_ODM_STA_INFO.
Remove the unneeded parameter eVariable from the function.

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220104090732.13994-1-straube.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b2ad163
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ void update_bmc_sta(struct adapter *padapter)
		init_rate = get_highest_rate_idx(tx_ra_bitmap & 0x0fffffff) & 0x3f;

		/* ap mode */
		rtl8188e_SetHalODMVar(padapter, HAL_ODM_STA_INFO, psta, true);
		rtl8188e_SetHalODMVar(padapter, psta, true);

		{
			u8 arg = 0;
@@ -499,7 +499,7 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
	DBG_88E("%s\n", __func__);

	/* ap mode */
	rtl8188e_SetHalODMVar(padapter, HAL_ODM_STA_INFO, psta, true);
	rtl8188e_SetHalODMVar(padapter, psta, true);

	if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)
		psta->ieee8021x_blocked = true;
+2 −2
Original line number Diff line number Diff line
@@ -913,7 +913,7 @@ static struct sta_info *rtw_joinbss_update_stainfo(struct adapter *padapter, str
		psta->aid  = pnetwork->join_res;
		psta->mac_id = 0;
		/* sta mode */
		rtl8188e_SetHalODMVar(padapter, HAL_ODM_STA_INFO, psta, true);
		rtl8188e_SetHalODMVar(padapter, psta, true);
		/* security related */
		if (padapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) {
			padapter->securitypriv.binstallGrpkey = false;
@@ -1198,7 +1198,7 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)
	psta->mac_id = (uint)pstassoc->cam_id;
	DBG_88E("%s\n", __func__);
	/* for ad-hoc mode */
	rtl8188e_SetHalODMVar(adapter, HAL_ODM_STA_INFO, psta, true);
	rtl8188e_SetHalODMVar(adapter, psta, true);
	rtw_sta_media_status_rpt(adapter, psta, 1);
	if (adapter->securitypriv.dot11AuthAlgrthm == dot11AuthAlgrthm_8021X)
		psta->dot118021XPrivacy = adapter->securitypriv.dot11PrivacyAlgrthm;
+1 −1
Original line number Diff line number Diff line
@@ -310,7 +310,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta)
	}

	if (!(psta->state & WIFI_AP_STATE))
		rtl8188e_SetHalODMVar(padapter, HAL_ODM_STA_INFO, psta, false);
		rtl8188e_SetHalODMVar(padapter, psta, false);

	spin_lock_bh(&pstapriv->auth_list_lock);
	if (!list_empty(&psta->auth_list)) {
+10 −18
Original line number Diff line number Diff line
@@ -845,13 +845,10 @@ void rtl8188e_read_chip_version(struct adapter *padapter)
	pHalData->VersionID = ChipVersion;
}

void rtl8188e_SetHalODMVar(struct adapter *Adapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet)
void rtl8188e_SetHalODMVar(struct adapter *Adapter, void *pValue1, bool bSet)
{
	struct hal_data_8188e *pHalData = &Adapter->haldata;
	struct odm_dm_struct *podmpriv = &pHalData->odmpriv;
	switch (eVariable) {
	case HAL_ODM_STA_INFO:
		{
	struct sta_info *psta = (struct sta_info *)pValue1;

	if (bSet) {
@@ -863,11 +860,6 @@ void rtl8188e_SetHalODMVar(struct adapter *Adapter, enum hal_odm_variable eVaria
		podmpriv->pODM_StaInfo[psta->mac_id] = NULL;
	}
}
		break;
	default:
		break;
	}
}

void hal_notch_filter_8188e(struct adapter *adapter, bool enable)
{
+1 −6
Original line number Diff line number Diff line
@@ -94,10 +94,6 @@ enum hal_def_variable {
	HAL_DEF_DBG_DUMP_TXPKT,
};

enum hal_odm_variable {
	HAL_ODM_STA_INFO,
};

typedef s32 (*c2h_id_filter)(u8 id);

#define is_boot_from_eeprom(adapter) (adapter->eeprompriv.EepromOrEfuse)
@@ -105,8 +101,7 @@ typedef s32 (*c2h_id_filter)(u8 id);
void rtl8188eu_interface_configure(struct adapter *adapt);
void ReadAdapterInfo8188EU(struct adapter *Adapter);
void rtl8188eu_init_default_value(struct adapter *adapt);
void rtl8188e_SetHalODMVar(struct adapter *Adapter,
			   enum hal_odm_variable eVariable, void *pValue1, bool bSet);
void rtl8188e_SetHalODMVar(struct adapter *Adapter, void *pValue1, bool bSet);
u32 rtl8188eu_InitPowerOn(struct adapter *adapt);
void rtl8188e_EfusePowerSwitch(struct adapter *pAdapter, u8 PwrState);
void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf);