In smap_stop(), clear IFF_RUNNING before disabling the device.

This commit is contained in:
dyoung 2008-03-12 17:23:13 +00:00
parent f71d8b8379
commit 15bb494e45
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_smap.c,v 1.11 2008/01/19 22:10:15 dyoung Exp $ */
/* $NetBSD: if_smap.c,v 1.12 2008/03/12 17:23:13 dyoung Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.11 2008/01/19 22:10:15 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_smap.c,v 1.12 2008/03/12 17:23:13 dyoung Exp $");
#include "debug_playstation2.h"
@ -645,10 +645,10 @@ smap_stop(struct ifnet *ifp, int disable)
mii_down(&sc->emac3.mii);
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
if (disable)
emac3_disable();
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
}
/*