示例#1
0
/*-------------------------------------------------------------------------
	Description:	
		start an scan operation
	Arguments:
	
       pScanTable -  buffer to store the scan result, InfoCount field indicate the max buffer size
       			when scan result update, InfoCount field indicate the actual scan info number (1~16)

	MinRssiFilter - specify the least rssi of scan record
				-1 ~ -127: the rssi Threshold, scan records below which will be filterred
				other: not filter by rssi

	ScanType -   0 active scan, other  passive scan

	Return Value:
		0 - success
		other - failure
		
	Note:	
	scan result will update to the ScanTable when event SYS_EVT_SCAN_DONE generate
-------------------------------------------------------------------------*/
INT32 InfScanStart(SCAN_INFO_TABLE * pScanTable, INT8 MinRssiFilter, INT8 ScanType)
{
	INT8 MsgBody[6] = {0};

	if (!pScanTable || pScanTable->InfoCount == 0)
		return -1;

	if (MinRssiFilter > 0)
		MinRssiFilter = 0;

	NST_MOVE_MEM((INT8U *)MsgBody, &pScanTable, 4);
	MsgBody[4] = MinRssiFilter;
	MsgBody[5] = ScanType;
	
	PostTaskMsg(gpMacMngTskMsgQ, MLME_SCAN_REQUEST_ID, (PUINT8)MsgBody, 6);
	return 0;
}
示例#2
0
文件: param.c 项目: NL6621/Yeelink
/*-------------------------------------------------------------------------
	Description:	
		interface to stop WPS
		
	Arguments:
		
	Return Value:
		0 - success
		other - failure
		
	Note: 
-------------------------------------------------------------------------*/
INT32 InfWPSStop(VOID)
{
       DBGPRINT_WSC(DEBUG_TRACE,"-----------InfWPSStop ---------\n");
	PostTaskMsg(gpMacMngTskMsgQ, MLME_WPS_STOP_SET_ID, NULL, 0);
	return 0;
}
示例#3
0
文件: param.c 项目: NL6621/Yeelink
/*-------------------------------------------------------------------------
	Description:	
		interface to set idle sta age out time
		
	Arguments:
        	Time - specify the time to wait before age out idle sta
        		   0 - not age out idle peer
        		   other - age out time in second
        	
	Return Value:
		0 - success
		other - failure
		
	Note: 
		peer age out function only be valid in softap mode
-------------------------------------------------------------------------*/
INT32 InfPeerAgeOutSet(INT32U Time)
{
	PostTaskMsg(gpMacMngTskMsgQ, MLME_PEER_AGE_OUT_SET_ID, (PUINT8)&Time, sizeof(INT32U));
	return 0;
}
示例#4
0
文件: param.c 项目: NL6621/Yeelink
/*-------------------------------------------------------------------------
	Description:	
		interface to stop wifi
		
	Arguments:
		
	Return Value:
		0 - success
		other - failure
		
	Note: 
              make sure call this interface before modify wifi parameters 
-------------------------------------------------------------------------*/
INT32 InfWiFiStop(VOID)
{
	PostTaskMsg(gpMacMngTskMsgQ, MLME_STOP_ID, NULL, 0);
	return 0;
}
示例#5
0
文件: param.c 项目: NL6621/Yeelink
/*-------------------------------------------------------------------------
	Description:	
		interface to start wifi
		
	Arguments:
		
	Return Value:
		0 - success
		other - failure
		
	Note: 
		make sure call this interface after all wifi parameters 
		has been set.
-------------------------------------------------------------------------*/
INT32 InfWiFiStart(VOID)
{
	PostTaskMsg(gpMacMngTskMsgQ, MLME_START_ID, NULL, 0);
	return 0;
}