ral_init() takes a struct ral_softc as parameter not a struct ifnet.

Fixes a panic that occured when setting the interface parameters while
the interface was associated.

Approved by:	re (scottl)
This commit is contained in:
damien 2005-07-08 19:13:49 +00:00
parent d732ff5ca2
commit 9530c73e6c
2 changed files with 2 additions and 2 deletions

View File

@ -928,7 +928,7 @@ ral_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
ral_init(ifp);
ral_init(sc);
return 0;
}

View File

@ -685,7 +685,7 @@ ural_media_change(struct ifnet *ifp)
}
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
ural_init(ifp);
ural_init(sc);
RAL_UNLOCK(sc);