Hi, I'm new here. My first question is about the router antennas with MTK chip. The original router comes with 4 antennas, 2x2, perfect. Now I need to cut out some antennas. My app no need all 4 antennas.
From HW point view: 2x2, that is 2main+2aux. If 3 antennas used, cut 1aux. If 2 antennas only, keep 2main / cut 2aux.
My question is How to config / modify source code for above new situations, even only 1 antenna the minimum case.
Thanks.
Hi all, I can not find any answer in google.
It's really no need to care about the software, just cut out the antenna?
http://vonger.cn/?p=14995
opened 09:25PM - 15 Jul 20 UTC
closed 01:59PM - 25 Aug 20 UTC
It's very likely I'm not asking in the right place, but I found no better; pleas… e redirect as needed.
I am trying to "upgrade" a system based on VoCore2 (which comes with an ancient OpenWRT version and an archaic version of the proprietary driver (mt_wifi.ko).
I do not need full OpenWRT as WiFi is used just for Internet connection (station mode).
I have a fully "modern" system (Buildroot build with up-to-date U-Boot and stock Linux kernel v5.7).
This works as expected but for WiFi connection which seems to have extremely low sensitivity (I see A.P. only if it is at arm length) and with frequent disconnections.
I also tried to build this driver with my kernel (as it seems aggressively maintained), but compilation bombed:
```
/home/mcon/vocore/__V2__/Buildroot-2/recov/build/mt76-master/./agg-rx.c: In function ‘mt76_rx_aggr_stop’:
/home/mcon/vocore/__V2__/Buildroot-2/recov/build/mt76-master/./agg-rx.c:293:2: error: implicit declaration of function ‘rcu_swap_protected’; did you mean ‘mem_cgroup_protected’? [-Werror=implicit-function-declaration]
rcu_swap_protected(wcid->aggr[tidno], tid,
^~~~~~~~~~~~~~~~~~
mem_cgroup_protected
/home/mcon/vocore/__V2__/Buildroot-2/recov/build/mt76-master/./agg-rx.c:294:7: error: implicit declaration of function ‘lockdep_is_held’; did you mean ‘lockdep_rtnl_is_held’? [-Werror=implicit-function-declaration]
lockdep_is_held(&dev->mutex));
^~~~~~~~~~~~~~~
lockdep_rtnl_is_held
```
... so I'm not sure this driver is really compatible with stock kernel (Linus tree).
I'm fully prepared to give all details, but please confirm this is the right place to ask.
I saw several threads reporting essentially the same problem I have and that's why I ventured asking.
Many Thanks in Advance.
opened 07:38AM - 25 Jun 20 UTC
closed 12:21AM - 03 Nov 20 UTC
Hi,
I did an experiment on a MT7628 router which has two antennas. The steps a… re
1.Burn an OpenWrt firmware into the MT7628 router.
2. Start the OpenWrt then turn on the radio of the MT7628 router by the OpenWrt terminal.
3. Disconnet one of the physical antenna connections, just reserve one physical antenna connection.
4. Keep a certain distance between the WLAN card and the MT7628 router antenna, test and record the RSSI which is sent from the MT7628 router by the WLAN card.
5. Reconnect the previously disconnected antenna, disconnect the previously connected antenna. Repeat step 4.
6. Disconnec t all antennas, Repeat step 4.
7.Restore original router firmware, Repeat step from 3 to 6.
The result is:
When use OpenWrt firmware and just connect "antenna 0", the RSSI will be good, the RSSI is -25dbm.
When just connect the "antenna 1" is -75dbm, and when disconnect all antennas, the RSSI is -75dbm too.
When use the original router firmware , just connect the "antenna 1" or "antenna 0", the RSSI is -25dbm.
This means when use OpenWrt, whether connect the "antenna 1" or not, make no difference to siginal, as the "antenna 1" not work, but when use original router firmware, the "antenna 1" work. I think here is an issue in this mt76 driver, that result in the "antenna 1" in off state.
I had tried OpenWrt firmware release “17.01.x”, "18.06.x", "19.07.x" , target profile is "HiWiFi HC5861B" by HiWiFi HC5861B router and some other MT7628 routers. The test results are the same.
This issue may be hard to discover, because the MT7628 routers usually always have two antenna connections, and in most case, here is no big difference between just one antenna work and two antennas work. When some people burn the OpenWrt firmware into their MT7628 routers, and their wireless terminal devices have a good RSSI, they might think both antennas are working.
Here is my wireless configuration
```
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/10300000.wmac'
option htmode 'HT20'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
```
Here is some debug messages
```
[ 10.378544] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[ 10.386304] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[ 10.412027] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.437855] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 10.568603] xt_time: kernel timezone is -0000
[ 10.772717] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 10.873431] urngd: v1.0.2 started.
[ 11.076609] random: crng init done
[ 11.080101] random: 6 urandom warning(s) missed due to ratelimiting
[ 11.811475] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 11.817498] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 11.859424] mt76_wmac 10300000.wmac: firmware init done
[ 12.147870] PPP generic driver version 2.4.2
[ 12.160473] NET: Registered protocol family 24
```
```
root@OpenWrt:/# wifi
root@OpenWrt:/# [ 115.791994] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 115.803450] br-lan: port 2(wlan0) entered blocking state
[ 115.808854] br-lan: port 2(wlan0) entered disabled state
[ 115.814737] device wlan0 entered promiscuous mode
[ 115.832208] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 115.838890] br-lan: port 2(wlan0) entered blocking state
[ 115.844356] br-lan: port 2(wlan0) entered forwarding state
[ 125.991158] device wlan0 left promiscuous mode
[ 125.995811] br-lan: port 2(wlan0) entered disabled state
[ 126.606147] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 126.635667] br-lan: port 2(wlan0) entered blocking state
[ 126.641150] br-lan: port 2(wlan0) entered disabled state
[ 126.646930] device wlan0 entered promiscuous mode
[ 126.651888] br-lan: port 2(wlan0) entered blocking state
[ 126.657281] br-lan: port 2(wlan0) entered forwarding state
[ 126.716902] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
```
I'll try to test it.