/* This function will enable network interface device . */
int netdev_set_up(struct netdev *netdev)
/* This function will enable network interface device . */
int netdev_set_up(struct netdev *netdev)
{
    if (!netdev->ops || !netdev->ops->set_up)
    {
        LOGE(TAG, "The network interface device(%s) not support to set status.", netdev->name);
        return -1;
    }
    if (netdev_is_up(netdev))
    {
        return 0;
    }
    return netdev->ops->set_up(netdev);
}