Getting lower bandwidth while running iperf 3 with android to FreeRTOS 4.2.1/ADI- Griffin SCxxx

Getting 2 mbps when running between android to FreeRTOS 4.2.1/ADI- Griffin SCxxx

tried experimenting with the suggested winsize and bufsize still facing same issues but when running iperf via external to FreeRTOS 4.2.1/ADI- Griffin SCxxx driver we are getting around 60-70 mbps

Below is the configurations we are using currently

#define ipconfigIPERF_VERSION 3
#define ipconfigIPERF_STACK_SIZE_IPERF_TASK 640

#define ipconfigIPERF_TX_BUFSIZE ( 24 * ipconfigTCP_MSS )
#define ipconfigIPERF_TX_WINSIZE ( 12 )
#define ipconfigIPERF_RX_BUFSIZE ( 24 * ipconfigTCP_MSS )
#define ipconfigIPERF_RX_WINSIZE ( 12 )

/*The iperf module declares a character buffer to store its send data. */
#define ipconfigIPERF_RECV_BUFFER_SIZE ( 24 * ipconfigTCP_MSS )
any inputs on this will be helpful Thanks!!!

Does the ADI Griffin provide gigabit PHY/MAC? If not, that number seems like a good enough throughput for TCP.

How is the Android env interacting with Griffin? Is it over wifi over a router?
You might need to check the configuration on the Android env, like the PHY config (100/1000 PHY, if using ethernet), TCP MSS, which IPERF client you are using on Android, etc.