mirror of git://git.sysmocom.de/ofono
gisi: Fix embarrassing typo
This commit is contained in:
parent
54f61961b5
commit
418dba1ec3
|
@ -60,7 +60,7 @@ static int bring_up(int fd, unsigned ifindex)
|
||||||
{
|
{
|
||||||
struct ifreq req = { .ifr_ifindex = ifindex, };
|
struct ifreq req = { .ifr_ifindex = ifindex, };
|
||||||
|
|
||||||
if (ioctl(fd, SIOCGIFINDEX, &req) ||
|
if (ioctl(fd, SIOCGIFNAME, &req) ||
|
||||||
ioctl(fd, SIOCGIFFLAGS, &req))
|
ioctl(fd, SIOCGIFFLAGS, &req))
|
||||||
return -errno;
|
return -errno;
|
||||||
req.ifr_flags |= IFF_UP | IFF_RUNNING;
|
req.ifr_flags |= IFF_UP | IFF_RUNNING;
|
||||||
|
|
Loading…
Reference in New Issue