Re: linux-3.0-rc4, wlan0 device is not showing with ifconfig

From: Eric Dumazet
Date: Mon Jun 27 2011 - 13:33:23 EST


Le lundi 27 juin 2011 Ã 17:42 +0200, Stephan Raue a Ãcrit :
> Hi,
>
> running linux-3.0-rc4 my wlan0 device is not showing with ifconfig, even
> if the driver (r8712u) loads successfull.
>
> strace ifconfig shows:
>
> ioctl(3, SIOCGIFFLAGS, {ifr_name="wlan0",
> ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
> ioctl(3, SIOCGIFHWADDR, {ifr_name="wlan0",
> ifr_hwaddr=80:1f:02:0b:5d:9a}) = 0
> ioctl(3, SIOCGIFMETRIC, {ifr_name="wlan0", ifr_metric=0}) = 0
> ioctl(3, SIOCGIFMTU, {ifr_name="wlan0", ifr_mtu=1500}) = 0
> ioctl(3, SIOCGIFMAP, {ifr_name="wlan0", ifr_map={mem_start=0, mem_end=0,
> base_addr=0, irq=0, dma=0, port=0}}) = 0
> ioctl(3, SIOCGIFTXQLEN, {ifr_name="wlan0", ifr_qlen=1000}) = 0
> ioctl(3, SIOCGIFADDR, {ifr_name="wlan0", ???}) = -1 EADDRNOTAVAIL
> (Cannot assign requested address)
> close(3) = 0
>
> the interface will be shown after i setup a ipadress manually:
>
> ifconfig wlan0 192.68.0.13
> strace ifconfig
>
> ioctl(3, SIOCGIFFLAGS, {ifr_name="wlan0",
> ifr_flags=IFF_UP|IFF_BROADCAST|IFF_MULTICAST}) = 0
> ioctl(3, SIOCGIFHWADDR, {ifr_name="wlan0",
> ifr_hwaddr=80:1f:02:0b:5d:9a}) = 0
> ioctl(3, SIOCGIFMETRIC, {ifr_name="wlan0", ifr_metric=0}) = 0
> ioctl(3, SIOCGIFMTU, {ifr_name="wlan0", ifr_mtu=1500}) = 0
> ioctl(3, SIOCGIFMAP, {ifr_name="wlan0", ifr_map={mem_start=0, mem_end=0,
> base_addr=0, irq=0, dma=0, port=0}}) = 0
> ioctl(3, SIOCGIFTXQLEN, {ifr_name="wlan0", ifr_qlen=1000}) = 0
> ioctl(3, SIOCGIFADDR, {ifr_name="wlan0", ifr_addr={AF_INET,
> inet_addr("168.0.0.13")}}) = 0
> ioctl(3, SIOCGIFDSTADDR, {ifr_name="wlan0", ifr_dstaddr={AF_INET,
> inet_addr("168.0.0.13")}}) = 0
> ioctl(3, SIOCGIFBRDADDR, {ifr_name="wlan0", ifr_broadaddr={AF_INET,
> inet_addr("168.0.255.255")}}) = 0
> ioctl(3, SIOCGIFNETMASK, {ifr_name="wlan0", ifr_netmask={AF_INET,
> inet_addr("255.255.0.0")}}) = 0
>
> is this problem known and is there a fix for this?

Pretty normal behavior, if your device is not "UP"

To see all devices, even DOWN ones, use "ifconfig -a"


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/