staging: vt6656: rxtx.c s_bPacketToWirelessUsb set fallback tx rates
PATCH 1/3 staging: vt6656: rxtx.c s_bPacketToWirelessUsb set fallback tx rates
Set the two TX fall back rates in s_bPacketToWirelessUsb and pass to private area of driver in variables tx_rate_fb0 and tx_rate_fb1 from the wFB_Opt0/wFB_Opt1 array.
Apply these rates were needed in the TX structure and remove byFBOption settings in s_uGetRTSCTSDuration.
This greatly simplifies s_uGetRTSCTSDuration and more future flexibility of setting rates from upper levels of driver.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/device.h | 3 ++ drivers/staging/vt6656/rxtx.c | 99 +++++++++++++++++++---------------------- 2 files changed, 49 insertions(+), 53 deletions(-)
drivers/staging/vt6656/device.h +3 -0
@@ -579,6 +579,9 @@ struct vnt_private {u8 abyOFDMAPwrTbl[42 ];u16 wCurrentRate; +u16 tx_rate_fb0; +u16 tx_rate_fb1; +u16 wRTSThreshold;u16 wFragmentationThreshold;u8 byShortRetryLimit;
drivers/staging/vt6656/rxtx.c +46 -53
152 lines not on this page · raw message
Signature · 1 line
1.8.3.2