Hello,
I've installed a new laptop and something very weird happened to me, I can not list the interface using ifconfig but it's still there:
But I can use it with in wlandev:
I did a small program to list interfaces but there is no interface
Is there something wrong?
I've installed a new laptop and something very weird happened to me, I can not list the interface using ifconfig but it's still there:
Code:
david@freebsd:~ % ifconfig iwn0
ifconfig: interface iwn0 does not exist
david@freebsd:~ % ifconfig -a | grep iwn
david@freebsd:~ % sysctl dev.iwn
dev.iwn.0.%parent: pci2
dev.iwn.0.%pnpinfo: vendor=0x8086 device=0x0085 subvendor=0x8086 subdevice=0x1311 class=0x028000
dev.iwn.0.%location: slot=0 function=0 dbsf=pci0:3:0:0
dev.iwn.0.%driver: iwn
dev.iwn.0.%desc: Intel Centrino Advanced-N 6205
dev.iwn.%parent:
david@freebsd:~ %
But I can use it with in wlandev:
Code:
root@freebsd:/usr/home/david # ifconfig wlan0 create wlandev iwn0
root@freebsd:/usr/home/david #
I did a small program to list interfaces but there is no interface
Code:
...
if (getifaddrs(&ifap) == -1) {
perror("getifaddrs");
return -1;
}
for (aux = ifap; aux != NULL; aux = aux->ifa_next) {
printf("interface: %s\n", aux->ifa_name);
}
...
david@freebsd:~/workspace/freebsd-iflist % ./iflist
interface: em0
interface: lo0
interface: lo0
interface: lo0
interface: lo0
interface: vboxnet0
interface: vboxnet1
interface: vboxnet1
interface: wlan0
interface: wlan0
david@freebsd:~/workspace/freebsd-iflist %
Is there something wrong?