rtl8188eu: Remove code selected by CONFIG_DUALMAC_CONCURRENT

This variable only applies to RTL8192DU.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-02-15 14:41:56 -06:00
parent 020675ff42
commit e8487f5809
10 changed files with 0 additions and 829 deletions

View file

@ -438,12 +438,6 @@ void SelectChannel(struct adapter *padapter, unsigned char channel)
{
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
#ifdef CONFIG_DUALMAC_CONCURRENT
//saved channel info
rtw_set_oper_ch(padapter, channel);
dc_SelectChannel(padapter, channel);
#else //CONFIG_DUALMAC_CONCURRENT
_enter_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
//saved channel info
@ -452,21 +446,12 @@ void SelectChannel(struct adapter *padapter, unsigned char channel)
rtw_hal_set_chan(padapter, channel);
_exit_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
#endif // CONFIG_DUALMAC_CONCURRENT
}
void SetBWMode(struct adapter *padapter, unsigned short bwmode, unsigned char channel_offset)
{
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
#ifdef CONFIG_DUALMAC_CONCURRENT
//saved bw info
rtw_set_oper_bw(padapter, bwmode);
rtw_set_oper_choffset(padapter, channel_offset);
dc_SetBWMode(padapter, bwmode, channel_offset);
#else //CONFIG_DUALMAC_CONCURRENT
_enter_critical_mutex(&(adapter_to_dvobj(padapter)->setbw_mutex), NULL);
//saved bw info
@ -476,8 +461,6 @@ void SetBWMode(struct adapter *padapter, unsigned short bwmode, unsigned char ch
rtw_hal_set_bwmode(padapter, (HT_CHANNEL_WIDTH)bwmode, channel_offset);
_exit_critical_mutex(&(adapter_to_dvobj(padapter)->setbw_mutex), NULL);
#endif // CONFIG_DUALMAC_CONCURRENT
}
void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode)
@ -511,14 +494,6 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
}
//set Channel
#ifdef CONFIG_DUALMAC_CONCURRENT
//saved channel/bw info
rtw_set_oper_ch(padapter, channel);
rtw_set_oper_bw(padapter, bwmode);
rtw_set_oper_choffset(padapter, channel_offset);
dc_SelectChannel(padapter, center_ch);// set center channel
#else //CONFIG_DUALMAC_CONCURRENT
_enter_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
//saved channel/bw info
@ -530,11 +505,7 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
_exit_critical_mutex(&(adapter_to_dvobj(padapter)->setch_mutex), NULL);
#endif // CONFIG_DUALMAC_CONCURRENT
SetBWMode(padapter, bwmode, channel_offset);
}
int get_bsstype(unsigned short capability)
@ -2252,21 +2223,6 @@ int rtw_handle_dualmac(struct adapter *adapter, bool init)
pbuddy_padapter = NULL;
DBG_871X("%s(): pbuddy_padapter exist, Exchange Information\n",__FUNCTION__);
}
#ifdef CONFIG_DUALMAC_CONCURRENT
if (dvobj->InterfaceNumber == 0) {
//set adapter_type/iface type
adapter->isprimary = true;
adapter->adapter_type = PRIMARY_struct adapter;
adapter->iface_type = IFACE_PORT0;
DBG_871X("%s(): PRIMARY_struct adapter\n",__FUNCTION__);
} else {
//set adapter_type/iface type
adapter->isprimary = false;
adapter->adapter_type = SECONDARY_struct adapter;
adapter->iface_type = IFACE_PORT1;
DBG_871X("%s(): SECONDARY_struct adapter\n",__FUNCTION__);
}
#endif
}else {
pbuddy_padapter = NULL;
}