mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
[net][netdev] Add default netdev automatic change features configuration
Signed-off-by: chenyong <1521761801@qq.com>
This commit is contained in:
@@ -387,7 +387,7 @@ static int socket_init(int family, int type, int protocol, struct sal_socket **r
|
||||
sock->type = type;
|
||||
sock->protocol = protocol;
|
||||
|
||||
if (netdv_def && netdev_is_up(netdv_def) && netdev_is_link_up(netdv_def))
|
||||
if (netdv_def && netdev_is_up(netdv_def))
|
||||
{
|
||||
/* check default network interface device protocol family */
|
||||
pf = (struct sal_proto_family *) netdv_def->sal_user_data;
|
||||
|
||||
Reference in New Issue
Block a user