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
bada3291be
commit
9622a8659a
@ -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…
x
Reference in New Issue
Block a user