Hi Amleng,
For wifi, that is the phy rate over the air. However, if the system can only feed the phy at something less than that, the phy idles most of the time. Typically on a K-series device, with DMA turned for the SPI port, we see a sustaintable 5-10Mbits of throughput. It is still strange why you would be getting so much less. probablyt you have done something on the MCU side that is slowing the rate the data goes over SPI to WiFi device.
Please notice that CPU must handle MQX Kernell, Interrupt Handler, Dispatcher, All the tasks in your application, TCP/IP stack and any other hardware driver.
There are some things you can make to improve the performance:
1) Use the default 4Kb buffer size for sockets.
2) Reduce systick (BSP_ALARM_FREQUENCY) which is 100 by default.
3) Reduce the number of tasks to avoid context changes.
4) See chapter 2.16 Compile-Time Options and also 2.16.1 Recommended Settings of RTCSUG.pdf and play with Compile-Time options.
Regards,
Carlos