Commit d35d5fbb authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: remove vnt_add_basic_rate

The driver never sets basic rate any more so remove function.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 068ce7d0
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment