Xiaomi WiFi Router 3G

Hi all,

i'am currently testing latest version from Feb 9th (https://downloads.lede-project.org/snapshots/targets/ramips/mt7621/)

I have 3 different 2.4G and 2 different 5G Networks defined.
There are also 3 Interfaces defined, behind one of this Interfaces are all my IoT stuff (~20 Devices).
One Interface is for my DSL Connect and one for the rest (~10 devices).

Overall WiFi Perfomance is not really good and stable, some of the IoT devices based on ESP8266 chips are having trouble while connecting.

IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

iPhone Disconnect more often:
IEEE 802.11: disassociated
IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

I have set option disassoc_low_ack '0' in /etc/config/wireless but no luck.

Are there any Images for testing or is there somthing i can do to make this System more Stable.

Regards

LuFi

Problems with 2.4 GHz solved with latest commit, thanks @nbd

I'm using 2.4 Ghz and 5 Ghz without any problems on Kernel 4.9.
Snapshot r5682-b153dbf046

root@mir3g:~# uptime
17:51:10 up 28 days, 16:53, load average: 0.12, 0.06, 0.01

root@mir3g:~# uname -a
Linux mir3g 4.9.73 #0 SMP Thu Jan 4 12:44:42 2018 mips GNU/Linux

this ?

@Cryptage Thanks, so the cause of random reboots is other.
@lfiebach Yes

thx, i will test Tomorrow, i don't think that this patch is included in todays build.

ok, short question to the specialists here.
Currently i'am switching between Prometheus and OpenWrt.
This is caused by some problems in OpenWrt and Performance testing.

Prometheus uses a different layout.

dev:    size   erasesize  name
mtd0: 00080000 00020000 "Bootloader"
mtd1: 00080000 00020000 "BootEnv"
mtd2: 00500000 00020000 "Factory"
mtd3: 00140000 00020000 "Kernel"
mtd4: 012c0000 00020000 "RootFS"
mtd5: 00100000 00020000 "Config"
mtd6: 00400000 00020000 "Storage"
mtd7: 06080000 00020000 "RWFS"
mtd8: 01400000 00020000 "Firmware_Stub"

And to switch between this Systems i always install Stock OS, enable SSH and install OpenWrt / Prometheus.

Is it possible to directly switch between this two Systems ?
Is it possible to install OpenWrt and overwrite Prometheus ?

Currently i compile a fresh OpenWrt Version for testing .....

thx

LuFi

If you want do tests there are also these driver but you must use 4.4.112 kernel (info)

i was only switching from LEDE (4.9.77) to Padavan project (using prometheus) cause i have had problems with PPTP VPN that one of the companies using... on Padavan was working as expected:) but i do not like to loose so worked on LEDE with 4.4.0.112 kernel and working like a charm:) but was switching like you from Padavan to stock and then to LEDE, found this guide but didn`t checked it...

  1. on lnx system:
    cp lede-ramips-mt7621-mir3g-initramfs-kernel.bin firmware.bin && truncate --size 4194304 firmware.bin && cat lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin >> firmware.bin

  2. then in padavan thru SSH:
    /home/root # cat /proc/mtd
    dev: size erasesize name
    mtd0: 00080000 00020000 "Bootloader"
    mtd1: 00080000 00020000 "BootEnv"
    mtd2: 00500000 00020000 "Factory"
    mtd3: 00160000 00020000 "Kernel"
    mtd4: 012a0000 00020000 "RootFS"
    mtd5: 00100000 00020000 "Config"
    mtd6: 00400000 00020000 "Storage"
    mtd7: 06080000 00020000 "RWFS"
    mtd8: 01400000 00020000 "Firmware_Stub"

send firmware.bin to /tmp

/tmp # mtd_write write /tmp/firmware.bin Firmware_Stub
Unlocking 'Firmware_Stub' ...
Writing from '/tmp/firmware.bin' to MTD 'Firmware_Stub' ... [ok]

Let me know if that works for you:) i will try this maybe later on :slight_smile:
cheers Michal

ok now testing on my own fresh build from Today.

image

@craz
Same as before. I can connect my PC but iPhone can't connect to 2.4Ghz.
But now iPhone says invalid Password ....

Sat Feb 10 13:16:31 2018 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 28:ed:xx:xx:xx:xx 
Sat Feb 10 13:16:31 2018 daemon.info hostapd: wlan1: STA 28:ed:xx:xx:xx:xx  IEEE 802.11: disassociated
Sat Feb 10 13:16:31 2018 daemon.notice hostapd: wlan0: STA 28:ed:xx:xx:xx:xx IEEE 802.11: did not acknowledge authentication response
Sat Feb 10 13:16:32 2018 daemon.info hostapd: wlan1: STA 28:ed:xx:xx:xx:xx  IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Sat Feb 10 13:16:37 2018 daemon.info hostapd: wlan0: STA 28:ed:xx:xx:xx:xx  IEEE 802.11: disassociated
Sat Feb 10 13:16:38 2018 daemon.info hostapd: wlan0: STA 28:ed:xx:xx:xx:xx  IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

5Ghz is working. But why on some Channels the raido1 is offline.

P.S: Cloned from here: https://github.com/lede-project/source

Regards

LuFi

Hi,
Am I the only one to have disconnection of - I Presume - The WAN port for my Xiaomi R3G ? EveryTime there is a load on the traffic, let's say make a connection test, or a download, the mac80211 stack seems to cut :

[2415.916011] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2430.027404] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2477.929967] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2492.015043] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2599.047168] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2613.257734] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2697.567408] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2711.644604] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2737.068506] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2751.208438] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2908.023263] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 2922.447304] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 2984.634657] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3000.440428] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3180.605300] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3194.716515] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3448.441675] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3462.757870] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3490.227638] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3504.473391] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3677.484253] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3691.638026] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3856.388203] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3870.507382] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 3964.302648] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 3978.775016] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 4143.931073] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 4158.081617] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[ 4380.447570] mtk_soc_eth 1e100000.ethernet eth0: port 1 link down
[ 4394.751597] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up

I tried many things, build an image without ipv6 support, or removing many thing, get intermediate commits, but nothing is changing. I'm fed up with this :confused: If you have any clue.

I have 2 wifi network, simple configuration.

ok, iPhone is able to connect after 1/2 hour later.

IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

persists.

@craz
does the Nossiac driver work for you ?

ok, i removed all mt76 stuff in menuconfig and enabled all MTK options.

if i change somthing and press Save & Apply system freezes.

if i load mt7612 i got:

Sat Feb 10 16:00:07 2018 daemon.err uhttpd[949]: luci: accepted login on / for root from 192.168.178.85
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.792900] register rt2860
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.803069]
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.803069]
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.803069] === pAd = c0781000, size = 2104664 ===
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.803069]
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.812854] <-- RTMPAllocTxRxRingMemory, Status=0
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.818349] <-- RTMPAllocAdapterBlock, Status=0
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.822903] pAd->CSRBaseAddress =0xc0680000, csr_addr=0xc0680000!
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.829111] device_id =0x7662
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.832133] ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x20a
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.841896] chip_id1=, chip_id2=, pAd->MACVersion=0x76623000
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.847537] chip_id1=0x0, chip_id2=0x0, pAd->MACVersion=0x76623000
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.853714] RtmpChipOpsEepromHook::e2p_type=0, inf_Type=5
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.859287] RtmpEepromGetDefault::e2p_dafault=1
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.863894] NVM is EFUSE mode
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.866881] get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.879972] build time =
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.882644] 20141115060606a
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.885485] rom patch for E3 IC
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.888625]
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.890176] platform =
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.892904] ALPS
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.894931] hw/sw version =
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.897830] ��
Sat Feb 10 16:01:09 2018 kern.warn kernel: [  723.899817] patch version =

Now i will reset all settings and start again.

LuFi

You are absolutely right! Thank you

Or try directly:
https://d.miwifi.com/rom/ssh/download?sn=XXXXX%2FXXXXXXXX&userId=YYYYYYYYYY

replace before XXXXX and XXXXXXXX by your router serial number (found on your router web User interface) (Format XXXXX/XXXXXXXX)
YYYYYYYYYY by your Mi account id (found on account.xiaomi.com)

edit: use before the below address in order to get the root password.
https://d.miwifi.com/rom/ssh?userId=YYYYYYYYYY

;-D

Extrem helpfull .....

Means i compile and Test new versions ......

I've flashed todays build and no luck :frowning:
Still getting AP-STA-DISCONNECTED after 10 minutes of usage.

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
        option country 'RU'
        option legacy_rates '1'
        option channel '13'
        option htmode 'HT40'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid ''
        option encryption 'psk2'
        option key ''
        option disassoc_low_ack '0'

Did you try with "option powersave '0'" ?

No, its too late. Im on Padavan now and it looks more stable than LEDE. Ill make some tests this week with 10+ clients.

1 Like

i will test it

config wifi-device 'radio0'
    	option type 'mac80211'
    	option hwmode '11g'
    	option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
    	option htmode 'HT20'
    	option country 'DE'
    	option legacy_rates '0'
    	option channel '12'
    	option log_level '2'
    	option disassoc_low_ack '0'
    	option noscan '1'
    	option powersave '0'

You have it wrong, disassoc_low_ack has to be in 'wifi-iface' section.