SimpleLink CC3120/CC3220 Host Driver  Version 2.0.1.15
Simplifies the implementation of Internet connectivity
flowcont.c
1 /*
2  * Copyright (C) 2016 Texas Instruments Incorporated
3  *
4  * All rights reserved. Property of Texas Instruments Incorporated.
5  * Restricted rights to use, duplicate or disclose this code are
6  * granted through contract.
7  *
8  * The program may not be used without the written permission of
9  * Texas Instruments Incorporated or against the terms and conditions
10  * stipulated in the agreement under which this program has been supplied,
11  * and under no circumstances can it be used with non-TI connectivity device.
12  *
13  */
14 
15 
16 /*****************************************************************************/
17 /* Include files */
18 /*****************************************************************************/
19 #include <ti/drivers/net/wifi/simplelink.h>
20 #include <ti/drivers/net/wifi/source/protocol.h>
21 #include <ti/drivers/net/wifi/source/driver.h>
22 #include <ti/drivers/net/wifi/source/flowcont.h>
23 
24 
25 /*****************************************************************************/
26 /* _SlDrvFlowContInit */
27 /*****************************************************************************/
28 void _SlFlowContSet(void *pVoidBuf)
29 {
30  SlDeviceFlowCtrlAsyncEvent_t *pFlowCtrlAsyncEvent = (SlDeviceFlowCtrlAsyncEvent_t *)_SL_RESP_ARGS_START(pVoidBuf);
31 
32  if (pFlowCtrlAsyncEvent->MinTxPayloadSize != 0)
33  {
34  g_pCB->FlowContCB.MinTxPayloadSize = pFlowCtrlAsyncEvent->MinTxPayloadSize;
35  }
36 
37 }
38 
39