OpenWrt Forum Archive

Topic: Realtek RTL8192SU family driver.

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

There is a WIP driver for the RTL8188SU/RTL8191SU/RTL8192SU USB wifi chips that cannot be supported by the rtlwifi driver: https://github.com/chunkeey/rtl8192su
The main difference with r8217u staging driver is that the API is cfg80211 instead wireless extensions, so it is easy to configure in openwrt.
Of course a simple question is: why not merge it in rtlwifi? Because this family of chips are fullmac, so, as the developers say, rtlwifi, which uses mac80211 is not the right way.

The driver is WIP but works fine as client and can be put in monitor mode (without frame injection), while other modes are not supported yet:

root@OpenWrt:~# iw phy0 info
Wiphy phy0
    Band 1:
        Capabilities: 0x19ee
            HT20/HT40
            SM Power Save disabled
            RX HT20 SGI
            RX HT40 SGI
            TX STBC
            RX STBC 1-stream
            Max AMSDU length: 7935 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
        Minimum RX AMPDU time spacing: 16 usec (0x07)
        HT TX/RX MCS rate indexes supported: 0-7, 32
        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) (passive scanning, no IBSS)
            * 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)
            * 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)
        Bitrates (non-HT):
            * 1.0 Mbps
            * 2.0 Mbps (short preamble supported)
            * 5.5 Mbps (short preamble supported)
            * 11.0 Mbps (short preamble supported)
            * 6.0 Mbps
            * 9.0 Mbps
            * 12.0 Mbps
            * 18.0 Mbps
            * 24.0 Mbps
            * 36.0 Mbps
            * 48.0 Mbps
            * 54.0 Mbps
    max # scan SSIDs: 1
    max scan IEs length: 256 bytes
    Coverage class: 0 (up to 0m)
    Supported Ciphers:
        * WEP40 (00-0f-ac:1)
        * WEP104 (00-0f-ac:5)
        * TKIP (00-0f-ac:2)
        * CCMP (00-0f-ac:4)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
         * managed
         * monitor
    software interface modes (can always be added):
    interface combinations are not supported
    Supported commands:
         * set_interface
         * new_key
         * set_channel
         * connect
         * disconnect

There are some devices based in this chips:
- RTL8188SU: http://wikidevi.com/wiki/Special:Browse … =RTL8188SU
- RTL8191SU: http://wikidevi.com/wiki/Special:Browse … =RTL8191SU
- RTL8192SU: http://wikidevi.com/wiki/Special:Browse … =RTL8192SU

In the other side there are issues derived from the early development status:
- Does not work in big endian mode, although the developers are patching the driver ir order to make it run on these cpu's.
- Don't know if works in other architectures than x86 (forgot to ask it).
- In openwrt doesn't show bit rate, signal nor noise.
In addition, the prerequisite to compile it is GCC >=4.7.2 and kernel >=3.7.x. We must check "Advanced developer options" and make the needed changes; don't select "GCC 4.x.x with Linaro enchancements" because the compilation will give problems. The other options can be left in its default values.

This is a kind of patch to add support for this driver in trunk r36151: outdated Also the patch adds support for rtlwifi drivers, based in http://patchwork.openwrt.org/patch/1960/
To apply the patch decompress it in (trunk_root_dir)/packages/mac80211 directory and execute "patch -p0 -i r92su.patch".

The few tests i've made in the last three days showed that the driver is stable; in addition, in a "bad done" speed test achieved 2'20MB/s. http://pastebin.com/HZXNzPHB

Some additional information of the test equipment (Wyse S10 thin client):

root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.8.3 (pepe@debian) (gcc version 4.7.2 (GCC) ) #1 Mon Apr 1 12:46:02 CEST 2013
[    0.000000] KERNEL supported cpus:
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000002faffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000002fb0000-0x0000000002fbffbf] ACPI data
[    0.000000] BIOS-e820: [mem 0x0000000002fbffc0-0x0000000002fbffff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x0000000040400000-0x000000004043ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f0000000-0x00000000ffffffff] reserved
[    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
[    0.000000] e820: update [mem 0x00000000-0x0003ffff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x2fb0 max_arch_pfn = 0x100000
[    0.000000] initial memory mapped: [mem 0x00000000-0x017fffff]
[    0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
[    0.000000] init_memory_mapping: [mem 0x00000000-0x02faffff]
[    0.000000]  [mem 0x00000000-0x003fffff] page 4k
[    0.000000]  [mem 0x00400000-0x02bfffff] page 2M
[    0.000000]  [mem 0x02c00000-0x02faffff] page 4k
[    0.000000] kernel direct mapping tables up to 0x2faffff @ [mem 0x017fa000-0x017fffff]
[    0.000000] 47MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 02fb0000
[    0.000000]   low ram: 0 - 02fb0000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00040000-0x00ffffff]
[    0.000000]   Normal   [mem 0x01000000-0x02faffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00040000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0x02faffff]
[    0.000000] On node 0 totalpages: 12047
[    0.000000] free_area_init_node: node 0, pgdat c12cedd4, node_mem_map c2f50800
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3903 pages, LIFO batch:0
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 8048 pages, LIFO batch:0
[    0.000000] e820: [mem 0x40440000-0xefffffff] available for PCI devices
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 11951
[    0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext4 rootwait console=tty0 console=ttyS0,38400n8 noinitrd reboot=bios
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Initializing CPU#0
[    0.000000] Memory: 44372k/48832k available (2089k kernel code, 3816k reserved, 812k data, 180k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfffe5000 - 0xfffff000   ( 104 kB)
[    0.000000]     vmalloc : 0xc37b0000 - 0xfffe3000   ( 968 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2fb0000   (  47 MB)
[    0.000000]       .init : 0xc12d6000 - 0xc1303000   ( 180 kB)
[    0.000000]       .data : 0xc120a594 - 0xc12d5820   ( 812 kB)
[    0.000000]       .text : 0xc1000000 - 0xc120a594   (2089 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] CPU 0 irqstacks, hard=c2806000 soft=c2808000
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Fast TSC calibration failed
[    0.000000] tsc: Using PIT calibration value
[    0.000000] tsc: Detected 333.221 MHz processor
[    0.070015] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.44 BogoMIPS (lpj=3332210)
[    0.090032] pid_max: default: 32768 minimum: 301
[    0.100484] Mount-cache hash table entries: 512
[    0.111633] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.111633] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.111633] tlb_flushall_shift: -1
[    0.120033] CPU: NSC Geode(TM) Integrated Processor by National Semi (fam: 05, model: 05, stepping: 02)
[    0.150412] Performance Events: 
[    0.165811] regulator-dummy: no parameters
[    0.170928] NET: Registered protocol family 16
[    0.192042] PCI: PCI BIOS revision 2.10 entry at 0xff8b7, last bus=0
[    0.200040] PCI: Using configuration type 1 for base access
[    0.252146] bio: create slab <bio-0> at 0
[    0.263506] SCSI subsystem initialized
[    0.280661] libata version 3.00 loaded.
[    0.281822] usbcore: registered new interface driver usbfs
[    0.290604] usbcore: registered new interface driver hub
[    0.300699] usbcore: registered new device driver usb
[    0.311393] PCI: Probing PCI hardware
[    0.311432] PCI: root bus 00: using default resources
[    0.311457] PCI: Probing PCI hardware (bus 00)
[    0.312061] PCI host bridge to bus 0000:00
[    0.320066] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.330064] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[    0.340048] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.350264] pci 0000:00:01.0: [100b:0028] type 00 class 0x060000
[    0.350508] pci 0000:00:01.0: reg 10: [io  0xac1c-0xac1f]
[    0.360246] pci 0000:00:01.1: [100b:0030] type 00 class 0x030000
[    0.360701] pci 0000:00:01.1: reg 10: [mem 0x41000000-0x41ffffff]
[    0.361063] pci 0000:00:01.1: reg 14: [mem 0x40ffc000-0x40ffffff]
[    0.361425] pci 0000:00:01.1: reg 18: [mem 0x40ff8000-0x40ffbfff]
[    0.361785] pci 0000:00:01.1: reg 1c: [mem 0x40ff4000-0x40ff7fff]
[    0.363269] pci 0000:00:0d.0: [1106:3038] type 00 class 0x0c0300
[    0.363389] pci 0000:00:0d.0: reg 20: [io  0xeee0-0xeeff]
[    0.363495] pci 0000:00:0d.0: supports D1 D2
[    0.363539] pci 0000:00:0d.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.363646] pci 0000:00:0d.1: [1106:3038] type 00 class 0x0c0300
[    0.363761] pci 0000:00:0d.1: reg 20: [io  0xeec0-0xeedf]
[    0.363865] pci 0000:00:0d.1: supports D1 D2
[    0.363908] pci 0000:00:0d.1: PME# supported from D0 D1 D2 D3hot D3cold
[    0.364011] pci 0000:00:0d.2: [1106:3104] type 00 class 0x0c0320
[    0.364086] pci 0000:00:0d.2: reg 10: [mem 0xefe00000-0xefe000ff]
[    0.364232] pci 0000:00:0d.2: supports D1 D2
[    0.364275] pci 0000:00:0d.2: PME# supported from D0 D1 D2 D3hot D3cold
[    0.364394] pci 0000:00:0e.0: [10ec:8139] type 00 class 0x020000
[    0.364467] pci 0000:00:0e.0: reg 10: [io  0xef00-0xefff]
[    0.364526] pci 0000:00:0e.0: reg 14: [mem 0xeff00000-0xeff000ff]
[    0.364661] pci 0000:00:0e.0: supports D1 D2
[    0.364704] pci 0000:00:0e.0: PME# supported from D1 D2 D3hot
[    0.364954] pci 0000:00:0f.0: [100b:002b] type 00 class 0x060100
[    0.365481] pci 0000:00:0f.0: reg 10: [io  0x0000-0x0007]
[    0.365888] pci 0000:00:0f.0: reg 14: [io  0x6100-0x61ff]
[    0.366295] pci 0000:00:0f.0: reg 18: [io  0x6200-0x623f]
[    0.366702] pci 0000:00:0f.0: reg 1c: [io  0x0000-0x001f]
[    0.367111] pci 0000:00:0f.0: reg 20: [io  0x9d00-0x9d7f]
[    0.367518] pci 0000:00:0f.0: reg 24: [io  0x9c00-0x9c3f]
[    0.368367] pci 0000:00:0f.2: [100b:002d] type 00 class 0x010180
[    0.369773] pci 0000:00:0f.2: reg 20: [io  0xeeb0-0xeebf]
[    0.370831] pci 0000:00:0f.3: [100b:002e] type 00 class 0x040100
[    0.371257] pci 0000:00:0f.3: reg 10: [io  0xee00-0xee7f]
[    0.373251] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.379521] pci 0000:00:0f.0: default IRQ router [100b:002b]
[    0.380289] PCI: pci_cache_line_size set to 32 bytes
[    0.380821] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.380858] e820: reserve RAM buffer [mem 0x02fb0000-0x03ffffff]
[    0.390218] Switching to clocksource pit
[    0.407157] pci 0000:00:0f.0: BAR 3: assigned [io  0x1000-0x101f]
[    0.416119] pci 0000:00:0f.0: BAR 0: assigned [io  0x1020-0x1027]
[    0.424625] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.424675] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
[    0.425002] NET: Registered protocol family 2
[    0.429265] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.440486] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.449619] TCP: Hash tables configured (established 512 bind 512)
[    0.458884] TCP: reno registered
[    0.468670] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.486254] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.496172] NET: Registered protocol family 1
[    0.499535] pci 0000:00:01.1: Boot video device
[    0.499669] pci 0000:00:0d.0: guessed PCI INT A -> IRQ 10
[    0.516796] pci 0000:00:0d.0: uhci_check_and_reset_hc: legsup = 0x2000
[    0.516839] pci 0000:00:0d.0: Performing full reset
[    0.516933] pci 0000:00:0d.1: guessed PCI INT B -> IRQ 10
[    0.523443] pci 0000:00:0d.1: uhci_check_and_reset_hc: legsup = 0x2000
[    0.523486] pci 0000:00:0d.1: Performing full reset
[    0.523580] pci 0000:00:0d.2: guessed PCI INT C -> IRQ 5
[    0.529828] pci 0000:00:0d.2: sharing IRQ 5 with 0000:00:0f.3
[    0.547450] PCI: CLS 32 bytes, default 32
[    0.548968] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.565200] NatSemi SCx200 Driver
[    0.638182] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.655765] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.668296] msgmni has been set to 86
[    0.680098] io scheduler noop registered
[    0.691988] io scheduler deadline registered (default)
[    0.708452] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.739067] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.760883] Non-volatile memory driver v1.3
[    0.778385] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.788058] ehci_hcd: block sizes: qh 60 qtd 96 itd 160 sitd 96
[    0.788115] ehci-pci: EHCI PCI platform driver
[    0.801648] ehci-pci 0000:00:0d.2: guessed PCI INT C -> IRQ 5
[    0.809192] ehci-pci 0000:00:0d.2: sharing IRQ 5 with 0000:00:0f.3
[    0.827872] ehci-pci 0000:00:0d.2: EHCI Host Controller
[    0.833689] ehci-pci 0000:00:0d.2: new USB bus registered, assigned bus number 1
[    0.845998] ehci-pci 0000:00:0d.2: reset hcs_params 0x2204 dbg=0 cc=2 pcc=2 ordered !ppc ports=4
[    0.846057] ehci-pci 0000:00:0d.2: reset hcc_params 6872 thresh 7 uframes 256/512/1024
[    0.846232] ehci-pci 0000:00:0d.2: reset command 0080002 (park)=0 ithresh=8 period=1024 Reset HALT
[    0.846287] ehci-pci 0000:00:0d.2: MWI active
[    0.846325] ehci-pci 0000:00:0d.2: supports USB remote wakeup
[    0.846386] ehci-pci 0000:00:0d.2: irq 5, io mem 0xefe00000
[    0.853215] ehci-pci 0000:00:0d.2: init command 0010005 (park)=0 ithresh=1 period=512 RUN
[    0.868063] ehci-pci 0000:00:0d.2: USB 2.0 started, EHCI 1.00
[    0.885614] usb usb1: default language 0x0409
[    0.885721] usb usb1: udev 1, busnum 1, minor = 0
[    0.885767] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.896219] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.907955] usb usb1: Product: EHCI Host Controller
[    0.912670] usb usb1: Manufacturer: Linux 3.8.3 ehci_hcd
[    0.918675] usb usb1: SerialNumber: 0000:00:0d.2
[    0.933550] usb usb1: usb_probe_device
[    0.933602] usb usb1: configuration #1 chosen from 1 choice
[    0.933705] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[    0.934423] hub 1-0:1.0: usb_probe_interface
[    0.934474] hub 1-0:1.0: usb_probe_interface - got id
[    0.934510] hub 1-0:1.0: USB hub found
[    0.945903] hub 1-0:1.0: 4 ports detected
[    0.958063] hub 1-0:1.0: standalone hub
[    0.958105] hub 1-0:1.0: no power switching (usb 1.0)
[    0.958142] hub 1-0:1.0: individual port over-current protection
[    0.958182] hub 1-0:1.0: power on to power good time: 20ms
[    0.958255] hub 1-0:1.0: local power source is good
[    0.958476] hub 1-0:1.0: trying to enable port power on non-switchable hub
[    0.959346] ehci-platform: EHCI generic platform driver
[    0.975612] uhci_hcd: USB Universal Host Controller Interface driver
[    0.984963] uhci_hcd 0000:00:0d.0: guessed PCI INT A -> IRQ 10
[    0.992808] uhci_hcd 0000:00:0d.0: UHCI Host Controller
[    0.998647] uhci_hcd 0000:00:0d.0: new USB bus registered, assigned bus number 2
[    1.010934] uhci_hcd 0000:00:0d.0: detected 2 ports
[    1.025651] uhci_hcd 0000:00:0d.0: uhci_check_and_reset_hc: cmd = 0x0000
[    1.025691] uhci_hcd 0000:00:0d.0: Performing full reset
[    1.025741] uhci_hcd 0000:00:0d.0: supports USB remote wakeup
[    1.025803] uhci_hcd 0000:00:0d.0: irq 10, io base 0x0000eee0
[    1.033399] usb usb2: default language 0x0409
[    1.033508] usb usb2: udev 1, busnum 2, minor = 128
[    1.033553] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.043997] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.055736] usb usb2: Product: UHCI Host Controller
[    1.060468] usb usb2: Manufacturer: Linux 3.8.3 uhci_hcd
[    1.076494] usb usb2: SerialNumber: 0000:00:0d.0
[    1.081048] ehci-pci 0000:00:0d.2: GetStatus port:2 status 001803 0  ACK POWER sig=j CSC CONNECT
[    1.081110] hub 1-0:1.0: port 2: status 0501 change 0001
[    1.081214] ehci-pci 0000:00:0d.2: GetStatus port:4 status 001803 0  ACK POWER sig=j CSC CONNECT
[    1.081268] hub 1-0:1.0: port 4: status 0501 change 0001
[    1.081761] usb usb2: usb_probe_device
[    1.081815] usb usb2: configuration #1 chosen from 1 choice
[    1.081917] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[    1.082641] hub 2-0:1.0: usb_probe_interface
[    1.082692] hub 2-0:1.0: usb_probe_interface - got id
[    1.082728] hub 2-0:1.0: USB hub found
[    1.094099] hub 2-0:1.0: 2 ports detected
[    1.106216] hub 2-0:1.0: standalone hub
[    1.106256] hub 2-0:1.0: no power switching (usb 1.0)
[    1.106293] hub 2-0:1.0: individual port over-current protection
[    1.106332] hub 2-0:1.0: power on to power good time: 2ms
[    1.106403] hub 2-0:1.0: local power source is good
[    1.106579] hub 2-0:1.0: trying to enable port power on non-switchable hub
[    1.107018] uhci_hcd 0000:00:0d.1: guessed PCI INT B -> IRQ 10
[    1.114875] uhci_hcd 0000:00:0d.1: UHCI Host Controller
[    1.120696] uhci_hcd 0000:00:0d.1: new USB bus registered, assigned bus number 3
[    1.132991] uhci_hcd 0000:00:0d.1: detected 2 ports
[    1.147714] uhci_hcd 0000:00:0d.1: uhci_check_and_reset_hc: cmd = 0x0000
[    1.147754] uhci_hcd 0000:00:0d.1: Performing full reset
[    1.147804] uhci_hcd 0000:00:0d.1: supports USB remote wakeup
[    1.147861] uhci_hcd 0000:00:0d.1: irq 10, io base 0x0000eec0
[    1.155462] usb usb3: default language 0x0409
[    1.155570] usb usb3: udev 1, busnum 3, minor = 256
[    1.155615] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.166064] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.177799] usb usb3: Product: UHCI Host Controller
[    1.182532] usb usb3: Manufacturer: Linux 3.8.3 uhci_hcd
[    1.188550] usb usb3: SerialNumber: 0000:00:0d.1
[    1.203117] uhci_hcd 0000:00:0d.0: port 1 portsc 018a,00
[    1.203206] uhci_hcd 0000:00:0d.0: port 2 portsc 009a,00
[    1.203321] hub 1-0:1.0: state 7 ports 4 chg 0014 evt 0000
[    1.203408] hub 1-0:1.0: port 2, status 0501, change 0000, 480 Mb/s
[    1.203931] usb usb3: usb_probe_device
[    1.203985] usb usb3: configuration #1 chosen from 1 choice
[    1.204087] usb usb3: adding 3-0:1.0 (config #1, interface 0)
[    1.204812] hub 3-0:1.0: usb_probe_interface
[    1.204863] hub 3-0:1.0: usb_probe_interface - got id
[    1.204899] hub 3-0:1.0: USB hub found
[    1.216299] hub 3-0:1.0: 2 ports detected
[    1.218404] hub 3-0:1.0: standalone hub
[    1.218445] hub 3-0:1.0: no power switching (usb 1.0)
[    1.218482] hub 3-0:1.0: individual port over-current protection
[    1.218521] hub 3-0:1.0: power on to power good time: 2ms
[    1.218592] hub 3-0:1.0: local power source is good
[    1.218741] hub 3-0:1.0: trying to enable port power on non-switchable hub
[    1.219713] Initializing USB Mass Storage driver...
[    1.235223] usbcore: registered new interface driver usb-storage
[    1.243316] USB Mass Storage support registered.
[    1.258423] ehci-pci 0000:00:0d.2: port 2 reset complete, port enabled
[    1.258508] ehci-pci 0000:00:0d.2: GetStatus port:2 status 001005 0  ACK POWER sig=se0 PE CONNECT
[    1.258682] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    1.277878] rtc0: alarms up to one day, 114 bytes nvram
[    1.284873] TCP: cubic registered
[    1.294934] NET: Registered protocol family 17
[    1.298493] 8021q: 802.1Q VLAN Support v1.8
[    1.314688] rtc_cmos rtc_cmos: setting system clock to 2005-07-01 20:28:54 UTC (1120249734)
[    1.320890] Waiting for root device /dev/sda2...
[    1.334926] usb 1-2: new high-speed USB device number 2 using ehci-pci
[    1.344739] uhci_hcd 0000:00:0d.1: port 1 portsc 018a,00
[    1.344946] uhci_hcd 0000:00:0d.1: port 2 portsc 009a,00
[    1.398292] ehci-pci 0000:00:0d.2: port 2 reset complete, port enabled
[    1.398380] ehci-pci 0000:00:0d.2: GetStatus port:2 status 001005 0  ACK POWER sig=se0 PE CONNECT
[    1.488969] usb 1-2: default language 0x0409
[    1.494838] usb 1-2: udev 2, busnum 1, minor = 1
[    1.494892] usb 1-2: New USB device found, idVendor=13fe, idProduct=3e23
[    1.505128] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.516678] usb 1-2: Product: USB DISK Pro
[    1.519040] usb 1-2: Manufacturer:         
[    1.531678] usb 1-2: SerialNumber: 07BB1B0B22049995
[    1.547432] usb 1-2: usb_probe_device
[    1.547487] usb 1-2: configuration #1 chosen from 1 choice
[    1.547750] usb 1-2: adding 1-2:1.0 (config #1, interface 0)
[    1.549050] usb-storage 1-2:1.0: usb_probe_interface
[    1.549192] usb-storage 1-2:1.0: usb_probe_interface - got id
[    1.549812] scsi0 : usb-storage 1-2:1.0
[    1.561834] Switching to clocksource tsc
[    1.575799] hub 1-0:1.0: port 4, status 0501, change 0000, 480 Mb/s
[    1.628287] ehci-pci 0000:00:0d.2: port 4 reset complete, port enabled
[    1.628374] ehci-pci 0000:00:0d.2: GetStatus port:4 status 001005 0  ACK POWER sig=se0 PE CONNECT
[    1.688089] usb 1-4: new high-speed USB device number 3 using ehci-pci
[    1.768424] ehci-pci 0000:00:0d.2: port 4 reset complete, port enabled
[    1.768510] ehci-pci 0000:00:0d.2: GetStatus port:4 status 001005 0  ACK POWER sig=se0 PE CONNECT
[    1.859728] usb 1-4: default language 0x0409
[    1.861237] usb 1-4: udev 3, busnum 1, minor = 2
[    1.861327] usb 1-4: New USB device found, idVendor=0bda, idProduct=8171
[    1.881572] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.903097] usb 1-4: Product: RTL8188S WLAN Adapter 
[    1.918100] usb 1-4: Manufacturer: Manufacturer Realtek 
[    1.934123] usb 1-4: SerialNumber: 00e04c000001
[    1.949237] usb 1-4: usb_probe_device
[    1.949318] usb 1-4: configuration #1 chosen from 1 choice
[    1.949877] usb 1-4: adding 1-4:1.0 (config #1, interface 0)
[    1.951876] hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0000
[    1.951964] hub 3-0:1.0: state 7 ports 2 chg 0000 evt 0000
[    2.308163] usb usb2: suspend_rh (auto-stop)
[    2.558192] usb usb3: suspend_rh (auto-stop)
[    2.590779] scsi 0:0:0:0: Direct-Access              USB DISK Pro     PMAP PQ: 0 ANSI: 4
[    2.620677] sd 0:0:0:0: [sda] 7806976 512-byte logical blocks: (3.99 GB/3.72 GiB)
[    2.648101] sd 0:0:0:0: [sda] Write Protect is off
[    2.662667] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    2.663582] sd 0:0:0:0: [sda] No Caching mode page present
[    2.680173] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.704953] sd 0:0:0:0: [sda] No Caching mode page present
[    2.721539] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.742704]  sda: sda1 sda2
[    2.758313] sd 0:0:0:0: [sda] No Caching mode page present
[    2.774909] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.793307] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.828984] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    2.850330] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    2.870564] Freeing unused kernel memory: 180k freed
[    7.090855] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[    7.120803] EXT4-fs (sda2): re-mounted. Opts: (null)
[    7.230676] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[    8.235205] Compat-drivers backport release: compat-drivers-2013-01-21-1
[    8.255403] Backport based on wireless-testing.git master-2013-02-22
[    8.274550] compat.git: wireless-testing.git
[    8.337766] cfg80211: Calling CRDA to update world regulatory domain
[    8.357089] cfg80211: World regulatory domain updated:
[    8.372586] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.397205] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.420513] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.443835] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.467122] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.490388] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.789100] ehci-pci 0000:00:0d.2: Waited too long for the async schedule status (0/8000), giving up
[    9.078466] r92su 1-4:1.0: usb_probe_interface
[    9.078528] r92su 1-4:1.0: usb_probe_interface - got id
[    9.310735] r92su 1-4:1.0: Realtek RTL81XX rev C_CUT, rf:1T1R is registered as 'phy0'.
[    9.334865] usbcore: registered new interface driver r92su
[    9.408651] usbcore: registered new interface driver rt73usb
[    9.456749] usbcore: registered new interface driver rtl8187
[    9.558804] pata_cs5535 0000:00:0f.2: setting latency timer to 64
[    9.567184] scsi1 : pata_cs5535
[    9.588167] scsi2 : pata_cs5535
[    9.598419] ata1: PATA max UDMA/66 cmd 0x1f0 ctl 0x3f6 bmdma 0xeeb0 irq 14
[    9.619207] ata2: DUMMY
[    9.891621] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.162617] nf_conntrack version 0.5.0 (696 buckets, 2784 max)
[   10.503890] cs5535-mfd 0000:00:0f.0: 5 devices registered.
[   10.549330] cs5535-mfgpt cs5535-mfgpt: reserved resource region [io  0x6200-0x623f]
[   10.572457] cs5535-mfgpt cs5535-mfgpt: 6 MFGPT timers available
[   10.873555] 8139too: 8139too Fast Ethernet driver 0.9.28
[   10.889870] 8139too 0000:00:0e.0: guessed PCI INT A -> IRQ 11
[   10.909232] 8139too 0000:00:0e.0 eth0: RealTek RTL8139 at 0x0001ef00, 00:80:64:xx:xx:xx, IRQ 11
[   10.958778] cs5535-mfgpt cs5535-mfgpt: registered timer 0
[   10.975167] cs5535-clockevt: Registering MFGPT timer as a clock event, using IRQ 7
[   11.021621] cs5535-gpio cs5535-gpio: reserved resource region [io  0x6100-0x61ff]
[   11.069052] cs5535-mfgpt cs5535-mfgpt: registered timer 1
[   11.180222] i2c /dev entries driver
[   11.452026] cs5535-smb cs5535-smb: SCx200 device 'CS5535 ACB0' registered
[   19.646300] ieee80211 phy0: firmware version: 0x11ec
[   20.301703] ieee80211 phy0: c2h event:13 len:66
[   20.306110] ieee80211 phy0: fwdbg: RTL8712 FW version 0.0.1# 一 5 31 15:25:39 CST 2010  SVN: 242
[   20.306110] ieee80211 phy0: c2h event:13 len:22
[   20.306110] ieee80211 phy0: fwdbg: Chip Version:00000002
[   20.372806] ieee80211 phy0: c2h event:13 len:30
[   20.382727] ieee80211 phy0: fwdbg: HCI type: 00000012(00000004)
[   20.404403] ieee80211 phy0: c2h event:13 len:50
[   20.414327] ieee80211 phy0: fwdbg: rf_cofig: 00000011(000000ff, 00000000, 00000000)
[   20.441211] ieee80211 phy0: c2h event:13 len:44
[   20.451135] ieee80211 phy0: fwdbg: mp_mode: 00000000(00000000), IQK: 400300fd
[   20.476462] ieee80211 phy0: c2h event:13 len:30
[   20.486386] ieee80211 phy0: fwdbg: vcs type: 00000002(00000001)
[   20.508052] ieee80211 phy0: c2h event:13 len:36
[   20.517977] ieee80211 phy0: fwdbg: 32k calibra: 767, 32K TSF: 0000002a
[   20.541476] ieee80211 phy0: c2h event:13 len:49
[   20.551398] ieee80211 phy0: fwdbg: target thermal: 0000000e,  bt_coexist: 00000000
[   20.590605] ieee80211 phy0: c2h event:13 len:44
[   20.597676] ieee80211 phy0: fwdbg: ->(00000001, 00000001, 00000001, 00000000)
[   20.645879] ieee80211 phy0: c2h event:13 len:22
[   20.655273] ieee80211 phy0: fwdbg: set opmode: 00000000
[   20.675481] ieee80211 phy0: c2h event:13 len:16
[   20.685393] ieee80211 phy0: fwdbg: Update MacAddr
[   22.003028] ieee80211 phy0: c2h event:13 len:16
[   22.012391] ieee80211 phy0: fwdbg: get survey cmd
[   22.031045] ieee80211 phy0: c2h event:8 len:357
[   22.071275] ieee80211 phy0: c2h event:8 len:311
[   22.266422] ieee80211 phy0: c2h event:8 len:174
[   23.645942] ieee80211 phy0: c2h event:9 len:4
[   23.659329] ieee80211 phy0: c2h event:13 len:33
[   23.669247] ieee80211 phy0: fwdbg: survey done(00000003, 00000000)
[   23.696074] ieee80211 phy0: c2h event:13 len:19
[   23.701623] ieee80211 phy0: fwdbg: setAuth: 00000002
[   23.701623] ieee80211 phy0: c2h event:13 len:14
[   23.701623] ieee80211 phy0: fwdbg: get join cmd
[   23.996596] ieee80211 phy0: c2h event:13 len:47
[   24.006286] ieee80211 phy0: fwdbg: cur channel: 00000003, bcn interval: 00000064
[   30.144382] ieee80211 phy0: c2h event:13 len:29
[   30.146729] ieee80211 phy0: fwdbg: disconnect timer: no beacon
[   30.175873] ieee80211 phy0: c2h event:a len:215
[   30.189778] ieee80211 phy0: c2h event:13 len:30
[   30.199697] ieee80211 phy0: fwdbg: join res(fffffffd, 000000d7)
[   40.349977] ieee80211 phy0: c2h event:13 len:16
[   40.359502] ieee80211 phy0: fwdbg: get survey cmd
[   40.378038] ieee80211 phy0: c2h event:13 len:15
[   40.387952] ieee80211 phy0: fwdbg: SSID: WLAN_69
[   40.405744] ieee80211 phy0: c2h event:8 len:317
[   41.992780] ieee80211 phy0: c2h event:9 len:4
[   42.006151] ieee80211 phy0: c2h event:13 len:33
[   42.016073] ieee80211 phy0: fwdbg: survey done(00000001, 00000000)
[   42.043436] ieee80211 phy0: c2h event:13 len:19
[   42.048477] ieee80211 phy0: fwdbg: setAuth: 00000002
[   42.072251] ieee80211 phy0: c2h event:13 len:14
[   42.082162] ieee80211 phy0: fwdbg: get join cmd
[   42.343994] ieee80211 phy0: c2h event:13 len:47
[   42.353904] ieee80211 phy0: fwdbg: cur channel: 00000003, bcn interval: 00000064
[   42.406077] ieee80211 phy0: c2h event:13 len:21
[   42.409577] ieee80211 phy0: fwdbg: link to Broadcom AP
[   42.435582] ieee80211 phy0: c2h event:13 len:12
[   42.445300] ieee80211 phy0: fwdbg: issue auth
[   42.462532] ieee80211 phy0: c2h event:13 len:26
[   42.472452] ieee80211 phy0: fwdbg: issue assocreq(00000047)
[   42.493082] ieee80211 phy0: c2h event:13 len:35
[   42.503003] ieee80211 phy0: fwdbg: WMM(00000000): 00000000, 0000a425
[   42.525985] ieee80211 phy0: c2h event:13 len:35
[   42.535906] ieee80211 phy0: fwdbg: WMM(00000001): 00000000, 0000a449
[   42.558888] ieee80211 phy0: c2h event:13 len:35
[   42.568808] ieee80211 phy0: fwdbg: WMM(00000002): 00000000, 005e431c
[   42.591788] ieee80211 phy0: c2h event:13 len:35
[   42.601710] ieee80211 phy0: fwdbg: WMM(00000003): 00000000, 002f321c
[   42.601710] ieee80211 phy0: c2h event:13 len:41
[   42.601710] ieee80211 phy0: fwdbg: mac id #5: 0000005b, 100fffff, 00000007
[   42.659059] ieee80211 phy0: c2h event:a len:215
[   42.672947] ieee80211 phy0: c2h event:13 len:30
[   42.682866] ieee80211 phy0: fwdbg: join res(00000001, 000000d7)
[   42.704536] ieee80211 phy0: c2h event:19 len:10
[   42.718391] ieee80211 phy0: c2h event:13 len:45
[   42.728312] ieee80211 phy0: fwdbg: issue action: 00000003, 00000001, 00000000 
[   43.452060] ieee80211 phy0: c2h event:13 len:16
[   43.457089] ieee80211 phy0: fwdbg: rcv set_stakey
[   46.785666] ieee80211 phy0: c2h event:13 len:45
[   46.791002] ieee80211 phy0: fwdbg: issue action: 00000003, 00000000, 00000006 
[   46.821275] ieee80211 phy0: c2h event:13 len:21
[   46.831185] ieee80211 phy0: fwdbg: ADDBA RSP: 00000040
[   46.852834] ieee80211 phy0: c2h event:13 len:45
[   46.860534] ieee80211 phy0: fwdbg: issue action: 00000003, 00000000, 00000000 
[   46.888425] ieee80211 phy0: c2h event:13 len:21
[   46.898328] ieee80211 phy0: fwdbg: ADDBA RSP: 00000041
[   81.476234] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[  751.133570] ieee80211 phy0: c2h event:13 len:17
[  751.140619] ieee80211 phy0: fwdbg: reset(00000001)
[  753.181595] ieee80211 phy0: c2h event:13 len:17
[  753.183662] ieee80211 phy0: fwdbg: reset(00000002)
[  755.229621] ieee80211 phy0: c2h event:13 len:17
[  755.231588] ieee80211 phy0: fwdbg: reset(00000003)
root@OpenWrt:~# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=r92su, 480M
root@OpenWrt:~# iw wlan0 info
Interface wlan0
    ifindex 2
    wdev 0x1
    addr 00:11:6b:xx:xx:xx
    type managed
    wiphy 0
root@OpenWrt:~# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:"WLAN_69"  
          Mode:Managed  Frequency:2.422 GHz  Access Point: 64:68:0C:xx:xx:xx   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

Maybe too debug hmm

This information and the patch are thanks to, in addition of the developers, danitool and Noltari.

(Last edited by Pteridium on 7 Apr 2013, 17:40)

Christian Lamparter patched the code and now works in big endian cpus; he also added basic support for ad-hoc (IBSS) mode. Still there are no statistics, but de driver works fine if we take in mind that it is still WIP.

[    0.000000] Linux version 3.7.9 (pepe@debian) (gcc version 4.7.2 (GCC) ) #15 Sun Apr 7 12:42:40 CEST 2013
[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-106.5
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board_bcm963xx: board name: 96328A-1241N
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80311d60, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Memory: 61208k/65536k available (2529k kernel code, 4328k reserved, 634k data, 228k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.036000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.044000] device: 'platform': device_add
[    0.044000] bus: 'platform': registered
[    0.044000] bus: 'cpu': registered
[    0.044000] device: 'cpu': device_add
[    0.048000] NET: Registered protocol family 16
[    0.052000] device class 'bdi': registering
[    0.052000] device class 'gpio': registering
[    0.052000] device: 'gpiochip0': device_add
[    0.052000] device class 'pci_bus': registering
[    0.052000] bus: 'pci': registered
[    0.052000] device class 'tty': registering
[    0.052000] bus: 'spi': registered
[    0.052000] device class 'spi_master': registering
[    0.056000] Registering platform device 'bcm63xx_uart.0'. Parent at platform
[    0.056000] device: 'bcm63xx_uart.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx_uart.0
[    0.056000] Registering platform device 'bcm63xx_enet_shared.0'. Parent at platform
[    0.056000] device: 'bcm63xx_enet_shared.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx_enet_shared.0
[    0.056000] Registering platform device 'bcm63xx_enetsw.0'. Parent at platform
[    0.056000] device: 'bcm63xx_enetsw.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx_enetsw.0
[    0.056000] Registering platform device 'bcm63xx_ehci.0'. Parent at platform
[    0.056000] device: 'bcm63xx_ehci.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx_ehci.0
[    0.056000] Registering platform device 'bcm63xx_ohci.0'. Parent at platform
[    0.056000] device: 'bcm63xx_ohci.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx_ohci.0
[    0.056000] Registering platform device 'bcm63xx-hsspi.0'. Parent at platform
[    0.056000] device: 'bcm63xx-hsspi.0': device_add
[    0.056000] bus: 'platform': add device bcm63xx-hsspi.0
[    0.056000] Registering platform device 'leds-gpio.0'. Parent at platform
[    0.056000] device: 'leds-gpio.0': device_add
[    0.056000] bus: 'platform': add device leds-gpio.0
[    0.060000] Registering platform device 'gpio-keys-polled.0'. Parent at platform
[    0.060000] device: 'gpio-keys-polled.0': device_add
[    0.060000] bus: 'platform': add device gpio-keys-polled.0
[    0.060000] Registering platform device 'bcm63xx-wdt'. Parent at platform
[    0.060000] device: 'bcm63xx-wdt': device_add
[    0.060000] bus: 'platform': add device bcm63xx-wdt
[    0.280000] registering PCI controller with io_map_base unset
[    0.284000] device: 'cpu0': device_add
[    0.284000] bus: 'cpu': add device cpu0
[    0.296000] device: 'default': device_add
[    0.296000] bio: create slab <bio-0> at 0
[    0.300000] device class 'block': registering
[    0.300000] device class 'misc': registering
[    0.300000] device class 'mdio_bus': registering
[    0.300000] bus: 'mdio_bus': registered
[    0.300000] bus: 'mdio_bus': add driver Generic PHY
[    0.300000] bus: 'usb': registered
[    0.300000] bus: 'usb': add driver usbfs
[    0.300000] usbcore: registered new interface driver usbfs
[    0.304000] bus: 'usb': add driver hub
[    0.304000] usbcore: registered new interface driver hub
[    0.308000] bus: 'usb': add driver usb
[    0.308000] usbcore: registered new device driver usb
[    0.312000] device class 'leds': registering
[    0.312000] device: 'pci0000:00': device_add
[    0.312000] device: '0000:00': device_add
[    0.312000] PCI host bridge to bus 0000:00
[    0.316000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]
[    0.320000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.324000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.328000] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.328000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.328000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.332000] pci 0000:01:00.0: [14e4:a8d8] type 00 class 0x028000
[    0.332000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.332000] pci 0000:01:00.0: supports D1 D2
[    0.332000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.332000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.332000] device: '0000:00:00.0': device_add
[    0.332000] bus: 'pci': add device 0000:00:00.0
[    0.332000] device: '0000:01:00.0': device_add
[    0.332000] bus: 'pci': add device 0000:01:00.0
[    0.332000] device: '0000:01': device_add
[    0.332000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.336000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.340000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.344000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.348000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.348000] device class 'net': registering
[    0.348000] device: 'lo': device_add
[    0.348000] Switching to clocksource MIPS
[    0.352000] device class 'mem': registering
[    0.352000] device: 'mem': device_add
[    0.352000] device: 'null': device_add
[    0.352000] device: 'port': device_add
[    0.352000] device: 'zero': device_add
[    0.352000] device: 'full': device_add
[    0.352000] device: 'random': device_add
[    0.352000] device: 'urandom': device_add
[    0.356000] device: 'kmsg': device_add
[    0.356000] device: 'tty': device_add
[    0.356000] device: 'console': device_add
[    0.356000] device class 'firmware': registering
[    0.356000] bus: 'ssb': registered
[    0.356000] bus: 'pci': add driver b43-pci-bridge
[    0.356000] bus: 'bcma': registered
[    0.356000] bus: 'pci': add driver bcma-pci-bridge
[    0.356000] bus: 'pci': driver_probe_device: matched device 0000:01:00.0 with driver bcma-pci-bridge
[    0.356000] bus: 'pci': really_probe: probing driver bcma-pci-bridge with device 0000:01:00.0
[    0.356000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.356000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x08
[    0.364000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.372000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.384000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.392000] bcma: bus0: Found rev 6 PMU (capabilities 0x108C2606)
[    0.392000] bcma: bus0: SPROM offset 0x800
[    0.432000] bcma: bus0: invalid sprom read from the PCIe card, try to use fallback sprom
[    0.440000] bcm63xx_sprom_bcma: filled sprom for chip id 0xa8d9
[    0.444000] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.444000] bcma: bus0: PMU resource config unknown or not needed for device 0xA8D9
[    0.448000] bcma: bus0: Workarounds unknown or not needed for device 0xA8D9
[    0.456000] device: 'bcma0:0': device_add
[    0.456000] bus: 'bcma': add device bcma0:0
[    0.456000] bcma: bus0: GPIO driver not activated
[    0.456000] bcma: bus0: Bus registered
[    0.460000] driver: '0000:01:00.0': driver_bound: bound to device 'bcma-pci-bridge'
[    0.460000] bus: 'pci': really_probe: bound device 0000:01:00.0 to driver bcma-pci-bridge
[    0.460000] NET: Registered protocol family 2
[    0.468000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.472000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.480000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.488000] TCP: reno registered
[    0.492000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.496000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.504000] NET: Registered protocol family 1
[    0.508000] PCI: CLS 0 bytes, default 16
[    0.508000] bus: 'clocksource': registered
[    0.508000] device: 'clocksource': device_add
[    0.508000] device: 'clocksource0': device_add
[    0.508000] bus: 'clocksource': add device clocksource0
[    0.512000] bus: 'platform': add driver alarmtimer
[    0.512000] Registering platform device 'alarmtimer'. Parent at platform
[    0.512000] device: 'alarmtimer': device_add
[    0.512000] bus: 'platform': add device alarmtimer
[    0.512000] bus: 'platform': driver_probe_device: matched device alarmtimer with driver alarmtimer
[    0.512000] bus: 'platform': really_probe: probing driver alarmtimer with device alarmtimer
[    0.512000] driver: 'alarmtimer': driver_bound: bound to device 'alarmtimer'
[    0.512000] bus: 'platform': really_probe: bound device alarmtimer to driver alarmtimer
[    0.512000] audit: initializing netlink socket (disabled)
[    0.516000] type=2000 audit(0.516:1): initialized
[    0.524000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.528000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.540000] msgmni has been set to 119
[    0.544000] io scheduler noop registered
[    0.548000] io scheduler deadline registered (default)
[    0.552000] bus: 'spi': add driver 74x164
[    0.556000] bus: 'pci_express': registered
[    0.556000] bus: 'pci': add driver pcieport
[    0.556000] bus: 'pci': driver_probe_device: matched device 0000:00:00.0 with driver pcieport
[    0.556000] bus: 'pci': really_probe: probing driver pcieport with device 0000:00:00.0
[    0.556000] driver: '0000:00:00.0': driver_bound: bound to device 'pcieport'
[    0.556000] bus: 'pci': really_probe: bound device 0000:00:00.0 to driver pcieport
[    0.556000] device: 'ptmx': device_add
[    0.556000] bus: 'platform': add driver bcm63xx_uart
[    0.556000] bus: 'platform': driver_probe_device: matched device bcm63xx_uart.0 with driver bcm63xx_uart
[    0.556000] bus: 'platform': really_probe: probing driver bcm63xx_uart with device bcm63xx_uart.0
[    0.556000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.564000] console [ttyS0] enabled, bootconsole disabled
[    0.576000] device: 'ttyS0': device_add
[    0.576000] driver: 'bcm63xx_uart.0': driver_bound: bound to device 'bcm63xx_uart'
[    0.576000] bus: 'platform': really_probe: bound device bcm63xx_uart.0 to driver bcm63xx_uart
[    0.576000] bus: 'platform': add driver bcm63xx-rng
[    0.576000] device class 'mtd': registering
[    0.576000] device: 'mtd-unmap': device_add
[    0.576000] device: 'mtd-romap': device_add
[    0.580000] device: 'mtd-rwmap': device_add
[    0.580000] bus: 'platform': add driver physmap-flash
[    0.580000] bus: 'spi': add driver m25p80
[    0.580000] bus: 'platform': add driver bcm63xx-spi
[    0.580000] bus: 'platform': add driver bcm63xx-hsspi
[    0.580000] bus: 'platform': driver_probe_device: matched device bcm63xx-hsspi.0 with driver bcm63xx-hsspi
[    0.580000] bus: 'platform': really_probe: probing driver bcm63xx-hsspi with device bcm63xx-hsspi.0
[    0.580000] device: 'spi0': device_add
[    0.580000] device: 'spi0.0': device_add
[    0.580000] bus: 'spi': add device spi0.0
[    0.580000] bus: 'spi': driver_probe_device: matched device spi0.0 with driver m25p80
[    0.580000] bus: 'spi': really_probe: probing driver m25p80 with device spi0.0
[    0.584000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.588000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.592000] bcm63xxpart: CFE boot tag found with version 6 and board type 96328A-1241N
[    0.600000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.608000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 11ff00
[    0.616000] bcm63xxpart: Partition 2 is rootfs offset 130000 and length ec0000
[    0.624000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.632000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.636000] bcm63xxpart: Spare partition is offset 5c0004 and length a2fffc
[    0.644000] 5 bcm63xxpart partitions found on MTD device spi0.0
[    0.652000] Creating 5 MTD partitions on "spi0.0":
[    0.656000] 0x000000000000-0x000000010000 : "CFE"
[    0.660000] device: 'mtd0': device_add
[    0.660000] device: 'mtd0ro': device_add
[    0.664000] device: '31:0': device_add
[    0.664000] device: 'mtdblock0': device_add
[    0.664000] 0x000000010100-0x000000130000 : "kernel"
[    0.668000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.680000] device: 'mtd1': device_add
[    0.684000] device: 'mtd1ro': device_add
[    0.684000] device: '31:1': device_add
[    0.684000] device: 'mtdblock1': device_add
[    0.684000] 0x000000130000-0x000000ff0000 : "rootfs"
[    0.688000] device: 'mtd2': device_add
[    0.692000] device: 'mtd2ro': device_add
[    0.692000] device: '31:2': device_add
[    0.692000] device: 'mtdblock2': device_add
[    0.692000] mtd: partition "rootfs" set to be root filesystem
[    0.700000] mtd: partition "rootfs_data" created automatically, ofs=5C0000, len=A30000 
[    0.708000] 0x0000005c0000-0x000000ff0000 : "rootfs_data"
[    0.712000] device: 'mtd3': device_add
[    0.712000] device: 'mtd3ro': device_add
[    0.712000] device: '31:3': device_add
[    0.716000] device: 'mtdblock3': device_add
[    0.716000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.720000] device: 'mtd4': device_add
[    0.720000] device: 'mtd4ro': device_add
[    0.724000] device: '31:4': device_add
[    0.724000] device: 'mtdblock4': device_add
[    0.724000] 0x000000010000-0x000000ff0000 : "linux"
[    0.728000] device: 'mtd5': device_add
[    0.728000] device: 'mtd5ro': device_add
[    0.732000] device: '31:5': device_add
[    0.732000] device: 'mtdblock5': device_add
[    0.732000] driver: 'spi0.0': driver_bound: bound to device 'm25p80'
[    0.732000] bus: 'spi': really_probe: bound device spi0.0 to driver m25p80
[    0.732000] driver: 'bcm63xx-hsspi.0': driver_bound: bound to device 'bcm63xx-hsspi'
[    0.732000] bus: 'platform': really_probe: bound device bcm63xx-hsspi.0 to driver bcm63xx-hsspi
[    0.732000] bus: 'platform': add driver spi_gpio
[    0.732000] bus: 'mdio_bus': add driver Broadcom BCM63XX (1)
[    0.732000] bus: 'mdio_bus': add driver Broadcom BCM63XX (2)
[    0.736000] bus: 'platform': add driver b53-switch
[    0.736000] bus: 'mdio_bus': add driver Broadcom B53 (1)
[    0.736000] bus: 'mdio_bus': add driver Broadcom B53 (2)
[    0.736000] bus: 'spi': add driver b53-switch
[    0.736000] bus: 'platform': add driver bcm63xx_enet_shared
[    0.736000] bus: 'platform': driver_probe_device: matched device bcm63xx_enet_shared.0 with driver bcm63xx_enet_shared
[    0.736000] bus: 'platform': really_probe: probing driver bcm63xx_enet_shared with device bcm63xx_enet_shared.0
[    0.736000] driver: 'bcm63xx_enet_shared.0': driver_bound: bound to device 'bcm63xx_enet_shared'
[    0.736000] bus: 'platform': really_probe: bound device bcm63xx_enet_shared.0 to driver bcm63xx_enet_shared
[    0.736000] bus: 'platform': add driver bcm63xx_enet
[    0.736000] bus: 'platform': add driver bcm63xx_enetsw
[    0.736000] bus: 'platform': driver_probe_device: matched device bcm63xx_enetsw.0 with driver bcm63xx_enetsw
[    0.736000] bus: 'platform': really_probe: probing driver bcm63xx_enetsw with device bcm63xx_enetsw.0
[    0.768000] device: 'eth0': device_add
[    0.768000] Registering platform device 'b53-switch'. Parent at platform
[    0.768000] device: 'b53-switch': device_add
[    0.768000] bus: 'platform': add device b53-switch
[    0.772000] bus: 'platform': driver_probe_device: matched device b53-switch with driver b53-switch
[    0.772000] bus: 'platform': really_probe: probing driver b53-switch with device b53-switch
[    0.772000] b53_common: found switch: BCM63xx, rev 0
[    0.776000] driver: 'b53-switch': driver_bound: bound to device 'b53-switch'
[    0.776000] bus: 'platform': really_probe: bound device b53-switch to driver b53-switch
[    0.776000] driver: 'bcm63xx_enetsw.0': driver_bound: bound to device 'bcm63xx_enetsw'
[    0.776000] bus: 'platform': really_probe: bound device bcm63xx_enetsw.0 to driver bcm63xx_enetsw
[    0.776000] device class 'usbmon': registering
[    0.780000] device: 'usbmon0': device_add
[    0.780000] bus: 'platform': add driver bcm63xx-wdt
[    0.780000] bus: 'platform': driver_probe_device: matched device bcm63xx-wdt with driver bcm63xx-wdt
[    0.780000] bus: 'platform': really_probe: probing driver bcm63xx-wdt with device bcm63xx-wdt
[    0.780000] device: 'watchdog': device_add
[    0.780000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.788000] driver: 'bcm63xx-wdt': driver_bound: bound to device 'bcm63xx-wdt'
[    0.788000] bus: 'platform': really_probe: bound device bcm63xx-wdt to driver bcm63xx-wdt
[    0.788000] bus: 'platform': add driver leds-gpio
[    0.788000] bus: 'platform': driver_probe_device: matched device leds-gpio.0 with driver leds-gpio
[    0.788000] bus: 'platform': really_probe: probing driver leds-gpio with device leds-gpio.0
[    0.788000] device: '96328A-1241N:green:power': device_add
[    0.788000] Registered led device: 96328A-1241N:green:power
[    0.788000] device: '96328A-1241N:red:alarm': device_add
[    0.788000] Registered led device: 96328A-1241N:red:alarm
[    0.788000] device: '96328A-1241N:green:inet': device_add
[    0.788000] Registered led device: 96328A-1241N:green:inet
[    0.788000] driver: 'leds-gpio.0': driver_bound: bound to device 'leds-gpio'
[    0.788000] bus: 'platform': really_probe: bound device leds-gpio.0 to driver leds-gpio
[    0.792000] TCP: cubic registered
[    0.792000] NET: Registered protocol family 17
[    0.800000] 8021q: 802.1Q VLAN Support v1.8
[    0.804000] device: 'cpu_dma_latency': device_add
[    0.804000] device: 'network_latency': device_add
[    0.804000] device: 'network_throughput': device_add
[    0.816000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.828000] Freeing unused kernel memory: 228k freed
[    4.000000] device class 'input': registering
[    4.136000] Button Hotplug driver version 0.4.1
[    4.160000] bus: 'platform': add driver gpio-keys-polled
[    4.160000] bus: 'platform': driver_probe_device: matched device gpio-keys-polled.0 with driver gpio-keys-polled
[    4.160000] bus: 'platform': really_probe: probing driver gpio-keys-polled with device gpio-keys-polled.0
[    4.160000] device: 'input0': device_add
[    4.160000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[    4.172000] driver: 'gpio-keys-polled.0': driver_bound: bound to device 'gpio-keys-polled'
[    4.172000] bus: 'platform': really_probe: bound device gpio-keys-polled.0 to driver gpio-keys-polled
[    7.784000] jffs2: notice: (351) jffs2_build_xattr_subsystem: complete building xattr subsystem, 20 of xdatum (0 unchecked, 19 orphan) and 26 of xref (0 dead, 19 orphan) found.
[   11.212000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[   11.220000] Backport based on wireless-testing.git master-2013-02-22
[   11.228000] compat.git: wireless-testing.git
[   11.284000] device class 'ieee80211': registering
[   11.284000] Registering platform device 'regulatory.0'. Parent at platform
[   11.284000] device: 'regulatory.0': device_add
[   11.284000] bus: 'platform': add device regulatory.0
[   11.288000] cfg80211: Calling CRDA to update world regulatory domain
[   11.292000] cfg80211: World regulatory domain updated:
[   11.300000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   11.308000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.316000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   11.324000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   11.332000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.340000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.696000] nls_base: exports duplicate symbol load_nls (owned by kernel)
[   11.936000] device class 'scsi_host': registering
[   11.936000] bus: 'scsi': registered
[   11.936000] device class 'scsi_device': registering
[   11.936000] SCSI subsystem initialized
[   12.040000] usb_common: exports duplicate symbol usb_speed_string (owned by kernel)
[   12.276000] usbcore: exports duplicate symbol __usb_get_extra_descriptor (owned by kernel)
[   13.036000] bus: 'usb': add driver r92su
[   13.036000] usbcore: registered new interface driver r92su
[   14.080000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.356000] device class 'scsi_disk': registering
[   14.356000] bus: 'scsi': add driver sd
[   14.548000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.556000] ehci_hcd: block sizes: qh 60 qtd 96 itd 160 sitd 96
[   14.556000] bus: 'platform': add driver bcm63xx_ehci
[   14.556000] bus: 'platform': driver_probe_device: matched device bcm63xx_ehci.0 with driver bcm63xx_ehci
[   14.556000] bus: 'platform': really_probe: probing driver bcm63xx_ehci with device bcm63xx_ehci.0
[   14.660000] bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
[   14.664000] device: 'usbmon1': device_add
[   14.664000] bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus number 1
[   14.676000] bcm63xx_ehci bcm63xx_ehci.0: park 0
[   14.676000] bcm63xx_ehci bcm63xx_ehci.0: reset command 0080b02  park=3 ithresh=8 period=1024 Reset HALT
[   14.676000] bcm63xx_ehci bcm63xx_ehci.0: ...powerdown ports...
[   14.700000] bcm63xx_ehci bcm63xx_ehci.0: irq 50, io mem 0xb0002500
[   14.704000] bcm63xx_ehci bcm63xx_ehci.0: init command 0010005 (park)=0 ithresh=1 period=512 RUN
[   14.716000] bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00, overcurrent ignored
[   14.724000] usb usb1: default language 0x0409
[   14.724000] usb usb1: udev 1, busnum 1, minor = 0
[   14.724000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   14.728000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   14.736000] usb usb1: Product: BCM63XX integrated EHCI controller
[   14.744000] usb usb1: Manufacturer: Linux 3.7.9 ehci_hcd
[   14.748000] usb usb1: SerialNumber: bcm63xx
[   14.752000] device: 'usb1': device_add
[   14.752000] bus: 'usb': add device usb1
[   14.752000] bus: 'usb': driver_probe_device: matched device usb1 with driver usb
[   14.752000] bus: 'usb': really_probe: probing driver usb with device usb1
[   14.752000] usb usb1: usb_probe_device
[   14.752000] usb usb1: configuration #1 chosen from 1 choice
[   14.752000] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[   14.752000] device: '1-0:1.0': device_add
[   14.752000] bus: 'usb': add device 1-0:1.0
[   14.756000] bus: 'usb': driver_probe_device: matched device 1-0:1.0 with driver hub
[   14.756000] bus: 'usb': really_probe: probing driver hub with device 1-0:1.0
[   14.756000] hub 1-0:1.0: usb_probe_interface
[   14.756000] hub 1-0:1.0: usb_probe_interface - got id
[   14.756000] hub 1-0:1.0: USB hub found
[   14.760000] hub 1-0:1.0: 1 port detected
[   14.764000] hub 1-0:1.0: standalone hub
[   14.764000] hub 1-0:1.0: individual port power switching
[   14.764000] hub 1-0:1.0: individual port over-current protection
[   14.764000] hub 1-0:1.0: power on to power good time: 20ms
[   14.764000] hub 1-0:1.0: local power source is good
[   14.764000] device: 'port1': device_add
[   14.764000] hub 1-0:1.0: enabling power on all ports
[   14.764000] driver: '1-0:1.0': driver_bound: bound to device 'hub'
[   14.764000] bus: 'usb': really_probe: bound device 1-0:1.0 to driver hub
[   14.764000] device: 'ep_81': device_add
[   14.764000] driver: 'usb1': driver_bound: bound to device 'usb'
[   14.764000] bus: 'usb': really_probe: bound device usb1 to driver usb
[   14.764000] device: 'ep_00': device_add
[   14.764000] driver: 'bcm63xx_ehci.0': driver_bound: bound to device 'bcm63xx_ehci'
[   14.764000] bus: 'platform': really_probe: bound device bcm63xx_ehci.0 to driver bcm63xx_ehci
[   14.764000] bus: 'pci': add driver ehci_hcd
[   14.764000] bus: 'platform': add driver ehci-platform
[   14.804000] nf_conntrack version 0.5.0 (959 buckets, 3836 max)
[   14.864000] bcm63xx_ehci bcm63xx_ehci.0: GetStatus port:1 status 001803 0  ACK POWER sig=j CSC CONNECT
[   14.864000] hub 1-0:1.0: port 1: status 0501 change 0001
[   15.016000] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[   15.016000] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[   15.160000] bcm63xx_ehci bcm63xx_ehci.0: port 1 reset complete, port enabled
[   15.160000] bcm63xx_ehci bcm63xx_ehci.0: GetStatus port:1 status 001005 0  ACK POWER sig=se0 PE CONNECT
[   15.252000] usb 1-1: new high-speed USB device number 2 using bcm63xx_ehci
[   15.316000] bcm63xx_ehci bcm63xx_ehci.0: port 1 reset complete, port enabled
[   15.316000] bcm63xx_ehci bcm63xx_ehci.0: GetStatus port:1 status 001005 0  ACK POWER sig=se0 PE CONNECT
[   15.392000] usb 1-1: default language 0x0409
[   15.392000] usb 1-1: udev 2, busnum 1, minor = 1
[   15.392000] usb 1-1: New USB device found, idVendor=0bda, idProduct=8171
[   15.400000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   15.408000] usb 1-1: Product: RTL8188S WLAN Adapter 
[   15.412000] usb 1-1: Manufacturer: Manufacturer Realtek 
[   15.420000] usb 1-1: SerialNumber: 00e04c000001
[   15.424000] device: '1-1': device_add
[   15.424000] bus: 'usb': add device 1-1
[   15.424000] bus: 'usb': driver_probe_device: matched device 1-1 with driver usb
[   15.424000] bus: 'usb': really_probe: probing driver usb with device 1-1
[   15.424000] usb 1-1: usb_probe_device
[   15.424000] usb 1-1: configuration #1 chosen from 1 choice
[   15.440000] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[   15.440000] device: '1-1:1.0': device_add
[   15.440000] bus: 'usb': add device 1-1:1.0
[   15.440000] bus: 'usb': driver_probe_device: matched device 1-1:1.0 with driver r92su
[   15.440000] bus: 'usb': really_probe: probing driver r92su with device 1-1:1.0
[   15.440000] r92su 1-1:1.0: usb_probe_interface
[   15.440000] r92su 1-1:1.0: usb_probe_interface - got id
[   15.620000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   15.624000] ohci_hcd: block sizes: ed 64 td 64
[   15.624000] bus: 'platform': add driver bcm63xx_ohci
[   15.624000] bus: 'platform': driver_probe_device: matched device bcm63xx_ohci.0 with driver bcm63xx_ohci
[   15.624000] bus: 'platform': really_probe: probing driver bcm63xx_ohci with device bcm63xx_ohci.0
[   15.728000] bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
[   15.732000] device: 'usbmon2': device_add
[   15.732000] bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 2
[   15.740000] bcm63xx_ohci bcm63xx_ohci.0: irq 49, io mem 0xb0002600
[   15.748000] bcm63xx_ohci bcm63xx_ohci.0: created debug files
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: OHCI controller state
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: OHCI 1.0, NO legacy support registers, rh state running
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: control 0x083 HCFS=operational CBSR=3
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: cmdstatus 0x00000 SOC=0
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: intrstatus 0x00000004 SF
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: intrenable 0x8000005a MIE RHSC UE RD WDH
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: hcca frame #0005
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: roothub.a 02000201 POTPGT=2 NPS NDP=1(1)
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: roothub.b 00000000 PPCM=0000 DR=0000
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: roothub.status 00008000 DRWE
[   15.808000] bcm63xx_ohci bcm63xx_ohci.0: roothub.portstatus [0] 0x00000100 PPS
[   15.808000] usb usb2: default language 0x0409
[   15.808000] usb usb2: udev 1, busnum 2, minor = 128
[   15.808000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[   15.812000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.820000] usb usb2: Product: BCM63XX integrated OHCI controller
[   15.828000] usb usb2: Manufacturer: Linux 3.7.9 ohci_hcd
[   15.832000] usb usb2: SerialNumber: bcm63xx
[   15.836000] device: 'usb2': device_add
[   15.836000] bus: 'usb': add device usb2
[   15.836000] bus: 'usb': driver_probe_device: matched device usb2 with driver usb
[   15.836000] bus: 'usb': really_probe: probing driver usb with device usb2
[   15.836000] usb usb2: usb_probe_device
[   15.836000] usb usb2: configuration #1 chosen from 1 choice
[   15.836000] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[   15.840000] device: '2-0:1.0': device_add
[   15.840000] bus: 'usb': add device 2-0:1.0
[   15.840000] bus: 'usb': driver_probe_device: matched device 2-0:1.0 with driver hub
[   15.840000] bus: 'usb': really_probe: probing driver hub with device 2-0:1.0
[   15.840000] hub 2-0:1.0: usb_probe_interface
[   15.840000] hub 2-0:1.0: usb_probe_interface - got id
[   15.840000] hub 2-0:1.0: USB hub found
[   15.844000] hub 2-0:1.0: 1 port detected
[   15.848000] hub 2-0:1.0: standalone hub
[   15.848000] hub 2-0:1.0: ganged power switching
[   15.848000] hub 2-0:1.0: global over-current protection
[   15.848000] hub 2-0:1.0: power on to power good time: 4ms
[   15.848000] hub 2-0:1.0: local power source is good
[   15.848000] hub 2-0:1.0: no over-current condition exists
[   15.848000] device: 'port1': device_add
[   15.848000] hub 2-0:1.0: enabling power on all ports
[   15.848000] driver: '2-0:1.0': driver_bound: bound to device 'hub'
[   15.848000] bus: 'usb': really_probe: bound device 2-0:1.0 to driver hub
[   15.848000] device: 'ep_81': device_add
[   15.848000] driver: 'usb2': driver_bound: bound to device 'usb'
[   15.848000] bus: 'usb': really_probe: bound device usb2 to driver usb
[   15.848000] device: 'ep_00': device_add
[   15.848000] driver: 'bcm63xx_ohci.0': driver_bound: bound to device 'bcm63xx_ohci'
[   15.848000] bus: 'platform': really_probe: bound device bcm63xx_ohci.0 to driver bcm63xx_ohci
[   15.848000] bus: 'pci': add driver ohci_hcd
[   15.848000] bus: 'platform': add driver ohci-platform
[   15.956000] Initializing USB Mass Storage driver...
[   15.960000] bus: 'usb': add driver usb-storage
[   15.964000] usbcore: registered new interface driver usb-storage
[   15.968000] USB Mass Storage support registered.
[   16.056000] device: 'phy0': device_add
[   16.056000] device: 'wlan0': device_add
[   16.056000] r92su 1-1:1.0: Realtek RTL81XX rev C CUT, rf:1T1R is registered as 'phy0'.
[   16.064000] driver: '1-1:1.0': driver_bound: bound to device 'r92su'
[   16.064000] bus: 'usb': really_probe: bound device 1-1:1.0 to driver r92su
[   16.064000] device: 'ep_83': device_add
[   16.064000] device: 'ep_04': device_add
[   16.064000] device: 'ep_06': device_add
[   16.064000] device: 'ep_0d': device_add
[   16.064000] driver: '1-1': driver_bound: bound to device 'usb'
[   16.064000] bus: 'usb': really_probe: bound device 1-1 to driver usb
[   16.064000] device: 'ep_00': device_add
[   16.064000] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[   20.476000] device: 'br-lan': device_add
[   20.488000] device: 'eth0.1': device_add
[   20.488000] device eth0.1 entered promiscuous mode
[   20.492000] device eth0 entered promiscuous mode
[   20.500000] br-lan: port 1(eth0.1) entered forwarding state
[   20.508000] br-lan: port 1(eth0.1) entered forwarding state
[   22.512000] br-lan: port 1(eth0.1) entered forwarding state
[   26.180000] __allocate_fw_buf: fw-rtlwifi/rtl8712u.bin buf=83b52500
[   26.188000] usb 1-1: firmware: direct-loading firmware rtlwifi/rtl8712u.bin
[   26.188000] fw_set_page_data: fw-rtlwifi/rtl8712u.bin buf=83b52500 data=c03bb000 size=122328
[   26.188000] ieee80211 phy0: firmware version: 0x11ec
[   26.844000] ieee80211 phy0: c2h event:13 len:66
[   26.844000] ieee80211 phy0: fwdbg: RTL8712 FW version 0.0.1# 一 5月 31 15:25:39 CST 2010  SVN: 242
[   26.856000] ieee80211 phy0: c2h event:13 len:22
[   26.856000] ieee80211 phy0: fwdbg: Chip Version:00000002
[   26.868000] ieee80211 phy0: c2h event:13 len:30
[   26.868000] ieee80211 phy0: fwdbg: HCI type: 00000012(00000004)
[   26.880000] ieee80211 phy0: c2h event:13 len:50
[   26.880000] ieee80211 phy0: fwdbg: rf_cofig: 00000011(000000ff, 00000000, 00000000)
[   26.892000] ieee80211 phy0: c2h event:13 len:44
[   26.892000] ieee80211 phy0: fwdbg: mp_mode: 00000000(00000000), IQK: 400300fd
[   26.904000] ieee80211 phy0: c2h event:13 len:30
[   26.904000] ieee80211 phy0: fwdbg: vcs type: 00000002(00000001)
[   26.916000] ieee80211 phy0: c2h event:13 len:36
[   26.916000] ieee80211 phy0: fwdbg: 32k calibra: 776, 32K TSF: 0000002a
[   26.928000] ieee80211 phy0: c2h event:13 len:49
[   26.928000] ieee80211 phy0: fwdbg: target thermal: 0000000e,  bt_coexist: 00000000
[   26.948000] ieee80211 phy0: c2h event:13 len:44
[   26.948000] ieee80211 phy0: fwdbg: ->(00000001, 00000001, 00000001, 00000000)
[   26.972000] ieee80211 phy0: c2h event:13 len:22
[   26.972000] ieee80211 phy0: fwdbg: set opmode: 00000000
[   26.980000] ieee80211 phy0: c2h event:13 len:16
[   26.980000] ieee80211 phy0: fwdbg: Update MacAddr
[   28.888000] ieee80211 phy0: c2h event:13 len:16
[   28.888000] ieee80211 phy0: fwdbg: get survey cmd
[   29.148000] ieee80211 phy0: c2h event:8 len:174
[   29.920000] ieee80211 phy0: c2h event:8 len:332
[   30.156000] ieee80211 phy0: c2h event:8 len:522
[   30.532000] ieee80211 phy0: c2h event:9 len:4
[   30.536000] ieee80211 phy0: c2h event:13 len:33
[   30.536000] ieee80211 phy0: fwdbg: survey done(00000003, 00000000)
[   30.552000] ieee80211 phy0: c2h event:13 len:19
[   30.552000] ieee80211 phy0: fwdbg: setAuth: 00000002
[   30.560000] ieee80211 phy0: c2h event:13 len:14
[   30.560000] ieee80211 phy0: fwdbg: get join cmd
[   30.852000] ieee80211 phy0: c2h event:13 len:47
[   30.852000] ieee80211 phy0: fwdbg: cur channel: 0000000b, bcn interval: 00000064
[   30.944000] ieee80211 phy0: c2h event:13 len:20
[   30.944000] ieee80211 phy0: fwdbg: link to Atheros AP
[   30.952000] ieee80211 phy0: c2h event:13 len:12
[   30.952000] ieee80211 phy0: fwdbg: issue auth
[   30.964000] ieee80211 phy0: c2h event:13 len:26
[   30.964000] ieee80211 phy0: fwdbg: issue assocreq(00000047)
[   30.972000] ieee80211 phy0: c2h event:13 len:35
[   30.972000] ieee80211 phy0: fwdbg: WMM(00000000): 00000000, 0000a425
[   30.984000] ieee80211 phy0: c2h event:13 len:35
[   30.984000] ieee80211 phy0: fwdbg: WMM(00000001): 00000000, 0000a449
[   30.996000] ieee80211 phy0: c2h event:13 len:35
[   30.996000] ieee80211 phy0: fwdbg: WMM(00000002): 00000000, 005e431c
[   31.008000] ieee80211 phy0: c2h event:13 len:35
[   31.008000] ieee80211 phy0: fwdbg: WMM(00000003): 00000000, 002f321c
[   31.020000] ieee80211 phy0: c2h event:13 len:41
[   31.020000] ieee80211 phy0: fwdbg: mac id #5: 0000005b, 000fffff, 00000000
[   31.032000] ieee80211 phy0: c2h event:a len:215
[   31.036000] ieee80211 phy0: c2h event:13 len:30
[   31.036000] ieee80211 phy0: fwdbg: join res(00000003, 000000d7)
[   32.180000] ieee80211 phy0: c2h event:13 len:16
[   32.180000] ieee80211 phy0: fwdbg: rcv set_stakey
[   47.900000] ieee80211 phy0: c2h event:19 len:10
[   47.908000] ieee80211 phy0: c2h event:13 len:45
[   47.908000] ieee80211 phy0: fwdbg: issue action: 00000003, 00000001, 00000000 
[   49.004000] ieee80211 phy0: c2h event:13 len:45
[   49.004000] ieee80211 phy0: fwdbg: issue action: 00000003, 00000000, 00000000 
[   49.016000] ieee80211 phy0: c2h event:13 len:21
[   49.016000] ieee80211 phy0: fwdbg: ADDBA RSP: 00000001
[   49.132000] ieee80211 phy0: c2h event:13 len:45
[   49.132000] ieee80211 phy0: fwdbg: issue action: 00000003, 00000000, 00000006 
[   49.144000] ieee80211 phy0: c2h event:13 len:21
[   49.144000] ieee80211 phy0: fwdbg: ADDBA RSP: 00000041
[  200.480000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
[  202.488000] bcm63xx_enetsw bcm63xx_enetsw.0: link DOWN on Port 4
[  206.492000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 4, 100Mbps, full-duplex
root@OpenWrt:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=2.475 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=2.662 ms
64 bytes from 192.168.1.1: seq=2 ttl=64 time=2.231 ms
64 bytes from 192.168.1.1: seq=3 ttl=64 time=2.223 ms
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 2.223/2.397/2.662 ms
root@OpenWrt:~# ping www.google.com
PING www.google.com (173.194.34.48): 56 data bytes
64 bytes from 173.194.34.48: seq=0 ttl=53 time=76.901 ms
64 bytes from 173.194.34.48: seq=1 ttl=53 time=76.068 ms
64 bytes from 173.194.34.48: seq=2 ttl=53 time=78.014 ms
64 bytes from 173.194.34.48: seq=3 ttl=53 time=76.105 ms
--- www.google.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 76.068/76.882/78.014 ms
root@OpenWrt:~# exit
Connection to 192.168.2.1 closed. 

Still a lot of debug in order to catch problems, but all the tests performed without problems.
The commits here: https://github.com/chunkeey/rtl8192su/commits/master
Also the TODO list is important: https://github.com/chunkeey/rtl8192su/blob/master/TODO

The patch of the first post is completely outdated so as soon as I could a better patch will be made.

(Last edited by Pteridium on 7 Apr 2013, 17:41)

The developers made a lot of improvements  and now the r92su driver is more reliable and show statistics.
The driver is stable: for two days the Comtrend AR5381u was powered on and each time i've tried to connect via ssh was successful.
Of course the TODO list is getting smaller: https://github.com/chunkeey/rtl8192su/blob/master/TODO

(Last edited by Pteridium on 10 Apr 2013, 16:39)

Thanks for you good work! But where is the r92su.patch?

This is the "some kind of patch": http://www.mediafire.com/?cbhn6fcmlp6a7z1
There are two files inside:
- r92su.diff: decompress it in openwrt root directory and execute "patch -p0 r92su.diff".
- 992-rtl8192su.patch: this file must be copied in (openwrt_dir)/packages/mac80211/patches.
This is not the right way to make a patch for this driver but, at least, works. The original idea was make a package like acx-mac80211, but i have not enough skills. :-(

The developer is chunkeey, and he is doing the hard job: https://github.com/chunkeey/rtl8192su

Edit: since trunk rev. 36448 the patch for ieee80211.h is not needed, so a "new" patch would be a good idea.

(Last edited by Pteridium on 26 Apr 2013, 14:27)

Thanks for your work a lot! Wish the patch works with ralink cpu.

The discussion might have continued from here.