/* This function will set default network interface device. */
void netdev_set_default(struct netdev *netdev)
/* This function will set default network interface device. */
void netdev_set_default(struct netdev *netdev)
{
    if (netdev)
    {
        netdev_default = netdev;
        if (netdev->ops->set_default)
        {
            netdev->ops->set_default(netdev);
        }
        LOG_D("Setting default network interface device name(%s) successfully.", netdev->name);
    }
}