summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/netdev_settings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/netdev_settings.c b/src/net/netdev_settings.c
index cc2e1035..fb98663c 100644
--- a/src/net/netdev_settings.c
+++ b/src/net/netdev_settings.c
@@ -370,8 +370,8 @@ struct settings_operations netdev_settings_operations = {
static struct settings * netdev_redirect ( struct settings *settings ) {
struct net_device *netdev;
- /* Redirect to most recently opened network device */
- netdev = last_opened_netdev();
+ /* Redirect to "netX" network device */
+ netdev = find_netdev ( settings->name );
if ( netdev ) {
return netdev_settings ( netdev );
} else {