mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 13:59:47 +07:00
staging: vt6656: remove vnt_add_basic_rate
The driver never sets basic rate any more so remove function. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
068ce7d0a9
commit
d35d5fbb36
@ -470,28 +470,6 @@ void vnt_update_top_rates(struct vnt_private *priv)
|
||||
priv->byTopCCKBasicRate = top_cck;
|
||||
}
|
||||
|
||||
/*
|
||||
* Description: Set NIC Tx Basic Rate
|
||||
*
|
||||
* Parameters:
|
||||
* In:
|
||||
* pDevice - The adapter to be set
|
||||
* wBasicRate - Basic Rate to be set
|
||||
* Out:
|
||||
* none
|
||||
*
|
||||
* Return Value: true if succeeded; false if failed.
|
||||
*
|
||||
*/
|
||||
void vnt_add_basic_rate(struct vnt_private *priv, u16 rate_idx)
|
||||
{
|
||||
|
||||
priv->wBasicRate |= (1 << rate_idx);
|
||||
|
||||
/*Determines the highest basic rate.*/
|
||||
vnt_update_top_rates(priv);
|
||||
}
|
||||
|
||||
int vnt_ofdm_min_rate(struct vnt_private *priv)
|
||||
{
|
||||
int ii;
|
||||
|
@ -49,7 +49,6 @@ void vnt_set_channel(struct vnt_private *, u32);
|
||||
void vnt_set_rspinf(struct vnt_private *, u8);
|
||||
void vnt_update_ifs(struct vnt_private *);
|
||||
void vnt_update_top_rates(struct vnt_private *);
|
||||
void vnt_add_basic_rate(struct vnt_private *, u16);
|
||||
int vnt_ofdm_min_rate(struct vnt_private *);
|
||||
void vnt_adjust_tsf(struct vnt_private *, u8, u64, u64);
|
||||
bool vnt_get_current_tsf(struct vnt_private *, u64 *);
|
||||
|
@ -432,13 +432,10 @@ static int device_init_registers(struct vnt_private *pDevice)
|
||||
* set BB and packet type at the same time
|
||||
* set Short Slot Time, xIFS, and RSPINF
|
||||
*/
|
||||
if (pDevice->byBBType == BB_TYPE_11A) {
|
||||
vnt_add_basic_rate(pDevice, RATE_6M);
|
||||
if (pDevice->byBBType == BB_TYPE_11A)
|
||||
pDevice->bShortSlotTime = true;
|
||||
} else {
|
||||
vnt_add_basic_rate(pDevice, RATE_1M);
|
||||
else
|
||||
pDevice->bShortSlotTime = false;
|
||||
}
|
||||
|
||||
BBvSetShortSlotTime(pDevice);
|
||||
vnt_set_bss_mode(pDevice);
|
||||
|
Loading…
Reference in New Issue
Block a user