long wlan_disconnect() { long ret; OS_mutex_lock(g_main_mutex, &mtx_key); ret = c_wlan_disconnect(); OS_mutex_unlock(g_main_mutex, mtx_key); return(ret); }
/** * \brief wlan disconnect * * Disconnect connection from AP. * * * \return 0 disconnected done, other already disconnected * * \sa wlan_connect * \note * \warning */ long wlan_disconnect() { long ret; ret = c_wlan_disconnect(); return(ret); }