[Nexus 7 (2013) Q&A] binkybear:
Hello all,

I'm trying to get wireless usb devices to work on the Nexus 7 (2013) flo/deb. I've built a kernel with wiress usb device support (ath9k_htc/rtl8187) and added firmware. It's based off the latest CM and devices are being recognized. However, it's not showing up under wlan1. Could anyone help with figuring out where the problem might be? Here are the dmesg logs:

[ 1456.991302] PM: suspend exit 2013-10-14 19:16:54.020104957 UTC
[ 1456.991363] suspend: exit suspend, ret = 0 (2013-10-14 19:16:54.020196461 UTC)
[ 1457.013336] request_suspend_state: wakeup (3->0) at 1456985326827 (2013-10-14 19:16:54.042153234 UTC)
[ 1457.013488] late_resume: call handlers
[ 1457.025329] [ektf3k]:[elan] elan_ktf3k_ts_resume: enter
[ 1457.026061] [ektf3k]:[elan] dump repsponse: 58
[ 1457.026153] late_resume: done
[ 1457.027709] mipi_dsi_panel_power+, on=1
[ 1457.069061] bq27541_get_psp status: Not charging ret= 0x0101
[ 1457.069915] bq27541_get_psp status: Not charging ret= 0x0101
[ 1457.070770] bq27541_get_psp voltage_now= 4204000 uV
[ 1457.071624] bq27541_get_capacity = 96% ret= 95
[ 1457.072448] bq27541_get_psp temperature= 229 (0.1\xffffffa2XC)
[ 1457.074127] bq27541_get_psp current = -9 mA
[ 1457.076721] bq27541_get_capacity = 96% ret= 95
[ 1457.080841] bq27541_get_psp voltage_now= 4204000 uV
[ 1457.082427] bq27541_get_psp temperature= 229 (0.1\xffffffa2XC)
[ 1457.083343] bq27541_get_psp status: Not charging ret= 0x0101
[ 1457.108123] mipi_dsi_panel_power-
[ 1457.114318] mipi_JDI_lcd_on+
[ 1457.114318] mipi_JDI_lcd_on, JDI display on command+, command bl
[ 1457.148529] gpio_keys: Released KEY_POWER
[ 1457.259948] mipi_JDI_lcd_on, JDI display on command-
[ 1457.259948] mipi_JDI_lcd_on-
[ 1457.273559] EXT_COMMON: hdmi_common_wta_hpd: '1' (unchanged)
[ 1457.285797] mdp4_overlay_mdp_perf_upd mdp clk is changed [1] from 0 to 200000000
[ 1457.378265] mipi_JDI_set_backlight: pwm enable
[ 1457.461456] wlan: [921:E :SME] sme_QosPmcDeviceStateUpdateInd: 7214: nothing to process in PMC state 6
[ 1457.461700] wlan: [1004:E :HDD] hdd_conf_hostarpoffload:
[ 1457.461700]
[ 1473.598663] id_pin_irq_work_function: APQ_OTG_ID_PIN is low : Host mode
[ 1473.600891] msm_otg msm_otg: USB exited from low power mode
[ 1473.613067] vbus_otg is NULL.
[ 1473.714599] smb345_charger: [smb345_otg_status] otg function: on
[ 1473.722991] msm_otg msm_otg: phy_reset: success
[ 1473.723937] smb345_charger: [smb345_inok_isr] VBUS_DET = L
[ 1473.831237] Host mode: Set DC level as 0x61 for deb.
[ 1473.833618] msm_hsusb_host msm_hsusb_host: Qualcomm On-Chip EHCI Host Controller
[ 1473.834045] msm_hsusb_host msm_hsusb_host: new USB bus registered, assigned bus number 2
[ 1473.860137] msm_hsusb_host msm_hsusb_host: irq 132, io mem 0x12500000
[ 1473.879516] msm_hsusb_host msm_hsusb_host: USB 2.0 started, EHCI 1.00
[ 1473.880004] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1473.880371] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1473.880737] usb usb2: Product: Qualcomm On-Chip EHCI Host Controller
[ 1473.880950] usb usb2: Manufacturer: Linux 3.4.0-g56840ae ehci_hcd
[ 1473.881317] usb usb2: SerialNumber: msm_hsusb_host
[ 1473.890472] hub 2-0:1.0: USB hub found
[ 1473.890747] hub 2-0:1.0: 1 port detected
[ 1474.209442] usb 2-1: new high-speed USB device number 2 using msm_hsusb_host
[ 1474.340423] notifying plugin
[ 1474.384582] usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271
[ 1474.384826] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 1474.385162] usb 2-1: Product: USB2.0 WLAN
[ 1474.385375] usb 2-1: Manufacturer: ATHEROS
[ 1474.385711] usb 2-1: SerialNumber: 12345
[ 1494.828704] mipi_JDI_set_backlight: pwm disable
[ 1494.920135] mipi_JDI_lcd_off+
[ 1494.920165] mipi_JDI_lcd_off, JDI display off command+
[ 1495.013153] wlan: [921:E :SME] sme_QosPmcDeviceStateUpdateInd: 7214: nothing to process in PMC state 6
[ 1495.013214] wlan: [1004:E :HDD] hdd_conf_hostarpoffload:
[ 1495.013214]
[ 1495.013214] wlan: [1004:E :HDD] hdd_conf_hostarpoffload: Enabled
[ 1495.013214]
[ 1495.038787] mipi_JDI_lcd_off, JDI display off command-
[ 1495.038787] mipi_JDI_lcd_off-
[ 1495.038818] mipi_dsi_panel_power+, on=0
[ 1495.130493] mipi_dsi_panel_power-
[ 1495.137207] EXT_COMMON: hdmi_common_wta_hpd: '1' (unchanged)
[ 1495.138244] request_suspend_state: sleep (0->3) at 1495109608988 (2013-10-14 19:17:32.166435395 UTC)
[ 1495.138366] early_suspend: call handlers
[ 1495.138488] [ektf3k]:[elan] elan_ktf3k_ts_suspend: enter
[ 1495.139678] active wake lock sns_async_ev_wakelock
[ 1495.139678] PM: Syncing filesystems...
[ 1495.147277] sync done.
[ 1496.337799] suspend: enter suspend
[ 1496.338104] PM: suspend entry 2013-10-14 19:17:33.366295013 UTC
[ 1496.338500] PM: Preparing system for mem sleep
[ 1496.338623] PM: Syncing filesystems...
[ 1496.363891] sync done.
[ 1496.410156] Freezing user space processes ... (elapsed 0.05 seconds) done.
[ 1496.461547] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 1496.481689] PM: Entering mem sleep
[ 1496.481689] Suspending console(s) (use no_console_suspend to debug)
[ 1496.489349] msm_fb_ext_suspend: Turning off HPD circuitry
[ 1496.491088] smb345_suspend+
[ 1496.491088] smb345_suspend-
[ 1496.506896] msm_otg msm_otg: USB in low power mode
[ 1496.507781] PM: suspend of devices complete after 23.498 msecs
[ 1496.508666] PM: late suspend of devices complete after 0.885 msecs
[ 1496.511169] power_suspend_late return 0
[ 1496.511169] PM: noirq suspend of devices complete after 2.471 msecs
[ 1496.511199] Disabling non-boot CPUs ...
[ 1496.511444] msm_pm_enter
[ 1496.511444] msm_pm_enter: power collapse
[ 1496.511444] msm_mpm_irqs_detectable: cannot monitor 000000,00000000,00000000,00000000,00000000,00000020,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
[ 1496.511444] msm_pm_enter: return
[ 1496.513671] PM: noirq resume of devices complete after 1.556 msecs
[ 1496.515258] wakeup wake lock: alarm_rtc
[ 1496.516204] PM: early resume of devices complete after 0.823 msecs
[ 1496.520080] hub 2-0:1.0: hub_port_status failed (err = -108)
[ 1496.520111] hub 2-0:1.0: cannot disable port 1 (err = -108)
[ 1496.521026] smb345_resume+
[ 1496.521057] smb345_resume-
[ 1496.522003] msm_fb_ext_resume: Turning on HPD circuitry
[ 1496.526336] PM: resume of devices complete after 10.131 msecs
[ 1496.529266] PM: Finishing wakeup.
[ 1496.529266] Restarting tasks ...
[ 1496.538970] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1496.539184] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1496.539276] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1496.539367] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1496.546356] done.
[ 1496.546569] PM: suspend exit 2013-10-14 19:17:38.023832156 UTC
[ 1496.546661] suspend: exit suspend, ret = 0 (2013-10-14 19:17:38.023923685 UTC)
[ 1496.546783] active wake lock PowerManagerService.WakeLocks
[ 1496.546905] suspend: abort suspend
[ 1496.620147] bq27541_get_psp status: Not charging ret= 0x0101
[ 1496.620819] bq27541_get_psp status: Not charging ret= 0x0101
[ 1496.621887] bq27541_get_psp voltage_now= 4197000 uV
[ 1496.622497] bq27541_get_capacity = 96% ret= 95
[ 1496.623168] bq27541_get_psp temperature= 230 (0.1\xffffffa2XC)
[ 1496.624389] bq27541_get_psp current = -85 mA
[ 1496.626495] bq27541_get_capacity = 96% ret= 95
[ 1496.627227] bq27541_get_psp voltage_now= 4197000 uV
[ 1496.638122] bq27541_get_psp temperature= 230 (0.1\xffffffa2XC)
[ 1496.638915] bq27541_get_psp status: Not charging ret= 0x0101
[ 1496.882568] suspend: enter suspend
[ 1496.882751] PM: suspend entry 2013-10-14 19:17:38.359820384 UTC
[ 1496.882842] PM: Preparing system for mem sleep
[ 1496.882873] PM: Syncing filesystems...
[ 1496.891632] Freezing user space processes ...
[ 1496.905517] sync done.
[ 1496.920227] (elapsed 0.02 seconds) done.
[ 1496.920410] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[ 1496.940368] PM: Entering mem sleep
[ 1496.940368] Suspending console(s) (use no_console_suspend to debug)
[ 1496.946990] msm_fb_ext_suspend: Turning off HPD circuitry
[ 1496.948547] smb345_suspend+
[ 1496.948577] smb345_suspend-
[ 1496.964752] PM: suspend of devices complete after 21.936 msecs
[ 1496.965545] PM: late suspend of devices complete after 0.762 msecs
[ 1496.967864] power_suspend_late return 0
[ 1496.967895] PM: noirq suspend of devices complete after 2.318 msecs
[ 1496.967895] Disabling non-boot CPUs ...
[ 1497.001037] msm_pm_enter
[ 1497.001037] msm_pm_enter: power collapse
[ 1497.001037] msm_mpm_irqs_detectable: cannot monitor 000000,00000000,00000000,00000000,00000000,00000020,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
[ 1497.001037] msm_pm_enter: return
[ 1497.001708] Enabling non-boot CPUs ...
[ 1497.006317] CPU1 is up
[ 1497.014404] CPU2 is up
[ 1497.024475] CPU3 is up
[ 1497.025970] PM: noirq resume of devices complete after 1.464 msecs
[ 1497.028442] PM: early resume of devices complete after 0.732 msecs
[ 1497.029724] wakeup wake lock: qcom_rx_wakelock
[ 1497.030059] smb345_resume+
[ 1497.030090] smb345_resume-
[ 1497.030944] msm_fb_ext_resume: Turning on HPD circuitry
[ 1497.034088] PM: resume of devices complete after 5.580 msecs
[ 1497.038269] PM: Finishing wakeup.
[ 1497.038269] Restarting tasks ...
[ 1497.040008] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1497.040191] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1497.040283] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1497.040405] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1497.046295] done.
[ 1497.046478] PM: suspend exit 2013-10-14 19:17:43.014942221 UTC
[ 1497.046813] suspend: exit suspend, ret = 0 (2013-10-14 19:17:43.015277658 UTC)
[ 1497.079406] wake lock qcom_rx_wakelock, expired
[ 1497.079711] suspend: enter suspend
[ 1497.079864] PM: suspend entry 2013-10-14 19:17:43.048302022 UTC
[ 1497.079956] PM: Preparing system for mem sleep
[ 1497.080169] PM: Syncing filesystems...
[ 1497.088012] sync done.
[ 1497.134063] Freezing user space processes ...
[ 1497.139862] bq27541_get_psp status: Not charging ret= 0x0101
[ 1497.140594] bq27541_get_psp status: Not charging ret= 0x0101
[ 1497.141265] bq27541_get_psp voltage_now= 4197000 uV
[ 1497.142028] active wake lock power-supply
[ 1497.142150]
[ 1497.142211] Freezing of user space aborted
[ 1497.142272]
[ 1497.142333] Restarting tasks ...
[ 1497.142364] bq27541_get_capacity = 96% ret= 95
[ 1497.143768] bq27541_get_psp temperature= 230 (0.1\xffffffa2XC)
[ 1497.144988] bq27541_get_psp current = -85 mA
[ 1497.146545] bq27541_get_capacity = 96% ret= 95
[ 1497.147247] bq27541_get_psp voltage_now= 4197000 uV
[ 1497.148162] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1497.148254] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1497.148590] QSEECOM: qseecom_receive_req: Interrupted: exiting wait_rcv_req loop
[ 1497.148742] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 1497.148742] bq27541_get_psp temperature= 230 (0.1\xffffffa2XC)
[ 1497.149322] done.
[ 1497.149719] PM: suspend exit 2013-10-14 19:17:43.118107406 UTC
[ 1497.149841] suspend: exit suspend, ret = -16 (2013-10-14 19:17:43.118229388 UTC)
[ 1497.149993] active wake lock qcom_rx_wakelock, time left 4
[ 1497.150085] suspend: abort suspend
[ 1497.151611] bq27541_get_psp status: Not charging ret= 0x0101
[ 1497.189300] wake lock qcom_rx_wakelock, expired
[ 1497.189636] suspend: enter suspend
[ 1497.189636] PM: Syncing filesystems...
[ 1497.189758] PM: suspend entry 2013-10-14 19:17:43.158118797 UTC
[ 1497.189880] PM: Preparing system for mem sleep
[ 1497.190002] Freezing user space processes ...
[ 1497.196289] active wake lock qcom_rx_wakelock, time left 5
[ 1497.196441]
[ 1497.196502] Freezing of user space aborted
[ 1497.196563]
[ 1497.196624] Restarting tasks ...

I've also tried integrating the patch from the Nexus 4 in case it wasn't getting enough power. Still nothing. Any advice or direction would be much appreciated.