Solved Wireless interface not listed (but it works)

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:

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?
 
That's a new thing. Wireless cards will no longer show under ifconfig unless they're made into a wlan dev. The way to tell these days is to use sysctl.net.wlan.devices, which will show you if the card is there.

I don't think it got mentioned in UPDATING, but I could be wrong. I think wblock@ pointed it out to me when I asked about it on these forums.

So, no, nothing wrong with your system.
 
Back
Top