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
3 changed files with 2 additions and 28 deletions
|
@ -470,28 +470,6 @@ void vnt_update_top_rates(struct vnt_private *priv)
|
||||||
priv->byTopCCKBasicRate = top_cck;
|
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 vnt_ofdm_min_rate(struct vnt_private *priv)
|
||||||
{
|
{
|
||||||
int ii;
|
int ii;
|
||||||
|
|
|
@ -49,7 +49,6 @@ void vnt_set_channel(struct vnt_private *, u32);
|
||||||
void vnt_set_rspinf(struct vnt_private *, u8);
|
void vnt_set_rspinf(struct vnt_private *, u8);
|
||||||
void vnt_update_ifs(struct vnt_private *);
|
void vnt_update_ifs(struct vnt_private *);
|
||||||
void vnt_update_top_rates(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 *);
|
int vnt_ofdm_min_rate(struct vnt_private *);
|
||||||
void vnt_adjust_tsf(struct vnt_private *, u8, u64, u64);
|
void vnt_adjust_tsf(struct vnt_private *, u8, u64, u64);
|
||||||
bool vnt_get_current_tsf(struct vnt_private *, 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 BB and packet type at the same time
|
||||||
* set Short Slot Time, xIFS, and RSPINF
|
* set Short Slot Time, xIFS, and RSPINF
|
||||||
*/
|
*/
|
||||||
if (pDevice->byBBType == BB_TYPE_11A) {
|
if (pDevice->byBBType == BB_TYPE_11A)
|
||||||
vnt_add_basic_rate(pDevice, RATE_6M);
|
|
||||||
pDevice->bShortSlotTime = true;
|
pDevice->bShortSlotTime = true;
|
||||||
} else {
|
else
|
||||||
vnt_add_basic_rate(pDevice, RATE_1M);
|
|
||||||
pDevice->bShortSlotTime = false;
|
pDevice->bShortSlotTime = false;
|
||||||
}
|
|
||||||
|
|
||||||
BBvSetShortSlotTime(pDevice);
|
BBvSetShortSlotTime(pDevice);
|
||||||
vnt_set_bss_mode(pDevice);
|
vnt_set_bss_mode(pDevice);
|
||||||
|
|
Loading…
Add table
Reference in a new issue