/* Stop WLAN device by putting it into reset state. 
wlan_stop */
void wlan_stop(void)
/* Stop WLAN device by putting it into reset state. 
wlan_stop */
void wlan_stop(void)
{
	tSLInformation.WriteWlanPin( WLAN_DISABLE );
	while(tSLInformation.ReadWlanInterruptPin() == 0)
	{
	}
	if (tSLInformation.pucTxCommandBuffer)
	{
		tSLInformation.pucTxCommandBuffer = 0;
	}
	SpiClose();
}