Skip to contentSkip to conversation

staging: vt6656: rxtx.c s_bPacketToWirelessUsb set fallback tx rates

PATCH New Malcolm Priestley 1 participant 1 message Oct 15, 2013 Staging

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 95b181d..62b7de1 100644
@@ -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