Example #1
0
File: wlan.c Project: ianjuch/ee149
//*****************************************************************************
//
//!  wlan_ioctl_del_profile
//!
//!  @param    index   number of profile to delete
//!
//!  @return    On success, zero is returned. On error, -1 is returned
//!
//!  @brief     Delete WLAN profile
//!
//!  @Note      In order to delete all stored profile, set index to 255.
//!
//!  @sa        wlan_add_profile
//
//*****************************************************************************
long wlan_ioctl_del_profile(unsigned long ulIndex)
{
    long ret;

    OS_mutex_lock(g_main_mutex, &mtx_key);
    ret = c_wlan_ioctl_del_profile(ulIndex);
    OS_mutex_unlock(g_main_mutex, mtx_key);

    return(ret);
}
Example #2
0
/**
 * \brief Delete WLAN profile
 *
 * Delete WLAN profile
 *
 * \param[in]   index  number of profile to delete
 *
 * \return  On success, zero is returned. On error, -1 is
 *            returned
 *
 * \sa   wlan_add_profile
 * \note
 * \warning
 */
long wlan_ioctl_del_profile(unsigned long ulIndex)
{
    long ret;
    ret = c_wlan_ioctl_del_profile(ulIndex);
    return(ret);
}