Adding support for Comfast CF-WR758AC(AKA Joowin JW-WR758AC)

Glad it worked for you :slight_smile:

Do you have V1 or V2 version of the device?

@elmismo I speak Portuguese and English. I can understand basic Spanish as any Portuguese does, but don't speak it very well.

If you have V2 version, I'm curious to see if this build works... specially the 5GHz wifi, since it was mentioned here that it would have a different chipset (I only have V1 and it's been working great so far). Because if this works for both versions I can submit a pull request and see of they make this official.

I have v1.

Looks like I'll need some time to learn how to properly configure openwrt :slight_smile:

I'm experiencing issues with connectivity. I've configured this device as an AP and have connected to LAN port on existing home router.

Setup:

ISP -- routerA (192.168.7.1) - [LAN Port - 192.168.7.0/24] -- (192.168.7.70) AP (192.168.1.1)-- wlan (192.168.1.0/24 -- client pc (192.168.1.x)

After random time, the AP stops passing traffic to WAN. From client pc I am able to ping 192.168.7.70 but not 192.168.7.1

Also noticed these messages in syslog.

Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.314579] ------------[ cut here ]------------
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.323824] WARNING: CPU: 0 PID: 669 at backports-5.10.42-1/net/mac80211/airtime.c:457 0x83556180 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.346244] Modules linked in: pppoe ppp_async iptable_nat xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat nf_flow_table_hw nf_flow_table nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables crc_ccitt compat nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 leds_gpio gpio_button_hotplug
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.453437] CPU: 0 PID: 669 Comm: mt76-tx phy1 Not tainted 5.4.143 #0
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.466242] Stack : 00000000 8005ab38 805d0000 80565780 00000000 00000000 00000000 00000000
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.482868]         00000000 00000000 00000000 00000000 00000000 00000001 8379bc60 2171a291
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.499442]         8379bcf8 00000000 00000000 00000000 00000038 804f1304 65746e69 2e352064
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.516000]         00000000 00000338 00000000 0006eb3d 00000000 8379bc40 00000000 83556180
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.532555]         00000009 00000014 00000004 00000002 00000000 802b9154 00000000 80700000
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.549170]         ...
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.554037] Call Trace:
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.554051] [<8005ab38>] 0x8005ab38
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.565794] [<805d0000>] 0x805d0000
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.572820] [<804f1304>] 0x804f1304
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.579768] [<83556180>] 0x83556180 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.591502] [<802b9154>] 0x802b9154
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.598424] [<80009790>] 0x80009790
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.605335] [<80009798>] 0x80009798
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.612247] [<800236d0>] 0x800236d0
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.619171] [<83556180>] 0x83556180 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.630900] [<80023778>] 0x80023778
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.637836] [<83556180>] 0x83556180 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.649664] [<835036a0>] 0x835036a0 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.661431] [<83556368>] 0x83556368 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.673163] [<8033cbbc>] 0x8033cbbc
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.680169] [<83556448>] 0x83556448 [mac80211@99d79169+0x7c8d0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.691939] [<8033d644>] 0x8033d644
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.698883] [<83472a24>] 0x83472a24 [mt76x02_lib@2456de0e+0x9cc0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.710964] [<8348048c>] 0x8348048c [mt76@3f083819+0x9440]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.721839] [<834865ac>] 0x834865ac [mt76@3f083819+0x9440]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.732706] [<8004b2dc>] 0x8004b2dc
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.739660] [<8348048c>] 0x8348048c [mt76@3f083819+0x9440]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.750607] [<83474fe4>] 0x83474fe4 [mt76x02_lib@2456de0e+0x9cc0]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.762713] [<8348048c>] 0x8348048c [mt76@3f083819+0x9440]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.773600] [<83480520>] 0x83480520 [mt76@3f083819+0x9440]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.784551] [<804f2988>] 0x804f2988
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.791501] [<8003fdbc>] 0x8003fdbc
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.798419] [<8003fc84>] 0x8003fc84
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.805340] [<8003fc84>] 0x8003fc84
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.812258] [<800050b8>] 0x800050b8
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.819178]
Tue Oct 12 20:47:47 2021 kern.warn kernel: [16575.822129] ---[ end trace bc5c27c4e7bfae24 ]---

Hmm... not looking good.

I'm not having issues with this device, but I looked at the logs of my other OpenWRT routers and found the same messages on my xiaomi 4a gigabit router, also for phy1 (which should be the 5GHz radio). That router has the latest stable official build so it's not specific to this device and must be some mt76 WiFi driver issue.

I've seen some commits fixing possible loops on the mt76 master code, but until we get the next stable release of OpenWRT we won't be lucky, so please try the following to see if it mitigates the issue:

  1. ssh into the router (using putty or whatever ssh client you have at hand), with user root and your router password
  2. Enter the following command:
echo 0 > /sys/kernel/debug/ieee80211/phy1/airtime_flags

This will revert if you reboot the router. To make it persistent edit /etc/rc.local (can you use the vi editor?) and add it there before the exit 0 line. However, for now, I'd say to leave it only in memory to see if it gets more stable, before making it persistent on boot. Alternatively, try turning off the 5 GHz radio for a while just to see if you also experience the issue with the 2.4 GHz radio as well.

Thank you for the Support.
I have a
Model Joowin WR758AC
Architecture MediaTek MT7628AN ver:1 eco:2
Firmware Version OpenWrt 21.02.0 r16279-5cc0535800 / LuCI openwrt-21.02 branch git-21.295.67054-13df80d
Kernel Version 5.4.143

At the Wireless Overview shows:
MediaTek MT76x8 802.11bgn

why does it not supported the Β΄5.0 Gigahertz network?

Mit freundlichen Grüßen
Kind regards

derAuge

Hi. Most likely you have the V2 version. Can you check on the label in the back of the device?


In OpenWRT we see:
Architecture MediaTek MT7628AN ver:1 eco:2

Strange.

Please do the following:

  1. ssh into the device as root user
  2. Run the following:
opkg update
opkg install pciutils

If you have connectivity errors, please ensure you have configured your network settings correctly on the LAN interface (default gateway, DNS servers, and so on)

  1. Having installed pcutils successfully, please run the following commands and paste the output here:
lspci -v
lsmod
ip link
ifconfig -a
iw list

(if you prefer, can attach it in a text file or something, or put it in pastbin, so that it won't clutter the thread too much)

Best regards.

@derAuge Besides those commands, please also attach output from the command:

lspci -vn

Thanks.

BusyBox v1.33.1 (2021-08-31 22:20:08 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 21.02.0, r16279-5cc0535800
 -----------------------------------------------------
root@WJoyOpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# opkg install pciutils
Installing pciutils (3.7.0-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/pciutils_3.7.0-2_mipsel_24kc.ipk
Installing zlib (1.2.11-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/zlib_1.2.11-3_mipsel_24kc.ipk
Installing libkmod (27-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/libkmod_27-2_mipsel_24kc.ipk
Installing libpci (3.7.0-2) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/libpci_3.7.0-2_mipsel_24kc.ipk
Installing pciids (0.350-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/pciids_0.350-1_mipsel_24kc.ipk
Configuring libpci.
Configuring pciids.
Configuring zlib.
Configuring libkmod.
Configuring pciutils.
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# lspci -v
00:00.0 PCI bridge: MEDIATEK Corp. Device 0801 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@10140000/pcie@0,0
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 20200000 (32-bit, non-prefetchable) [size=64K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: 20000000-201fffff [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
lspci: Unable to load libkmod resources: error -12

01:00.0 Unclassified device [0002]: MEDIATEK Corp. Device 7663 (prog-if 80)
        Subsystem: MEDIATEK Corp. Device 7663
        Device tree node: /sys/firmware/devicetree/base/pcie@10140000/pcie@0,0/mt76@0,0
        Flags: fast devsel
        Memory at 20000000 (64-bit, prefetchable) [disabled] [size=1M]
        Memory at 20100000 (64-bit, prefetchable) [disabled] [size=16K]
        Memory at 20104000 (64-bit, prefetchable) [disabled] [size=4K]
        Capabilities: [80] Express Endpoint, MSI 1f
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting

root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# lspci -vn
00:00.0 0604: 14c3:0801 (rev 01) (prog-if 00 [Normal decode])
        Device tree node: /sys/firmware/devicetree/base/pcie@10140000/pcie@0,0
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 20200000 (32-bit, non-prefetchable) [size=64K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: [disabled]
        Prefetchable memory behind bridge: 20000000-201fffff [size=2M]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
lspci: Unable to load libkmod resources: error -12

01:00.0 0002: 14c3:7663 (prog-if 80)
        Subsystem: 14c3:7663
        Device tree node: /sys/firmware/devicetree/base/pcie@10140000/pcie@0,0/mt76@0,0
        Flags: fast devsel
        Memory at 20000000 (64-bit, prefetchable) [disabled] [size=1M]
        Memory at 20100000 (64-bit, prefetchable) [disabled] [size=16K]
        Memory at 20104000 (64-bit, prefetchable) [disabled] [size=4K]
        Capabilities: [80] Express Endpoint, MSI 1f
        Capabilities: [e0] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [f8] Power Management version 3
        Capabilities: [100] Vendor Specific Information: ID=1556 Rev=1 Len=008 <?>
        Capabilities: [110] L1 PM Substates
        Capabilities: [200] Advanced Error Reporting

root@WJoyOpenWrt:~# lsmod
cfg80211              275152  4 mt76x02_lib,mt7603e,mt76,mac80211
compat                  1088  2 mac80211,cfg80211
crc_ccitt               1664  1 ppp_async
gpio_button_hotplug     6976  0
ip_tables              10784  4 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10624 24 ip6table_mangle,ip6table_filter
ip6t_REJECT             1216  2
ip6table_filter          896  1
ip6table_mangle         1312  1
ipt_REJECT              1152  2
iptable_filter           864  1
iptable_mangle          1024  1
iptable_nat             1056  1
leds_gpio               2976  0
mac80211              510160  4 mt76x2e,mt76x02_lib,mt7603e,mt76
mt76                   37952  4 mt76x2e,mt76x2_common,mt76x02_lib,mt7603e
mt7603e                38016  0
mt76x02_lib            40128  2 mt76x2e,mt76x2_common
mt76x2_common          11392  1 mt76x2e
mt76x2e                10112  0
nf_conntrack           69136  8 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_CT,nf_nat,nf_flow_table
nf_defrag_ipv4          1184  1 nf_conntrack
nf_defrag_ipv6          5328  1 nf_conntrack
nf_flow_table          14896  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2240  1
nf_log_common           2944  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3584  0
nf_log_ipv6             4288  0
nf_nat                 21744  4 iptable_nat,xt_nat,xt_REDIRECT,xt_MASQUERADE
nf_reject_ipv4          2240  1 ipt_REJECT
nf_reject_ipv6          2656  1 ip6t_REJECT
ppp_async               7072  0
ppp_generic            24080  3 pppoe,ppp_async,pppox
pppoe                   8640  0
pppox                   1264  1 pppoe
slhc                    5248  1 ppp_generic
x_tables               15248 24 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_FLOWOFFLOAD,xt_CT,ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_CT                   2848  0
xt_FLOWOFFLOAD          3200  0
xt_LOG                   736  0
xt_MASQUERADE            800  1
xt_REDIRECT              672  0
xt_TCPMSS               3136  4
xt_comment               480127
xt_conntrack            2400 14
xt_limit                1312 20
xt_mac                   608  0
xt_mark                  640  0
xt_multiport            1280  0
xt_nat                  2400  0
xt_state                 800  0
xt_tcpudp               1792 12
xt_time                 1888  0
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 1000
    link/ether e0:e1:a9:2c:8c:b1 brd ff:ff:ff:ff:ff:ff
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether e0:e1:a9:2c:8c:b1 brd ff:ff:ff:ff:ff:ff
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether e0:e1:a9:2c:8c:b1 brd ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether e0:e1:a9:2c:8c:b3 brd ff:ff:ff:ff:ff:ff
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr E0:E1:A9:2C:8C:B1
          inet addr:192.168.28.111  Bcast:192.168.28.255  Mask:255.255.255.0
          inet6 addr: fe80::e2e1:a9ff:fe2c:8cb1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1873942 errors:0 dropped:463919 overruns:0 frame:0
          TX packets:3251388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:168776765 (160.9 MiB)  TX bytes:4467775796 (4.1 GiB)

eth0      Link encap:Ethernet  HWaddr E0:E1:A9:2C:8C:B1
          inet6 addr: fe80::e2e1:a9ff:fe2c:8cb1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1875690 errors:0 dropped:74 overruns:0 frame:0
          TX packets:3283725 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:202661880 (193.2 MiB)  TX bytes:187692356 (178.9 MiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr E0:E1:A9:2C:8C:B1
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1874567 errors:0 dropped:624 overruns:0 frame:0
          TX packets:3283704 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:168844627 (161.0 MiB)  TX bytes:4469520860 (4.1 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:6768 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6768 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:624529 (609.8 KiB)  TX bytes:624529 (609.8 KiB)

wlan0     Link encap:Ethernet  HWaddr E0:E1:A9:2C:8C:B3
          inet addr:192.168.8.111  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fe80::e2e1:a9ff:fe2c:8cb3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3165488 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1112785 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4392965576 (4.0 GiB)  TX bytes:119300925 (113.7 MiB)

root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# iw list
Wiphy phy0
        wiphy index: 0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x1fe
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-15
                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) (no IR)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
        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
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
                * [ AQL ]: Airtime Queue Limits (AQL)
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ DEL_IBSS_STA ]: deletion of IBSS station support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#

As I suspected, you have V2 of the device since your 5GHz chip has the 14c3:7663 ID (mine has 14c3:7662). If we can make sure installing the following packages/drivers works fine on your device, then I can add a variant (and build a different image with those packages, and without unnecessary ones, for each variant) before submitting my patch to OpenWRT.

For now please try the following, it should install the appropriate packages on your device. If it works, I'll build later a proper image for V2:

opkg update
opkg install kmod-mt7615e kmod-mt7663-firmware-ap

and reboot.

(note: there is also another package kmod-mt7663-firmware-sta but what I've seen is that one is not necessary, and can even interfere with AP mode; please try it only with the ones I've said above, because if it works OK then I'll start working on V2 image build as soon as I have time)

Best regards.

:star_struck:

It works :clap:

MediaTek MT76x8 802.11bgn
MediaTek MT7613BE 802.11nac

Thank you

root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~# opkg install kmod-mt7615e kmod-mt7663-firmware-ap
Installing kmod-mt7615e (5.4.143+2021-06-06-22b69033-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/kmod-mt7615e_5.4.143%2b2021-06-06-22b69033-4_mipsel_24kc.ipk
Installing kmod-mt76-connac (5.4.143+2021-06-06-22b69033-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/kmod-mt76-connac_5.4.143%2b2021-06-06-22b69033-4_mipsel_24kc.ipk
Installing kmod-hwmon-core (5.4.143-1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/kmod-hwmon-core_5.4.143-1_mipsel_24kc.ipk
Installing kmod-mt7615-common (5.4.143+2021-06-06-22b69033-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/kmod-mt7615-common_5.4.143%2b2021-06-06-22b69033-4_mipsel_24kc.ipk
Installing kmod-mt7663-firmware-ap (5.4.143+2021-06-06-22b69033-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt76x8/packages/kmod-mt7663-firmware-ap_5.4.143%2b2021-06-06-22b69033-4_mipsel_24kc.ipk
Configuring kmod-mt76-connac.
Configuring kmod-hwmon-core.
Configuring kmod-mt7615-common.
Configuring kmod-mt7615e.
Configuring kmod-mt7663-firmware-ap.
root@WJoyOpenWrt:~#
root@WJoyOpenWrt:~#

Wonderful :slight_smile:
I'm a bit busy for now but as soon as I can I'll add a variant so that people with the V2 can install a image with only the modules they need, and get more free space for other packages and other stuff they want.

2 Likes

Hi. Can you tell me the config file with the options for the mt7663 chipset (v2)?
I want to compile my own version for learning.
Thank you.

Hi. It's on the google drive, it's the config.buildinfo file. Just rename it .config and place it on your openwrt source directory.

But that config not included the options for the 7663 chipset, or yes? I've used it to compile and the firmware not find the 5ghz networks. Sorry for my bad english.
Thanks.

Hi. No, that build and config are for V1 only. You can make menuconfig and adapt.

However openwrt 21.02.1 is out. As soon as I have time I'll rework my patch to include the V2 variant and build updated images for both variants. Stay tuned.

A segunda, 1/11/2021, 21:22, yo via OpenWrt Forum <mail@forum.openwrt.org> escreveu:

Ok. I've change the options in menuconfig and finally my build it's ok. i disabled the " kmod-mt76x2"
option and enabled "kmod-mt7615e" and "kmod-mt7663-firmware-ap".
Thank you. I stay tuned.

2 Likes

@elmismo so you have V2 right? can you just run a ifconfig -a and verify if the MAC address on OpenWRT (for the ethernet and both wlan interfaces) is the same as in stock firmware? (It's correct for V1, but I don't know if they changed the offset on the factory partition for it on V2, I just want to ensure it's OK as it is on the upcoming patch)

Also, can you test the leds to see if they are working on V2? (again, they work on V1, I tested all GPIOs to find them on my V1 devices, and would like to ensure they are the same on V2)

Thanks.