[OpenWrt-Devel] Weird problem with WLAN on RT3662F+RT5392L and iwinfo crash

Piotr Dymacz pepe2k at gmail.com
Tue Oct 6 07:08:40 EDT 2015


Hello,

I'm working on support for for Jensen AL3000DG v2 device (ramips
target, currently build on r47048).
The device is similar (but not exactly the same) to Edimax R-6475ND
and Asus RT-N56U.

Short specification:
- RT3662F (for 5 GHz radio)
- RT5392L (for 2,4 GHz radio)
- RTL8367R Gbps switch
- 8 MB SPI NOR FLASH
- 64 MB DDR2 RAM
- 2x PCB antennas (with 2x SE5005L PA for 5 GHz radio)

Support is mostly done, everything seems to work, but during final
tests I encountered a strange problem with WiFi.
I'm not able to use 2,4 GHz radio without enabling 5 GHz radio at the
same time (this problem doesn't exist on OFW).

If I enable both radios in configuration, both are up and I'm able to
connect and use them. The same if I enable only 5 GHz radio (inside
RT3662F) - it's visible and working.
If I enable only 2,4 GHz radio (RT5392L) - it seems to be up (at least
iwinfo and iw report that - see below), but I don't see the SSID in
the air.

I would be grateful for any advice how to debug that.

Full bootlog is available at [1], iw list output at [2] and dts file at [3].

-----

Some outputs, only 2,4 GHz radio enabled in config:

root at OpenWrt:/# iwinfo
wlan0     ESSID: "OpenWrt_2G"
          Access Point: 34:21:09:xx:xx:xx
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: 1814:3091 1814:3091 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan1     ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Client  Channel: unknown (unknown)
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: nl80211  HW Mode(s): 802.11an
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy1

root at OpenWrt:/# cat /etc/config/wireless
config wifi-device  radio0
        option type     mac80211
        option channel  11
        option hwmode   11g
        option path     'pci0000:00/0000:00:01.0/0000:01:00.0'
        option htmode   HT20

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt_2G
        option encryption none

config wifi-device  radio1
        option type     mac80211
        option channel  36
        option hwmode   11a
        option path     '10180000.wmac'
        option htmode   HT20
        option disabled 1

config wifi-iface
        option device   radio1
        option network  lan
        option mode     ap
        option ssid     OpenWrt_5G
        option encryption none


[...]
[   15.550000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[   15.560000] rt2800pci 0000:01:00.0: failed to load eeprom property
[   15.570000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info -
Loading EEPROM data from 'rt2x00pci_1_0.eeprom'.
[   15.640000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5392,
rev 0223 detected
[   15.650000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5392 detected
[   15.670000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   15.670000] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 3883,
rev 0400 detected
[   15.690000] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 3853 detected
[   15.700000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   24.190000] ralink_soc_eth 10100000.ethernet eth0: link up
(1000Mbps/Full duplex)
[   24.200000] 8021q: adding VLAN 0 to HW filter on device eth0
[   24.220000] device eth0.1 entered promiscuous mode
[   24.230000] device eth0 entered promiscuous mode
[   24.250000] br-lan: port 1(eth0.1) entered forwarding state
[   24.260000] br-lan: port 1(eth0.1) entered forwarding state
[   26.260000] br-lan: port 1(eth0.1) entered forwarding state
[   26.670000] ieee80211 phy0: rt2x00lib_request_firmware: Info -
Loading firmware file 'rt2860.bin'
[   26.710000] ieee80211 phy0: rt2x00lib_request_firmware: Info -
Firmware detected - version: 0.34
[   27.000000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   27.010000] device wlan0 entered promiscuous mode
[   27.050000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   27.060000] br-lan: port 2(wlan0) entered forwarding state
[   27.070000] br-lan: port 2(wlan0) entered forwarding state
[   29.070000] br-lan: port 2(wlan0) entered forwarding state
[...]

What's more, if I try scan on 2,4 GHz radio... I'm getting this
(r47048), no matter if the 5 GHz radio is enabled or not and only at
first invoke:

root at OpenWrt:/# iwinfo wlan0 scan
[ 1084.500000] ------------[ cut here ]------------
[ 1084.510000] WARNING: CPU: 0 PID: 1087 at
/home/pepe2k/Projects/openwrt_mediatek/trunk/build_dir/target-mipsel_74kc+dsp2_musl-1.1.11/linux-ramips_rt3883/compat-wireless-2015-07-21/drivers/net/wireless/rt2x00/rt2800lib.c:1095
rt2800_get_txwi_rxwi_size+0x19c/0x268 [rt2800lib]()
[ 1084.560000] Modules linked in: rt2800soc rt2800pci rt2800mmio
rt2800lib pppoe ppp_async iptable_nat rt2x00soc rt2x00pci rt2x00mmio
rt2x00lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6
nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time
xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id
xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc
nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4
nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp
nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables
crc_itu_t crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6
nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables
x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 1084.690000] CPU: 0 PID: 1087 Comm: iwinfo Not tainted 3.18.21 #45
[ 1084.710000] Stack : 00000000 00000000 00000000 00000000 803941f2
00000035 0000043f 00000000
          832377f0 00000001 802e7914 80347143 0000043f 80393418
832377f0 8312f940
          00000008 0000001c 00000001 80047498 00000003 8002406c
00000447 8312f940
          802eae38 0083f7ac 00000000 00000000 00000000 00000000
00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
          ...
[ 1084.780000] Call Trace:
[ 1084.780000] [<80013e88>] show_stack+0x50/0x84
[ 1084.790000] [<80024174>] warn_slowpath_common+0x84/0xb4
[ 1084.800000] [<8002422c>] warn_slowpath_null+0x18/0x24
[ 1084.810000] [<830a4134>] rt2800_get_txwi_rxwi_size+0x19c/0x268 [rt2800lib]
[ 1084.820000]
[ 1084.830000] ---[ end trace ebcac4a9a3efbf63 ]---
Scanning not possible

-----

[1] http://pastebin.com/xKsQipf9
[2] http://pastebin.com/2g76qvfZ
[3] http://pastebin.com/KAx1Xit3

Cheers,
Piotr
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list