Yes it is normal..

I have looked in to this issue myself.
It occurs because the interfaces are configured twice
Once by the the init scripts and then again by hotplug.
There is a little bit of a race condition and usually the second
configuration is being performed
on an interface that is already up.

Setting the ssid can only be performed when the radio is off.
If it is already on.  You will get the error.

----------------------------------------------------------
Chris Martin
m: 0419812371
----------------------------------------------------------


2010/4/19 Nuno Gonçalves <nuno...@gmail.com>

> Is the message 'set ssid' failed normal?
> Latest trunk on Asus WL500GP v1.
>
> r...@openwrt:/# wifi
> Command 'set ssid' failed: -1
> r...@openwrt:/# dmesg | grep corerev
> wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap
> 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
> r...@openwrt:/# cat /etc/config/wireless
> config wifi-device  wl0
>        option type     broadcom
>        option channel  5
>
> config wifi-iface
>        option device   wl0
>        option network  lan
>        option mode     ap
>        option ssid     NrSrBerlengas
>        option encryption psk2
>        option key      maria+maria
>
> config wifi-iface
>        option device   wl0
>        option network  lan
>        option mode     ap
>        option ssid     NrSrMadeira
>        option encryption psk
>        option key      francisca
> r...@openwrt:/# dmesg
> CPU revision is: 00029006
> Primary instruction cache 16kB, physically tagged, 2-way, linesize 16
> bytes.
> Primary data cache 16kB, 2-way, linesize 16 bytes.
> Linux version 2.4.37.9 (n...@ground2) (gcc version 3.4.6
> (OpenWrt-2.0)) #3 Mon Apr 19 08:50:56 WEST 2010
> Setting the PFC to its default value
> Determined physical RAM map:
>  memory: 02000000 @ 00000000 (usable)
> On node 0 totalpages: 8192
> zone(0): 8192 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2
> init=/etc/preinit noinitrd console=ttyS0,115200
> CPU: BCM4704 rev 9 at 264 MHz
> Using 132.000 MHz high precision timer.
> Calibrating delay loop... 263.78 BogoMIPS
> Memory: 30460k/32768k available (1439k kernel code, 2308k reserved,
> 96k data, 84k init, 0k highmem)
> Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
> Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
> Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Checking for 'wait' instruction...  unavailable.
> POSIX conformance testing by UNIFIX
> PCI: Initializing host
> PCI: Fixing up bus 0
> PCI: Fixing up bridge
> PCI: Setting latency timer of device 01:00.0 to 64
> PCI: Fixing up bus 1
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> Registering mini_fo version $Id$
> devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au)
> devfs: boot_options: 0x1
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
> AB.
> squashfs: version 3.0 (2006/03/15) Phillip Lougher
> pty: 256 Unix98 ptys configured
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
> SERIAL_PCI enabled
> ttyS00 at 0xb8000300 (irq = 3) is a 16550A
> ttyS01 at 0xb8000400 (irq = 3) is a 16550A
> b44.c:v0.93 (Mar, 2004)
> PCI: Setting latency timer of device 00:01.0 to 64
> eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1d:60:15:5f:a3
> PCI: Setting latency timer of device 00:02.0 to 64
> eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
> Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
> Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
> Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
>  Amd/Fujitsu Extended Query Table v1.3 at 0x0040
> number of CFI chips: 1
> cfi_cmdset_0002: Disabling fast programming due to code brokenness.
> Flash device: 0x800000 at 0x1c000000
> bootloader size: 262144
> Physically mapped flash: Filesystem type: squashfs, size=0x15f295
> Updating TRX offsets and length:
> old trx = [0x0000001c, 0x00000904, 0x0007b000], len=0x00201000
> crc32=0x60c6a41e
> new trx = [0x0000001c, 0x00000904, 0x0007b000], len=0x001e0000
> crc32=0x850e33b8
> Done
> Creating 5 MTD partitions on "Physically mapped flash":
> 0x00000000-0x00040000 : "cfe"
> 0x00040000-0x007f0000 : "linux"
> 0x000bb000-0x00220000 : "rootfs"
> mtd: partition "rootfs" doesn't start on an erase block boundary --
> force read-only
> 0x007f0000-0x00800000 : "nvram"
> 0x00220000-0x007f0000 : "rootfs_data"
> sflash: found no supported devices
> Initializing Cryptographic API
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> Linux IP multicast router 0.06 plus PIM-SM
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NET4: Ethernet Bridge 008 for NET4.0
> 802.1Q VLAN Support v1.8 Ben Greear <gree...@candelatech.com>
> All bugs added by David S. Miller <da...@redhat.com>
> VFS: Mounted root (squashfs filesystem) readonly.
> Mounted devfs on /dev
> Freeing unused kernel memory: 84k freed
> diag: Detected 'ASUS WL-500g Premium'
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> roboswitch: Probing device eth0: found a 5325! It's a 5350.
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> mini_fo: using base directory: /
> mini_fo: using storage directory: /tmp/root
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> jffs2.bbc: SIZE compression mode activated.
> b44: eth0: Link is up at 100 Mbps, full duplex.
> b44: eth0: Flow control is off for TX and off for RX.
> eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
> eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
> eth0.0: dev_set_promiscuity(master, 1)
> device eth0 entered promiscuous mode
> device eth0.0 entered promiscuous mode
> br-lan: port 1(eth0.0) entering learning state
> br-lan: port 1(eth0.0) entering forwarding state
> br-lan: topology change detected, propagating
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> PCI: Setting latency timer of device 01:02.0 to 64
> PCI: Enabling device 01:02.0 (0004 -> 0006)
> PCI/DMA
> wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap
> 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
> wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
> CSLIP: code copyright 1989 Regents of the University of California
> PPP generic driver version 2.4.2
> ip_tables: (C) 2000-2002 Netfilter core team
> PCI: Enabling device 01:03.2 (0000 -> 0002)
> ehci_hcd 01:03.2: PCI device 1106:3104
> ehci_hcd 01:03.2: irq 2, pci mem c0192000
> usb.c: new USB bus registered, assigned bus number 1
> EHCI: Enabling VIA 6212 workarounds
> ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
> hub.c: USB hub found
> hub.c: 4 ports detected
> ip_conntrack version 2.1 (5953 buckets, 5953 max) - 336 bytes per conntrack
> usb-uhci.c: $Revision: 1.275 $ time 08:44:48 Apr 19 2010
> usb-uhci.c: High bandwidth mode enabled
> PCI: Enabling device 01:03.0 (0000 -> 0001)
> UHCI: Enabling VIA 6212 workarounds
> usb-uhci.c: USB UHCI at I/O 0x100, IRQ 2
> usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 2
> hub.c: USB hub found
> hub.c: 2 ports detected
> PCI: Enabling device 01:03.1 (0000 -> 0001)
> UHCI: Enabling VIA 6212 workarounds
> usb-uhci.c: USB UHCI at I/O 0x120, IRQ 2
> usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 3
> hub.c: USB hub found
> hub.c: 2 ports detected
> usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
> jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
> jffs2_build_filesystem(): unlocking the mtd device... done.
> jffs2_build_filesystem(): erasing all blocks after the end marker... done.
> mini_fo: using base directory: /
> mini_fo: using storage directory: /overlay
> device wl0 entered promiscuous mode
> wl0: attempt to add interface with same source address.
> br-lan: port 2(wl0) entering learning state
> br-lan: port 2(wl0) entering forwarding state
> br-lan: topology change detected, propagating
> br-lan: port 2(wl0) entering disabled state
> br-lan: port 2(wl0) entering disabled state
> device wl0 left promiscuous mode
> device wl0 entered promiscuous mode
> wl0: attempt to add interface with same source address.
> br-lan: port 2(wl0) entering learning state
> br-lan: port 2(wl0) entering forwarding state
> br-lan: topology change detected, propagating
> device wl0.1 entered promiscuous mode
> br-lan: port 3(wl0.1) entering learning state
> br-lan: port 3(wl0.1) entering forwarding state
> br-lan: topology change detected, propagating
> r...@openwrt:/#
>
> --
> + Nuno Gonçalves
> + nuno...@gmail.com
> + http://nunoassimassim.blogspot.com/
> + PORTUGAL
> E-mail sent directly from Google Mail webmail using HTTPS on behalf of
> Nuno João Pinto Gonçalves, birth date 1986-11-16. E-mail headers
> provide good assurance that this message was not tampered and
> originates from nuno...@gmail.com. If you require additional security,
> I may provide on request X509 electronic signature under Portuguese
> government chain.
> Se precisar de assinatura digital do Cartão de Cidadão, de uma apitadela.
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to