If I change /etc/config/network like this:
...
config interface 'ext_chan1'
option type 'bridge'
option proto 'dhcp'
option ifname 'apcli0'
then all works as expected.
If I change /etc/config/network like this:
...
config interface 'ext_chan1'
option type 'bridge'
option proto 'dhcp'
option ifname 'apcli0'
then all works as expected.
Hello. In the new wifi-warp-core driver, the client mode is broken. At the same time, an AP mode is works without censures.
/etc/config/wireless
config wifi-device 'radio0'
option type 'ralink'
option variant 'mt7628'
option country 'RU'
option hwmode '11n'
option htmode 'HT20'
option channel 'auto'
option disabled '0'
option op_mode 'preference'
option device_mode 'apsta'
config wifi-iface 'ap'
option device 'radio0'
option mode 'ap'
option network 'wlan'
option ifname 'ra0'
option encryption 'psk2'
option key '1234004321'
option disabled '1'
option ssid 'Omega-0000'
config wifi-iface 'sta'
option device 'radio0'
option mode 'sta'
option ifname 'apcli0'
option network 'ext_chan1'
option disabled '0'
option encryption 'psk2'
option key '1234004321'
option ssid 'megazoidr1'
config wifi-config
option key '1234004321'
option ssid 'megazoidr1'
option encryption 'psk2'
/etc/config/network
...
config interface 'ext_chan1'
option proto 'dhcp'
option ifname 'apcli0'
We have a loop:
Thu Jul 26 01:07:26 2018 kern.info ap_client: network 0: 11 megazoidr1 e4:95:6e:41:d0:a5 WPA1PSKWPA2PSK (AES) -56
Thu Jul 26 01:07:26 2018 kern.info ap_client: network 1: 3 adron_home 00:0c:42:51:be:0b WPA1PSKWPA2PSK (TKIPAES)6
Thu Jul 26 01:07:26 2018 kern.info ap_client: network 2: 3 ESP_3CE55F 5e:cf:7f:3c:e5:5f NONE () -72
Thu Jul 26 01:07:26 2018 kern.info ap_client: network 3: 10 mam-tom 64:d1:54:24:99:2f WPA1PSKWPA2PSK (TKIPAES) -1
Thu Jul 26 01:07:27 2018 daemon.notice netifd: Network device 'apcli0' link is down
Thu Jul 26 01:07:27 2018 daemon.notice netifd: Interface 'ext_chan1' has link connectivity loss
Thu Jul 26 01:07:27 2018 daemon.notice netifd: ext_chan1 (1706): udhcpc: read error: Network is down, reopening st
Thu Jul 26 01:07:27 2018 kern.info ap_client: Found configured network, trying to associate (essid: megazoidr1, b)
Thu Jul 26 01:07:27 2018 daemon.notice netifd: ext_chan1 (1706): udhcpc: sending discover
Thu Jul 26 01:07:27 2018 daemon.notice netifd: ext_chan1 (1706): udhcpc: sendto: Network is down
Thu Jul 26 01:07:27 2018 daemon.notice netifd: ext_chan1 (1706): udhcpc: received SIGTERM
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014]
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014] _ _____ ___ ___ _________ ___ ____
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014] | | /| / / _ | / _ / _ \ / / __ / _ / / V1.0
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014] | |/ |/ / __ |/ , _/ / / // // / , _/ _/
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014] |/|// |//|// _/_//|/__/
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014] Onion Enhanced MT7688 WiFi Driver
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.468014]
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.542996] DMA Scheduler Mode=0(LMAC)
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.546875] efuse_probe: efuse = 10000012
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.550994] 1. Phy Mode = 14
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.719550] 2. Phy Mode = 14
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.722525] 3. Phy Mode = 14
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.725984] WTBL Segment 1 info:
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.729353] MemBaseAddr/FID:0x28000/0
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.733240] EntrySize/Cnt:32/128
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.736737] WTBL Segment 2 info:
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.740099] MemBaseAddr/FID:0x40000/0
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.743985] EntrySize/Cnt:64/128
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.747447] WTBL Segment 3 info:
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.750821] MemBaseAddr/FID:0x42000/64
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.754794] EntrySize/Cnt:64/128
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.758253] WTBL Segment 4 info:
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.761614] MemBaseAddr/FID:0x44000/128
Thu Jul 26 01:07:28 2018 kern.warn kernel: [ 933.765691] EntrySize/Cnt:32/128
Thu Jul 26 01:07:33 2018 daemon.notice netifd: Network device 'apcli0' link is up
Thu Jul 26 01:07:33 2018 daemon.notice netifd: Interface 'ext_chan1' has link connectivity
Thu Jul 26 01:07:33 2018 daemon.notice netifd: Interface 'ext_chan1' is setting up now
Thu Jul 26 01:07:33 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:33 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: started, v1.25.1
Thu Jul 26 01:07:33 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: sending discover
Thu Jul 26 01:07:34 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:35 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:36 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:36 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: sending discover
Thu Jul 26 01:07:37 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:38 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:39 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:39 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: sending discover
Thu Jul 26 01:07:40 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:41 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:42 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:43 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:44 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:45 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:46 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:47 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:48 2018 kern.info ap_client: Interface 'apcli0' associate - timed out
Thu Jul 26 01:07:56 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
Thu Jul 26 01:07:56 2018 kern.info ap_client: Scanning for networks...
Thu Jul 26 01:07:58 2018 kern.info ap_client: network 0: 11 megazoidr1 e4:95:6e:41:d0:a5 WPA1PSKWPA2PSK (AES) -54
Thu Jul 26 01:07:58 2018 kern.info ap_client: network 1: 3 adron_home 00:0c:42:51:be:0b WPA1PSKWPA2PSK (TKIPAES)6
Thu Jul 26 01:07:58 2018 kern.info ap_client: network 2: 3 ESP_3CE55F 5e:cf:7f:3c:e5:5f NONE () -71
Thu Jul 26 01:07:58 2018 kern.info ap_client: network 3: 10 mam-tom 64:d1:54:24:99:2f WPA1PSKWPA2PSK (TKIPAES) -4
Thu Jul 26 01:07:59 2018 daemon.notice netifd: Network device 'apcli0' link is down
Thu Jul 26 01:07:59 2018 daemon.notice netifd: Interface 'ext_chan1' has link connectivity loss
Thu Jul 26 01:07:59 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: read error: Network is down, reopening st
Thu Jul 26 01:07:59 2018 kern.info ap_client: Found configured network, trying to associate (essid: megazoidr1, b)
Thu Jul 26 01:07:59 2018 daemon.notice netifd: ext_chan1 (1887): udhcpc: received SIGTERM
Hello. I build a custom firmware for my project on Omega 2 using https://github.com/OnionIoT/source.git
My project really needs an ebtables. But it not enabled in .config. If i enable kmod-ebtables then I'm getting a fall in the module mt_wifi:
[ 65.818288] Kernel bug detected[#1]:
[ 65.821938] CPU: 0 PID: 994 Comm: ip Not tainted 4.4.74 #0
[ 65.827505] task: 839ce338 ti: 8327a000 task.ti: 8327a000
[ 65.832975] $ 0 : 00000000 00000001 00000001 0000ff00
[ 65.838293] $ 4 : 82e36dac 00000000 00000000 00000001
[ 65.843601] $ 8 : 00000001 82e36dec 00000000 3d726562
[ 65.848910] $12 : ffffffdf 00000058 00000000 00000041
[ 65.854222] $16 : 8105c6c0 00000dac 80430000 c0431bdc
[ 65.859534] $20 : 83168680 c042a000 833edf00 c054ab88
[ 65.864848] $24 : 00000000 800206c4
[ 65.870159] $28 : 8327a000 8327b780 8327bb18 82cdba2c
[ 65.875475] Hi : 00000000
[ 65.878393] Lo : 00000000
[ 65.881341] epc : 800206d0 r4k_dma_cache_wback_inv+0xc/0xc8
[ 65.887636] ra : 82cdba2c linux_pci_map_single+0x88/0xb4 [mt_wifi]
[ 65.894164] Status: 1100e402 KERNEL EXL
[ 65.898151] Cause : 10800034 (ExcCode 0d)
[ 65.902215] PrId : 00019655 (MIPS 24KEc)
[ 65.906276] Modules linked in: iptable_nat nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQh
[ 65.995859] Process ip (pid: 994, threadinfo=8327a000, task=839ce338, tls=779c7d48)
[ 66.003617] Stack : 83b97000 83b97000 803c0000 83b90000 833ea000 82cdba2c 00000001 83b97000
803c0000 83b90000 a31e7000 c042a000 c054ab60 82c9c868 83057400 83057400
c043a000 83b97000 0000ff00 00000120 82e36da0 00000001 82e36dac 00000000
00000001 00000001 00000000 82e36dac 83168680 c054ab5c 00000000 c042a000
83168680 c054a000 c054ab5c 82c9aacc c042a000 00000018 c042a000 00100000
...
[ 66.039751] Call Trace:
[ 66.042251] [<800206d0>] r4k_dma_cache_wback_inv+0xc/0xc8
[ 66.048178] [<82cdba2c>] linux_pci_map_single+0x88/0xb4 [mt_wifi]
[ 66.055251] [<82c9c868>] AndesMTPciKickOutCmdMsg+0x138/0x27c [mt_wifi]
[ 66.062768] [<82c9aacc>] AndesSendCmdMsg+0x36c/0x1fd0 [mt_wifi]
[ 66.069670] [<82c9b928>] AndesSendCmdMsg+0x11c8/0x1fd0 [mt_wifi]
[ 66.076201]
[ 66.077710]
Code: 27bdffe8 2ca20001 afbf0014 <00020336> 3c02803c 24422060 8c430008 7c630440 10600013
[ 66.087892] ---[ end trace c13d9acffae74f17 ]---
[ 66.095147] Fatal exception: panic in 5 seconds
This happens because mt_wifi is built for the kernel without the support of an ebtables and as a consequence the expected size of the structures is different from the real one. Could You enable support for ebtables in a https://github.com/OnionIoT/source.git and rebuild a mt_wifi.ko.
Many thanks.