Grab the media from the passed in structure to put it into the
global structure. PR: bin/91399 Submitted by: Spencer Minear
This commit is contained in:
parent
8b1292ac52
commit
1cc59a99c0
@ -240,6 +240,7 @@ setifmediacallback(int s, void *arg)
|
||||
static int did_it = 0;
|
||||
|
||||
if (!did_it) {
|
||||
ifr.ifr_media = ifmr->ifm_current;
|
||||
if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0)
|
||||
err(1, "SIOCSIFMEDIA (media)");
|
||||
free(ifmr->ifm_ulist);
|
||||
|
Loading…
Reference in New Issue
Block a user