Error #481
LAN bridge consistently gets 169.254.185.1 address during qmp_autoconf
Description
Instead of 172.30.22.1, it gets 169.254.185.1.
Associated revisions
[qmp-system] Fix viface for 2.4 GHz 80211s_aplan radios
On first boot, routers with a single 2.4 GHz radio had it auto-
configured as 80211s_aplan, with interface wlan0 as 80211s and
wlan0ap as AP. However, the wlan0 interface was wrongly considered
as being inside the virtual interface (viface) "lan" instead of
"mesh_w0". This was a corner case in the qmp_get_virtual_iface()
function, which ultimately made rescue_ip 169.254.x.y to be
incorrectly assigned to "br-lan" instead of "mesh_w0".
Fixes #481.
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
[qmp-system] Get wifi devices for qmp_get_wifi_devices() also from ubus.
Continues 7c75474ed496fd5e6bffa9c9823b8d825490cf50,
cb7fd04423ce05fa64b96efb6667421b33bf100c,
6c5212f16880ac84359532fdebd518b26cede3e3 and
b45499e1dc4ef962120a9f5970be99a7d19f8cef.
Fixes #481.
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
[qmp-system] Get wifi devices for qmp_get_wifi_devices() also from ubus.
Continues 7c75474ed496fd5e6bffa9c9823b8d825490cf50,
cb7fd04423ce05fa64b96efb6667421b33bf100c,
6c5212f16880ac84359532fdebd518b26cede3e3 and
b45499e1dc4ef962120a9f5970be99a7d19f8cef.
Fixes #481.
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
History
#1 Updated by Roger Pueyo Centelles about 2 years ago
- Category set to Network
- Target version set to v5.0.0
- Estimated time set to 10.00 h
Observed on a single-2.4 GHz radio device with 2 switched Ethernet ports (eth0.1, eth0.2).
AP radio is correct, but 802.11 radio is in the wrong network:
config wifi-iface 'wlan0'
option device 'radio0'
option mode 'mesh'
option mesh_id 'qMp'
option ifname 'wlan0'
option mesh_fwding '0'
option encryption 'none'
option network 'lan'
config wifi-iface 'wlan0ap'
option device 'radio0'
option mode 'ap'
option ssid 'qMp-AP'
option network 'lan'
option encryption 'none'
option ifname 'wlan0ap'
#2 Updated by Roger Pueyo Centelles about 2 years ago
- % Done changed from 0 to 20
After this:
log "[Initial qMp system configuration]"
qmp_configure_initial
Config is OK.
After this:
log "[Full qMp system configuration]"
qmp_configure
Config is wrong.
#3 Updated by Roger Pueyo Centelles almost 2 years ago
- Status changed from Nou to Tancat
- % Done changed from 20 to 100
Aplicat en el conjunt de canvis b45499e1dc4ef962120a9f5970be99a7d19f8cef.
#4 Updated by Roger Pueyo Centelles almost 2 years ago
Fixed by the following commits:
- 507d2adbfbcaca22896c177093ad9de7b90f8bc2
- 6c5212f16880ac84359532fdebd518b26cede3e3
- b45499e1dc4ef962120a9f5970be99a7d19f8cef
Tested on a Nexx WT3020-8M
#5 Updated by Roger Pueyo Centelles almost 2 years ago
The information source for qmp_get_wifi_devices is sometimes slow to report the wireless devices information:
root@qMp-b38c:~# wifi; ubus call network.wireless status | jsonfilter -e '@.*.interfaces.*.section' | sort; echo "#########"; qmp_get_wifi_devices wlan0 wlan1 wlan1ap ######### wlan0 wlan1 wlan1ap root@qMp-b38c:~# wifi; ubus call network.wireless status | jsonfilter -e '@.*.interfaces.*.section' | sort; echo "#########"; qmp_get_wifi_devices wlan0 wlan1 wlan1ap ######### wlan1 wlan1ap #<== wlan0 missing!
while ubus seems to report it always on time. Therefore, ubus should [also] be used as the wifi devices list source in qmp_get_wifi devices. Finally, in 03cabbb736658bd501ed7e0a28694f142f2c752a .