Wifi is not working on two of my boards 3

I have some tests on the bug boards today.

Address can not be assigned because of HWAddr is not correct. HWAddr is hardware mac address.

root@OpenWrt:/# ifconfig -a
br-lan Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
 inet6 addr: fe80::449b:94ff:fe0a:e671/64 Scope:Link
 inet6 addr: fd79:c06e:e417::1/60 Scope:Global
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:1268 (1.2 KiB)
eth0 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF 
 BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 Interrupt:5
eth0.1 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF 
 BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0.2 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF 
 BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback 
 inet addr:127.0.0.1 Mask:255.0.0.0
 inet6 addr: ::1/128 Scope:Host
 UP LOOPBACK RUNNING MTU:65536 Metric:1
 RX packets:146 errors:0 dropped:0 overruns:0 frame:0
 TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:9888 (9.6 KiB) TX bytes:9888 (9.6 KiB)
wlan0 Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:0 (0.0 B) TX bytes:1540 (1.5 KiB)

It is FF:FF:FF:FF:FF:FF

eth0 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF

Use ifconfig to setup that address and bring up eth0 success.

ifconfig eth0 hw ether 46:9B:94:0A:E6:71
ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
ifconfig eth0.1 hw ether 46:9B:94:0A:E6:71
ifconfig eth0.1 192.168.1.101 netmask 255.255.255.0 up
ifconfig eth0.2 hw ether 46:9B:94:0A:E6:71
ifconfig eth0.2 192.168.1.102 netmask 255.255.255.0 up

And now in ifconfig ethernets are all up.

ifconfig wlan0 192.168.1.103 netmask 255.255.255.0

setup ip for wlan0.

root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet6 addr: fe80::449b:94ff:fe0a:e671/64 Scope:Link
 inet6 addr: fd79:c06e:e417::1/60 Scope:Global
 UP BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:1458 (1.4 KiB)
eth0 Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
 inet6 addr: fe80::449b:94ff:fe0a:e671/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:0 (0.0 B) TX bytes:15958 (15.5 KiB)
 Interrupt:5
eth0.1 Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0.2 Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
 inet6 addr: fe80::449b:94ff:fe0a:e671/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:0 (0.0 B) TX bytes:15342 (14.9 KiB)
lo Link encap:Local Loopback 
 inet addr:127.0.0.1 Mask:255.0.0.0
 inet6 addr: ::1/128 Scope:Host
 UP LOOPBACK RUNNING MTU:65536 Metric:1
 RX packets:4468 errors:0 dropped:0 overruns:0 frame:0
 TX packets:4468 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:303744 (296.6 KiB) TX bytes:303744 (296.6 KiB)
wlan0 Link encap:Ethernet HWaddr 46:9B:94:0A:E6:71 
 inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
 UP BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:0 (0.0 B) TX bytes:1748 (1.7 KiB)

Now the ifconfig result is same as the normal one. But iw dev wlan0 scanĀ has nothing returned, wireless module still dose not work.

Another try is to call:

/etc/init.d/firewall stop
/etc/init.d/firewall disable

firewall is stopped, still dose not work.

 

This bug is not easy to locate now. I guess this must have some connection with hardware, now I have to check the ethernet driver to see what will cause it failed to start. Lucky meĀ still have one board work. It will be a long way to find out the problem.