wlan: Add Periodic TX Packet Offload feature through debugfs
This feature is to add support in host driver/FW to transmit specific
packet periodically without waking up host. Application can program the
content of the data packet, and the content is transparent to host
driver/FW.
Change-Id: I77f07a8de23804bfe340486105263b9257a1e6b0
CRs-Fixed: 528870
diff --git a/CORE/MAC/inc/sirApi.h b/CORE/MAC/inc/sirApi.h
index 972bd31..d144631 100644
--- a/CORE/MAC/inc/sirApi.h
+++ b/CORE/MAC/inc/sirApi.h
@@ -139,6 +139,10 @@
#define SIR_VERSION_STRING_LEN 64
typedef tANI_U8 tSirVersionString[SIR_VERSION_STRING_LEN];
+/* Periodic Tx pattern offload feature */
+#define PERIODIC_TX_PTRN_MAX_SIZE 1536
+#define MAXNUM_PERIODIC_TX_PTRNS 6
+
enum eSirHostMsgTypes
{
SIR_HAL_APP_SETUP_NTF = SIR_HAL_HOST_MSG_START,
@@ -4338,4 +4342,24 @@
} tSirLPHBTimeoutInd;
#endif /* FEATURE_WLAN_LPHB */
+typedef struct sSirAddPeriodicTxPtrn
+{
+ /* MAC Address for the adapter */
+ tSirMacAddr macAddress;
+
+ tANI_U8 ucPtrnId; // Pattern ID
+ tANI_U16 ucPtrnSize; // Pattern size
+ tANI_U32 usPtrnIntervalMs; // In msec
+ tANI_U8 ucPattern[PERIODIC_TX_PTRN_MAX_SIZE]; // Pattern buffer
+} tSirAddPeriodicTxPtrn, *tpSirAddPeriodicTxPtrn;
+
+typedef struct sSirDelPeriodicTxPtrn
+{
+ /* MAC Address for the adapter */
+ tSirMacAddr macAddress;
+
+ /* Bitmap of pattern IDs that need to be deleted */
+ tANI_U32 ucPatternIdBitmap;
+} tSirDelPeriodicTxPtrn, *tpSirDelPeriodicTxPtrn;
+
#endif /* __SIR_API_H */