#17434: rt3052: missing tx/rx antenna selection and operating modes
------------------------------------------+--------------------------------
 Reporter:  braveheart_leo@…              |      Owner:  developers
     Type:  enhancement                   |     Status:  new
 Priority:  normal                        |  Milestone:  Chaos Calmer
Component:  kernel                        |  (trunk)
 Keywords:  rt3052 rx tx antenna rt-n13u  |    Version:  Trunk
------------------------------------------+--------------------------------
 Per Ralink RT3050/52 datasheet, RT3052 SoC has an embedded 2T2R 2.4GHz
 CMOS RF, with 1x1/1x2/2x2 operating modes. [#point1 (1)]

 However, antenna selection appears to be missing, at least in CHAOS CALMER
 (Bleeding Edge, r42041):
 {{{
 # iw phy0 info
 Wiphy phy0
         max # scan SSIDs: 4
         max scan IEs length: 2257 bytes
         Retry short limit: 7
         Retry long limit: 4
         Coverage class: 0 (up to 0m)
         Available Antennas: TX 0 RX 0
         Supported interface modes:
                  * IBSS
                  * managed
                  * AP
                  * AP/VLAN
                  * WDS
                  * monitor
                  * mesh point
         Band 1:
                 Capabilities: 0x2f2
                         HT20/HT40
                         Static SM Power Save
                         RX Greenfield
                         RX HT20 SGI
                         RX HT40 SGI
                         TX STBC
                         RX STBC 2-streams
                         Max AMSDU length: 3839 bytes
                         No DSSS/CCK HT40
                 Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                 Minimum RX AMPDU time spacing: 2 usec (0x04)
                 HT RX MCS rate indexes supported: 0-15, 32
                 TX unequal modulation not supported
                 HT TX Max spatial streams: 2
                 HT TX MCS rate indexes supported may differ
                 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)
                         * 2472 MHz [13] (20.0 dBm)
                         * 2484 MHz [14] (disabled)
         valid interface combinations:
                  * #{ managed, AP, mesh point } <= 8,
                    total <= 8, #channels <= 1
         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
 }}}
 ''Available Antennas: TX 0 RX 0'' indicates that there are no tx/rx
 antennas available for selection, even though the datasheet tells
 otherwise. Perhaps this is just a matter of the kernel driver not exposing
 the antennas to the OS?

 This is the system, for reference:
 {{{
 # cat /proc/cpuinfo
 system type             : Ralink RT3052 id:1 rev:3
 machine                 : Asus RT-N13U
 processor               : 0
 cpu model               : MIPS 24KEc V4.12
 BogoMIPS                : 255.59
 wait instruction        : yes
 microsecond timers      : yes
 tlb_entries             : 32
 extra interrupt vector  : yes
 hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000,
 0x0ff8, 0x0ff8, 0x0ff8]
 isa                     : mips1 mips2 mips32r1 mips32r2
 ASEs implemented        : mips16 dsp
 shadow register sets    : 1
 kscratch registers      : 0
 core                    : 0
 VCED exceptions         : not available
 VCEI exceptions         : not available
 }}}
 And before someone points out that the device only has internal antennas
 (though I plan to do an antenna mod to the device to add external
 antennas.), I have an older Atheros-based, D-Link DIR-300 router that has
 both 1x internal and 1x external antennas, and I can control antenna
 selection via ''/proc/sys/dev/wifi0/[rx|tx]antenna''.

 There is no ''/proc/sys/dev/wlan0/'' for RT-N13U, which is why the missing
 antenna selection. Can antenna selection be enabled for the ralink
 wireless driver in the kernel, or am I missing something else that
 prevents antenna selection for this particular device?

 [=#point1 (1)]
 http://www.tracermcc.ru/foto/bender/RT3050_5x_V2.0_081408_0902.pdf

--
Ticket URL: <https://dev.openwrt.org/ticket/17434>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to