wlan: [Part 1]Implement Soft AP Tx flow control

Implement timer to collect the samples of TX frames fetched from
stations which helps to keep track of number of frames pushed to DXE
in 100ms duration during flow control mechanism.

Change-Id: I4d9698dca3e271e9771135e6f10cb75aab96690d
CRs-Fixed: 1097660
diff --git a/CORE/TL/src/wlan_qct_tli.h b/CORE/TL/src/wlan_qct_tli.h
index 4d23eb2..480673c 100644
--- a/CORE/TL/src/wlan_qct_tli.h
+++ b/CORE/TL/src/wlan_qct_tli.h
@@ -190,6 +190,9 @@
 #define WLANTL_RMC_HASH_TABLE_SIZE (32)
 #endif
 
+#define WLANTL_SAMPLE_INTERVAL 50
+#define WLANTL_SAMPLE_COUNT 2
+
 /*-------------------------------------------------------------------------
   BT-AMP related definition - !!! should probably be moved to BT-AMP header
 ---------------------------------------------------------------------------*/
@@ -727,6 +730,12 @@
 
   /* Disassoc in progress */
   v_BOOL_t disassoc_progress;
+
+  /* sample timer Tx frames */
+  uint64_t tx_frames;
+  uint32_t tx_sample[WLANTL_SAMPLE_COUNT];
+  uint64_t tx_samples_sum;
+
 }WLANTL_STAClientType;
 
 /*---------------------------------------------------------------------------
@@ -967,6 +976,10 @@
   WLANTL_RoamMonitorType gDsRxRoamStats;
 #endif
 
+  /* TX sample data timer */
+  vos_timer_t tx_frames_timer;
+  uint8_t sample_count;
+
 }WLANTL_CbType;