Hi,
I've had some problems getting the WiFi to stay stable on the WRT1200AC, so I tried OpenWRT.
Problem description:
There's 2 radios on the device, an AC (radio0) and BG/N (radio1).
I'm having trouble getting radio0 to stay up. Whether it's up or not is random. Just after setting OpenWRT up initially, both radios ran fine, but after a while, radio0 stops working.
Running LuCI 15.05-142-gb6330a1 Release (git-15.363.78009-956be55) / OpenWrt Chaos Calmer 15.05.1
What I've Tried:
* Rebooting the device helps in maybe 1 on 4 tries.
* Even though the radio is marked as enabled, and I've typed "wifi radio0 up" in the console, I get this message in the frontend: "Wireless is disabled or not associated"
Documentation
When tailing the log, I get this when running "wifi radio0 up":
Tue Jan 17 08:06:50 2017 daemon.notice netifd: radio0 (5004): Configuration file: /var/run/hostapd-phy0.conf
Tue Jan 17 08:06:51 2017 kern.debug kernel: [ 384.278285] ieee80211 phy0: change: 0xffffffff
Tue Jan 17 08:06:51 2017 kern.info kernel: [ 384.359807] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): nl80211: Could not configure driver mode
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): nl80211 driver initialization failed.
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): wlan0: interface state UNINITIALIZED->DISABLED
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): wlan0: AP-DISABLED
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): hostapd_free_hapd_data: Interface wlan0 wasn't started
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): Command failed: Invalid argument
Tue Jan 17 08:06:51 2017 daemon.notice netifd: radio0 (5004): Device setup failed: HOSTAPD_START_FAILED
Here's the output of "wifi status":
{
"radio0": {
"up": false,
"pending": true,
"autostart": true,
"disabled": false,
"config": {
"hwmode": "11a",
"path": "soc\/soc:pcie-controller\/pci0000:00\/0000:00:01.0\/0000:01:00.0",
"txpower": 20,
"htmode": "VHT80",
"channel": "100",
"country": "DE"
},
"interfaces": [
{
"section": "@wifi-iface[1]",
"config": {
"mode": "ap",
"encryption": "psk2",
"key": "password",
"ssid": "network name",
"mode": "ap",
"network": [
"lan"
]
}
}
]
},
"radio1": {
"up": true,
"pending": false,
"autostart": true,
"disabled": false,
"config": {
"channel": "11",
"hwmode": "11g",
"path": "soc\/soc:pcie-controller\/pci0000:00\/0000:00:02.0\/0000:02:00.0",
"htmode": "HT20",
"country": "DE",
"txpower": 20
},
"interfaces": [
{
"section": "@wifi-iface[0]",
"ifname": "wlan1",
"config": {
"mode": "ap",
"encryption": "psk2",
"key": "password",
"ssid": "network name",
"network": [
"lan"
],
"mode": "ap"
}
}
]
}
}
Here's the content of /etc/config/wireless:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11a'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0'
option txpower '20'
option htmode 'VHT80'
option channel '100'
option country 'DE'
config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
option htmode 'HT20'
option country 'DE'
option txpower '20'
config wifi-iface
option device 'radio1'
option network 'lan'
option mode 'ap'
option encryption 'psk2'
option ssid 'network name'
option key 'password'
config wifi-iface
option device 'radio0'
option mode 'ap'
option network 'lan'
option encryption 'psk2'
option ssid 'network name'
option key 'password'
And the output of "iw list":
root@officeap02:/etc/config# iw list
Wiphy phy1
max # scan SSIDs: 4
max scan IEs length: 2242 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Available Antennas: TX 0 RX 0
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
Band 1:
Capabilities: 0x6f
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT TX/RX MCS rate indexes supported: 0-15, 32
VHT Capabilities (0x33801931):
Max MPDU length: 7991
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
SU Beamformer
SU Beamformee
RX antenna pattern consistency
TX antenna pattern consistency
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
* 2484 MHz [14] (disabled)
valid interface combinations:
* #{ AP } <= 16, #{ managed } <= 1,
total <= 16, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2247 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Available Antennas: TX 0 RX 0
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
Band 2:
Capabilities: 0x6f
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT TX/RX MCS rate indexes supported: 0-15, 32
VHT Capabilities (0x33801931):
Max MPDU length: 7991
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
SU Beamformer
SU Beamformee
RX antenna pattern consistency
TX antenna pattern consistency
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
Frequencies:
* 5180 MHz [36] (20.0 dBm)
* 5200 MHz [40] (20.0 dBm)
* 5220 MHz [44] (20.0 dBm)
* 5240 MHz [48] (20.0 dBm)
* 5260 MHz [52] (20.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5280 MHz [56] (20.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5300 MHz [60] (20.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5320 MHz [64] (20.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5500 MHz [100] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5520 MHz [104] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5540 MHz [108] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5560 MHz [112] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5580 MHz [116] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5600 MHz [120] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5620 MHz [124] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5640 MHz [128] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5660 MHz [132] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5680 MHz [136] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5700 MHz [140] (27.0 dBm) (radar detection)
DFS state: usable (for 470 sec)
DFS CAC time: 60000 ms
* 5720 MHz [144] (disabled)
* 5745 MHz [149] (disabled)
* 5765 MHz [153] (disabled)
* 5785 MHz [157] (disabled)
* 5805 MHz [161] (disabled)
valid interface combinations:
* #{ AP } <= 16, #{ managed } <= 1,
total <= 16, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
(Last edited by sf on 17 Jan 2017, 09:15)