Wireless interface not working on DSL2740B-C3
(This fix works for openwrt-15.05-brcm63xx-generic-DSL274XB-C3-squashfs-cfe.bin)
If your wireless interface does not start, you might want to add the following entry to /etc/config/wireless:
In the section "config wifi-iface" add the line:
option macaddr '00:12:34:56:78:90'
and restart wireless with the command 'wifi'.
Don't use the webinterface until the next reboot if you write to this config file manually. Doing so kicked out my edits. After a reboot however this fix also works neatly using the webinterface.
Alternatively I think you can also run the following command. I'm not sure if this will avoid the conflict with the webinterface:
root@router:~# uci set wireless.wlan0.macaddr=00:12:34:56:78:90
root@router:~# uci commit wireless
root@router:~#
==== Error description ====
Before applying this fix, logread always reported:
Mon Oct 23 11:57:01 2017 daemon.notice netifd: phy0 (746): Configuration file: /var/run/hostapd-phy0.conf
Mon Oct 23 11:57:01 2017 daemon.notice netifd: phy0 (746): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
... which basically does not tell you anything. The first line is just an info which temporary file was used to start up hostapd. The second line is NOT the error! It is netifd 's attempt to switch the wlan interface back from AP mode (access point) to managed mode (station) after failing to start the wlan interface in access-point mode.
It seems the driver does not download its firmware to the wireless chip unless it is previously set up with a valid mac address. For me the mac setting was always FF:FF:FF:FF:FF:FF initially.
You can check that by running:
root@router:~# iw dev
<<< If you read any devices here, delete them first using "iw dev <DEVICENAME> del" before going on to the next step! >>>
root@router:~# iw phy phy0 interface add wlan0 type managed
root@router:~# iw dev
phy#0
Interface wlan0
ifindex 13
wdev 0x8
addr ff:ff:ff:ff:ff:ff
type managed
root@router:~# ifconfig wlan0 hw ether 00:01:02:03:04:05
root@router:~# iw dev
phy#0
Interface wlan0
ifindex 13
wdev 0x8
addr 00:01:02:03:04:05
type managed
root@router:~# ifconfig wlan0 up
root@router:~#
This last step will now trigger the firmware download. logread reports:
Mon Oct 23 15:47:28 2017 kern.info kernel: [ 1706.684000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
My complete /etc/config/wireless file now reads:
config wifi-device 'phy0'
option type 'mac80211'
option hwmode '11g'
option path 'pci0000:00/0000:00:01.0/ssb0:0'
option channel '11'
option txpower '20'
option country 'US'
option disabled '0'
config wifi-iface 'wlan0'
option device 'phy0'
option network 'lan'
option mode 'ap'
option ssid 'SomeSSID'
option key 'somepassword'
option encryption 'psk2'
option macaddr '00:12:34:56:78:90'