OpenWisp on X-WRT router

94 views
Skip to first unread message

Mirza Arnaut

unread,
Jul 31, 2020, 5:25:29 AM7/31/20
to OpenWISP
I wanted to try using OpenWRT for my Xiaomi Routers, but found out, that the Mi WiFi R3 is not officially supported. But I found out, that the Chinese fork, called X-WRT has images for it, hence I used it, thinking that not much would be changed in the image.
Now I have a Redmi AC2100 which works perfectly with OpenWisp, so does the R3 for basic configurations (Timezone, Hostnam, etc.).
Since I am a lazy person, I wanted to make a 2.4 and 5 GHz network and apply it on both of them, but it fails to do so on the X-WRT router.
Has someone successfully got it working? I suppose the config differences are causing this behaviour, since the default name for wifi interfaces are not wifi_wlanX but wifinetX for example.
Thanks in advance!

Federico Capoano

unread,
Jul 31, 2020, 11:08:25 AM7/31/20
to OpenWISP
Hi Mirza,

could you please share the configuration in /etc/config/wireless and the relevant error output of logread after you run the command "wifi" or "reload_config" (the latter works only after changing the wireless configuration).

F.

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/c63b10e4-6980-4c46-907c-c2be01384d46n%40googlegroups.com.

Mirza Arnaut

unread,
Jul 31, 2020, 6:35:11 PM7/31/20
to OpenWISP
Hello Federico,

When I boot it after running firstboot the following config is present:

/etc/config/network
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd00:a5a0:8fe0::/48'
        option packet_steering '1'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option ipaddr '192.168.15.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device 'lan_eth0_1_dev'
        option name 'eth0.1'
        option macaddr '7a:11:dc:1b:1a:63'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'

config device 'wan_eth0_2_dev'
        option name 'eth0.2'
        option macaddr '78:11:dc:1b:1a:63'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 4 6t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0 6t'

config interface 'usbwan'
        option proto 'dhcp'
        option ifname 'usb0'
        option metric '800'

/etc/config/wireless
config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11a'
        option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT80'
        option disabled '0'
        option country 'CN'
        option txpower 'auto'
        option channel 'auto'

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/10180000.wmac'
        option htmode 'HT20'
        option disabled '0'
        option country 'CN'
        option txpower 'auto'
        option channel 'auto'

config wifi-iface 'wifinet0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'X-WRT_1A63'
        option encryption 'psk2'
        option skip_inactivity_poll '1'
        option wpa_group_rekey '0'
        option wpa_pair_rekey '0'
        option wpa_master_rekey '0'
        option key '88888888'

config wifi-iface 'wifinet1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'X-WRT_1A63'
        option encryption 'psk2'
        option skip_inactivity_poll '1'
        option wpa_group_rekey '0'
        option wpa_pair_rekey '0'
        option wpa_master_rekey '0'
        option key '88888888'

After installing openwisp and connecting it I get the following configs:

/etc/config/network
... (same as above)

config interface 'wlan1'
        option auto '1'
        option enabled '1'
        option ifname 'wlan1'
        option mtu '1500'
        option proto 'none'

config interface 'wlan0'
        option auto '1'
        option enabled '1'
        option ifname 'wlan0'
        option mtu '1500'
        option proto 'none'

/etc/config/wireless
... (same as above)

config wifi-iface 'wifi_wlan0'
        option device 'radio0'
        option disabled '0'
        option encryption 'psk2'
        option hidden '0'
        option ifname 'wlan0'
        option isolate '0'
        option key 'test1234'
        option macfilter 'disable'
        option mode 'ap'
        option ssid 'Narouter'
        option wds '0'
        option wmm '1'

config wifi-iface 'wifi_wlan1'
        option device 'radio1'
        option disabled '0'
        option encryption 'psk2'
        option hidden '0'
        option ifname 'wlan1'
        option isolate '0'
        option key 'test1234'
        option macfilter 'disable'
        option mode 'ap'
        option ssid 'Narouter'
        option wds '0'
        option wmm '1'

The log after running wifi is:
Sat Aug  1 00:28:05 2020 daemon.notice netifd: radio0 (12042): Command failed: Invalid argument
Sat Aug  1 00:28:05 2020 daemon.notice netifd: radio1 (12043): Command failed: Invalid argument
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.779600] br-lan: port 2(wlan0) entered disabled state
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.796972] br-lan: port 3(wlan1) entered disabled state
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.820131] device wlan0 left promiscuous mode
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.824690] br-lan: port 2(wlan0) entered disabled state
Sat Aug  1 00:28:05 2020 kern.warn kernel: [  418.830516] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=wlan0
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.847009] device wlan1 left promiscuous mode
Sat Aug  1 00:28:05 2020 kern.info kernel: [  418.851649] br-lan: port 3(wlan1) entered disabled state
Sat Aug  1 00:28:05 2020 kern.warn kernel: [  418.857420] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=wlan1
Sat Aug  1 00:28:07 2020 daemon.notice netifd: radio0 (12085): sh: acs_survey: out of range
Sat Aug  1 00:28:07 2020 daemon.notice netifd: radio0 (12085): sh: acs_survey: out of range
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.374436] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Aug  1 00:28:08 2020 kern.warn kernel: [  421.380582] warning: (zone_netdev_event:346)dev=wlan0 set zone=127 type=0
Sat Aug  1 00:28:08 2020 kern.warn kernel: [  421.387524] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan0, add ingress hook
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.475438] br-lan: port 2(wlan0) entered blocking state
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.480990] br-lan: port 2(wlan0) entered disabled state
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.486804] device wlan0 entered promiscuous mode
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: ctrl_iface exists and seems to be in use - cannot override it
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: Delete '/var/run/hostapd/wlan0' manually if it is not used anymore
Sat Aug  1 00:28:08 2020 daemon.err hostapd: Failed to setup control interface for wlan0
Sat Aug  1 00:28:08 2020 daemon.err hostapd: wlan0: Unable to setup interface.
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.518082] device wlan0 left promiscuous mode
Sat Aug  1 00:28:08 2020 kern.info kernel: [  421.522872] br-lan: port 2(wlan0) entered disabled state
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Aug  1 00:28:08 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Aug  1 00:28:08 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Aug  1 00:28:08 2020 daemon.notice netifd: radio0 (12085): Command failed: Invalid argument
Sat Aug  1 00:28:08 2020 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Sat Aug  1 00:28:10 2020 kern.info kernel: [  421.632090] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
Sat Aug  1 00:28:10 2020 kern.info kernel: [  421.640920] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
Sat Aug  1 00:28:10 2020 daemon.notice netifd: radio0 (12085): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path (/proc/exe)
Sat Aug  1 00:28:10 2020 daemon.notice netifd: radio0 (12085): Command failed: Invalid argument
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.614783] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.627667] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.649021] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= 1, phase=3f)
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.659264] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.680586] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= f, phase=3e)
Sat Aug  1 00:28:10 2020 kern.info kernel: [  423.689946] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.714003] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=1, Ph_rx=5
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.731908] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=3, Ph_rx=-7
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.749495] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Sat Aug  1 00:28:11 2020 kern.warn kernel: [  423.755627] warning: (zone_netdev_event:346)dev=wlan1 set zone=127 type=0
Sat Aug  1 00:28:11 2020 kern.warn kernel: [  423.762585] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan1, add ingress hook
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.781021] br-lan: port 2(wlan1) entered blocking state
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.786460] br-lan: port 2(wlan1) entered disabled state
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.792358] device wlan1 entered promiscuous mode
Sat Aug  1 00:28:11 2020 daemon.notice hostapd: ctrl_iface exists and seems to be in use - cannot override it
Sat Aug  1 00:28:11 2020 daemon.notice hostapd: Delete '/var/run/hostapd/wlan1' manually if it is not used anymore
Sat Aug  1 00:28:11 2020 daemon.err hostapd: Failed to setup control interface for wlan1
Sat Aug  1 00:28:11 2020 daemon.err hostapd: wlan1: Unable to setup interface.
Sat Aug  1 00:28:11 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.801095] device wlan1 left promiscuous mode
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.805878] br-lan: port 2(wlan1) entered disabled state
Sat Aug  1 00:28:11 2020 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Sat Aug  1 00:28:11 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Sat Aug  1 00:28:11 2020 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Sat Aug  1 00:28:11 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Sat Aug  1 00:28:11 2020 daemon.notice netifd: radio1 (12084): Command failed: Invalid argument
Sat Aug  1 00:28:11 2020 daemon.notice netifd: radio1 (12084): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path (/proc/exe)
Sat Aug  1 00:28:11 2020 daemon.notice netifd: radio1 (12084): Command failed: Invalid argument
Sat Aug  1 00:28:11 2020 kern.info kernel: [  423.965955] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Aug  1 00:28:11 2020 kern.warn kernel: [  423.972088] warning: (zone_netdev_event:346)dev=wlan0 set zone=127 type=0
Sat Aug  1 00:28:11 2020 kern.warn kernel: [  423.979359] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan0, add ingress hook
Sat Aug  1 00:28:11 2020 kern.info kernel: [  424.143854] br-lan: port 2(wlan0) entered blocking state
Sat Aug  1 00:28:11 2020 kern.info kernel: [  424.149363] br-lan: port 2(wlan0) entered disabled state
Sat Aug  1 00:28:11 2020 kern.info kernel: [  424.155265] device wlan0 entered promiscuous mode
Sat Aug  1 00:28:13 2020 kern.info kernel: [  424.455727] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
Sat Aug  1 00:28:13 2020 kern.info kernel: [  424.464588] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.353880] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.366676] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.388038] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= 0, phase=3e)
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.398294] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.419641] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= 0, phase=3e)
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.429035] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.453232] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=5
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.471156] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=3, Ph_rx=-7
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.487074] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Sat Aug  1 00:28:14 2020 kern.warn kernel: [  426.493204] warning: (zone_netdev_event:346)dev=wlan1 set zone=127 type=0
Sat Aug  1 00:28:14 2020 kern.warn kernel: [  426.500212] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan1, add ingress hook
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.663688] br-lan: port 3(wlan1) entered blocking state
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.669180] br-lan: port 3(wlan1) entered disabled state
Sat Aug  1 00:28:14 2020 kern.info kernel: [  426.675135] device wlan1 entered promiscuous mode

I hope I will be able to set it up, since I really like the idea behind your tool!

Best regards
M


On Friday, July 31, 2020 at 5:08:25 PM UTC+2, Federico Capoano wrote:
Hi Mirza,

could you please share the configuration in /etc/config/wireless and the relevant error output of logread after you run the command "wifi" or "reload_config" (the latter works only after changing the wireless configuration).

F.

On Fri, Jul 31, 2020 at 4:25 AM Mirza Arnaut <mirza....@gmail.com> wrote:
I wanted to try using OpenWRT for my Xiaomi Routers, but found out, that the Mi WiFi R3 is not officially supported. But I found out, that the Chinese fork, called X-WRT has images for it, hence I used it, thinking that not much would be changed in the image.
Now I have a Redmi AC2100 which works perfectly with OpenWisp, so does the R3 for basic configurations (Timezone, Hostnam, etc.).
Since I am a lazy person, I wanted to make a 2.4 and 5 GHz network and apply it on both of them, but it fails to do so on the X-WRT router.
Has someone successfully got it working? I suppose the config differences are causing this behaviour, since the default name for wifi interfaces are not wifi_wlanX but wifinetX for example.
Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Federico Capoano

unread,
Jul 31, 2020, 7:08:55 PM7/31/20
to OpenWISP
Look at this: https://github.com/openwisp/netjsonconfig/blob/master/tests/openwrt/test_wireless.py#L947-L975

See "arbitrary_id"? Add the same attribute but put wlan0 and wlan1 to the respective interface and the existing interfaces should be replaced.

Ups, seems this is not documented :(

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/b23c1464-38f4-4283-be35-b4506500061do%40googlegroups.com.

Mirza Arnaut

unread,
Jul 31, 2020, 7:09:13 PM7/31/20
to OpenWISP
Sorry,
I made a mistake in the changed /etc/config/wireless. The complete config is as follows:

config wifi-device 'radio0'
        option type
'mac80211'

        option path
'pci0000:00/0000:00:00.0/0000:01:00.0'

        option disabled
'0'
        option channel
'auto'
        option country
'DE'
        option htmode
'HT40'
        option hwmode
'11g'
        option txpower
'20'



config wifi
-device 'radio1'
        option type
'mac80211'

        option path
'platform/10180000.wmac'
        option disabled
'0'
        option channel
'auto'
        option country
'DE'
        option htmode
'VHT80'
        option hwmode
'11a'
        option txpower
'20'



config wifi
-iface 'wifinet0'
        option device
'radio0'
        option network
'lan'
        option mode
'ap'
        option ssid
'X-WRT_1A63'
        option encryption
'psk2'
        option skip_inactivity_poll
'1'
        option wpa_group_rekey
'0'
        option wpa_pair_rekey
'0'
        option wpa_master_rekey
'0'
        option key
'88888888'


config wifi
-iface 'wifinet1'
        option device
'radio1'
        option network
'lan'
        option mode
'ap'
        option ssid
'X-WRT_1A63'
        option encryption
'psk2'
        option skip_inactivity_poll
'1'
        option wpa_group_rekey
'0'
        option wpa_pair_rekey
'0'
        option wpa_master_rekey
'0'
        option key
'88888888'



config wifi
-iface 'wifi_wlan0'

Federico Capoano

unread,
Jul 31, 2020, 7:10:56 PM7/31/20
to OpenWISP
On Fri, Jul 31, 2020 at 6:08 PM Federico Capoano <federico...@gmail.com> wrote:
See "arbitrary_id"? Add the same attribute but put wlan0 and wlan1 to the respective interface and the existing interfaces should be replaced.

Sorry, I was mistaken, you should use "wifinet0" and "wifinet1".

Mirza Arnaut

unread,
Jul 31, 2020, 7:39:49 PM7/31/20
to OpenWISP
Okay, I cloned my template add the custom setting under wireless.
Now the existing config is overwritten with the new one!
But I'm still not able to get the WiFi running...

Running wifi leads to the following log entries:
[  257.774066] br-lan: port 2(wlan0) entered disabled state
[  257.787418] br-lan: port 3(wlan1) entered disabled state
[  257.805638] device wlan0 left promiscuous mode
[  257.810269] br-lan: port 2(wlan0) entered disabled state
[  257.816028] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=wlan0
[  257.837096] device wlan1 left promiscuous mode
[  257.841727] br-lan: port 3(wlan1) entered disabled state
[  257.847552] {natflow}:natflow_netdev_event(): catch NETDEV_UNREGISTER event for dev=wlan1
[  259.938533] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  259.944622] warning: (zone_netdev_event:346)dev=wlan0 set zone=127 type=0
[  259.951631] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan0, add ingress hook
[  260.025806] br-lan: port 2(wlan0) entered blocking state
[  260.031337] br-lan: port 2(wlan0) entered disabled state
[  260.037173] device wlan0 entered promiscuous mode
[  260.074672] device wlan0 left promiscuous mode
[  260.079442] br-lan: port 2(wlan0) entered disabled state
[  260.210068] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
[  260.218932] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
[  262.170478] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
[  262.183350] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[  262.204705] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= f, phase=3e)
[  262.214948] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[  262.236269] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= 0, phase=3e)
[  262.245629] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
[  262.269762] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=4
[  262.287666] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=3, Ph_rx=-7
[  262.305219] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  262.311350] warning: (zone_netdev_event:346)dev=wlan1 set zone=127 type=0
[  262.318314] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan1, add ingress hook
[  262.340749] br-lan: port 2(wlan1) entered blocking state
[  262.346329] br-lan: port 2(wlan1) entered disabled state
[  262.352147] device wlan1 entered promiscuous mode
[  262.364186] device wlan1 left promiscuous mode
[  262.368962] br-lan: port 2(wlan1) entered disabled state
[  262.517909] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  262.524028] warning: (zone_netdev_event:346)dev=wlan0 set zone=127 type=0
[  262.530964] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan0, add ingress hook
[  262.633854] br-lan: port 2(wlan0) entered blocking state
[  262.639291] br-lan: port 2(wlan0) entered disabled state
[  262.645194] device wlan0 entered promiscuous mode
[  262.968331] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration start
[  262.977168] ieee80211 phy1: rt2800_rf_self_txdc_cal: Info - RF Tx self calibration end
[  264.845365] ieee80211 phy1: rt2800_loft_iq_calibration: Info - LOFT Calibration Done!
[  264.858254] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[  264.879623] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 0, (gain= 0, phase=3e)
[  264.889874] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Start!
[  264.911227] ieee80211 phy1: rt2800_iq_search: Info - IQCalibration Done! CH = 1, (gain= f, phase= 0)
[  264.920599] ieee80211 phy1: rt2800_loft_iq_calibration: Info - TX IQ Calibration Done!
[  264.944751] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=0, Ph_rx=5
[  264.962670] ieee80211 phy1: rt2800_rxiq_calibration: Info - RXIQ G_imb=3, Ph_rx=-7
[  264.978551] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  264.984667] warning: (zone_netdev_event:346)dev=wlan1 set zone=127 type=0
[  264.991666] {natflow}:natflow_netdev_event(): catch NETDEV_UP event for dev=wlan1, add ingress hook
[  265.091744] br-lan: port 3(wlan1) entered blocking state
[  265.097260] br-lan: port 3(wlan1) entered disabled state
[  265.103215] device wlan1 entered promiscuous mode

I also noticed something on the first openwisp start, which I do not remember having in the normal OpenWRT version:
Sat Aug  1 07:35:29 2020 daemon.info openwisp: Local configuration outdated
Sat Aug  1 07:35:29 2020 daemon.info openwisp: Downloading configuration from controller...
Sat Aug  1 07:35:29 2020 daemon.info openwisp: Configuration downloaded, now applying it...
Sat Aug  1 07:35:30 2020 daemon.info openwisp: The following uci configs have been renamed: base_config.status1, dhcp.dnsmasq1, dropbear.dropbear1, firewall.defaults, firewall.zone1, firewall.zone2, firewall.forwarding1, firewall.rule1, firewall.rule2, firewall.rule3, firewall.rule4, firewall.rule5, firewall.rule6, firewall.rule7, firewall.rule8, firewall.rule9, firewall.rule10, firewall.include1, ksmbd.globals1, p910nd.p910nd1, pptpd.login1, rpcd.rpcd1, rpcd.login2, ucitrack.network1, ucitrack.wireless1, ucitrack.firewall1, ucitrack.olsr1, ucitrack.dhcp1, ucitrack.odhcpd1, ucitrack.dropbear2, ucitrack.httpd1, ucitrack.fstab1, ucitrack.qos1, ucitrack.system1, ucitrack.luci_splash1, ucitrack.ntpclient1, ucitrack.samba1, ucitrack.tinyproxy1, ucitrack.macvlan1, ucitrack.wizard1, ucitrack.xwan1, ucitrack.upnpd1, ucitrack.p910nd2, ucitrack.sqm1, ucitrack.natcapd1, upnpd.perm_rule1, upnpd.perm_rule2, xwan.xwan2, network.switch0, network.switch0_vlan1, network.switch0_vlan2, fstab.global1, system.system, ubootenv.ubootenv1
Sat Aug  1 07:35:31 2020 daemon.info openwisp: Service base_config has been reloaded via procd/ubus
Sat Aug  1 07:35:31 2020 daemon.info openwisp: Service dhcp has been reloaded via procd/ubus
Sat Aug  1 07:35:31 2020 daemon.info openwisp: Service dropbear has been reloaded via procd/ubus
Sat Aug  1 07:35:31 2020 daemon.info openwisp: Service firewall has been reloaded via procd/ubus
Sat Aug  1 07:35:32 2020 daemon.info openwisp: Service fstab has been reloaded via init.d script
Sat Aug  1 07:35:32 2020 daemon.info openwisp: Service ksmbd has been reloaded via procd/ubus
Sat Aug  1 07:35:32 2020 daemon.info openwisp: Service natcapd has been reloaded via init.d script
Sat Aug  1 07:35:32 2020 daemon.info openwisp: Service network has been reloaded via procd/ubus
Sat Aug  1 07:35:32 2020 daemon.info openwisp: Service p910nd has been reloaded via init.d script
Sat Aug  1 07:35:33 2020 daemon.info openwisp: Service pptpd has been reloaded via init.d script
Sat Aug  1 07:35:33 2020 daemon.info openwisp: Service rpcd has been reloaded via init.d script
Sat Aug  1 07:35:33 2020 daemon.info openwisp: Service system has been reloaded via procd/ubus
Sat Aug  1 07:35:34 2020 daemon.info openwisp: Service ubootenv has been reloaded via procd/ubus
Sat Aug  1 07:35:34 2020 daemon.info openwisp: Service ucitrack has been reloaded via procd/ubus
Sat Aug  1 07:35:34 2020 daemon.info openwisp: Service upnpd has been reloaded via procd/ubus
Sat Aug  1 07:35:34 2020 daemon.info openwisp: Service wireless has been reloaded via procd/ubus
Sat Aug  1 07:35:34 2020 daemon.info openwisp: Service xwan has been reloaded via init.d script



On Saturday, August 1, 2020 at 1:08:55 AM UTC+2, Federico Capoano wrote:
Look at this: https://github.com/openwisp/netjsonconfig/blob/master/tests/openwrt/test_wireless.py#L947-L975

See "arbitrary_id"? Add the same attribute but put wlan0 and wlan1 to the respective interface and the existing interfaces should be replaced.

Ups, seems this is not documented :(

Federico Capoano

unread,
Jul 31, 2020, 7:45:29 PM7/31/20
to OpenWISP
I'm not sure what you mean for not getting the wifi running, but make sure the "network" config option is present and correctly set:

config wifi-iface 'wifinet1'
    # ,,,
    option network 'lan'


It's used to bridge the wifi interface to the lan.

For the rest, I don't see failures in the log, nor the renaming of unnamed configurations should affect the configuration, therefore I think is just something missing in the resulting configuration.

To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/41d9396a-e282-4e87-819e-9cfbf7d9d692o%40googlegroups.com.

Mirza Arnaut

unread,
Jul 31, 2020, 7:51:42 PM7/31/20
to OpenWISP
I meant I am not able to discover the AP neither with my phone nor with my laptop.

My current /etc/config/wireless is:

config wifi-device 'radio0'
        option type
'mac80211'

        option path
'pci0000:00/0000:00:00.0/0000:01:00.0'

        option disabled
'0'
        option channel
'auto'
        option country
'DE'
        option htmode
'HT40'
        option hwmode
'11g'
        option txpower
'20'



config wifi
-device 'radio1'
        option type
'mac80211'

        option path
'platform/10180000.wmac'
        option disabled
'0'
        option channel
'auto'
        option country
'DE'
        option htmode
'VHT80'
        option hwmode
'11a'
        option txpower
'20'



config wifi
-iface 'wifinet0'

        option device
'radio0'
        option network
'lan'
        option mode
'ap'

        option encryption
'psk2'
        option skip_inactivity_poll
'1'
        option wpa_group_rekey
'0'
        option wpa_pair_rekey
'0'
        option wpa_master_rekey
'0'

        option disabled
'0'

        option hidden
'0'
        option ifname
'wlan0'
        option isolate
'0'
        option key
'test1234'
        option macfilter
'disable'

        option ssid
'Narouter'
        option wds
'0'
        option wmm
'1'



config wifi
-iface 'wifinet1'

        option device
'radio1'
        option network
'lan'
        option mode
'ap'

        option encryption
'psk2'
        option skip_inactivity_poll
'1'
        option wpa_group_rekey
'0'
        option wpa_pair_rekey
'0'
        option wpa_master_rekey
'0'

        option disabled
'0'

        option hidden
'0'
        option ifname
'wlan1'
        option isolate
'0'
        option key
'test1234'
        option macfilter
'disable'

        option ssid
'Narouter'
        option wds
'0'
        option wmm
'1'

I would assume that it looks alright (similar to the working one on my AC2100). I will look up whats wrong with by changing the config step by step.

On Saturday, August 1, 2020 at 1:45:29 AM UTC+2, Federico Capoano wrote:
I'm not sure what you mean for not getting the wifi running, but make sure the "network" config option is present and correctly set:

config wifi-iface 'wifinet1'
    # ,,,
    option network 'lan'


It's used to bridge the wifi interface to the lan.

For the rest, I don't see failures in the log, nor the renaming of unnamed configurations should affect the configuration, therefore I think is just something missing in the resulting configuration.

Mirza Arnaut

unread,
Jul 31, 2020, 8:10:41 PM7/31/20
to OpenWISP
Okay the fix was quite easy in the end.
I have the feeling, a lot of stuff is predefined, such as that radio0 is for 5GHz and radio1 is for 2.4GHz.
Hence just switching them in the config did indeed made the WiFi appear on my phone and laptop and works without problems.
Thank you for your help!
Reply all
Reply to author
Forward
0 new messages