[Nexus 5 Q&A, Help & Troubleshooting] DarkAura:
Tried setting the mac address and deleting wpa_supplicant. Wifi does starts up and drops. After a few drops, it reverts back to "Turning on..."

Here are the dmesg logs. I see SDCC-CORE: Register Dumps over and over again.

<3>[ 224.802934] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.803065] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.803142] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.803277] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.810734] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.810832] mmc0: SDCC PWR is ON

<3>[ 224.810884] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.810936] mmc0: SDCC irq is enabled

<3>[ 224.811028] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.811082] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.811176] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.811268] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.811321] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.811412] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.811464] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.811556] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.811606] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.811695] == SDCC Test Bus Debug ==

<3>[ 224.811747] TestBus(0) = 0x00008000

<3>[ 224.811841] TestBus(1) = 0x00000080

<3>[ 224.811932] TestBus(2) = 0x00006010

<3>[ 224.811982] TestBus(3) = 0x018001ff

<3>[ 224.812033] TestBus(4) = 0x00063fd0

<3>[ 224.812122] TestBus(5) = 0x0004c030

<3>[ 224.812172] TestBus(6) = 0x00000000

<3>[ 224.812222] TestBus(7) = 0x000003ff

<3>[ 224.812313] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.812365] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.812459] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.812552] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.817425] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.817478] mmc0: SDCC PWR is ON

<3>[ 224.817530] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.817621] mmc0: SDCC irq is enabled

<3>[ 224.817673] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.817767] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.817819] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.817873] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.817967] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.818020] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.818113] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.818218] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.818316] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.818369] == SDCC Test Bus Debug ==

<3>[ 224.818463] TestBus(0) = 0x00008000

<3>[ 224.818653] TestBus(1) = 0x00000080

<3>[ 224.818750] TestBus(2) = 0x00006010

<3>[ 224.818803] TestBus(3) = 0x018001ff

<3>[ 224.818895] TestBus(4) = 0x00063fd0

<3>[ 224.818946] TestBus(5) = 0x0004c030

<3>[ 224.818997] TestBus(6) = 0x00000000

<3>[ 224.819089] TestBus(7) = 0x000003ff

<3>[ 224.819139] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.819191] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.819299] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.819396] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.824000] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.824095] mmc0: SDCC PWR is ON

<3>[ 224.824147] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.824198] mmc0: SDCC irq is enabled

<3>[ 224.824290] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.824344] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.824437] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.824530] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.824583] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.824675] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.824728] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.824821] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.824872] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.824964] == SDCC Test Bus Debug ==

<3>[ 224.825015] TestBus(0) = 0x00008000

<3>[ 224.825111] TestBus(1) = 0x00000080

<3>[ 224.825202] TestBus(2) = 0x00006010

<3>[ 224.825253] TestBus(3) = 0x018001ff

<3>[ 224.825303] TestBus(4) = 0x00063fd0

<3>[ 224.825394] TestBus(5) = 0x0004c030

<3>[ 224.825445] TestBus(6) = 0x00000000

<3>[ 224.825496] TestBus(7) = 0x000003ff

<3>[ 224.825547] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.825638] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.825731] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.825784] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.829155] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.829208] mmc0: SDCC PWR is ON

<3>[ 224.829258] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.829348] mmc0: SDCC irq is enabled

<3>[ 224.829399] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.829493] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.829546] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.829638] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.829732] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.829784] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.829878] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.829930] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.830022] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.830072] == SDCC Test Bus Debug ==

<3>[ 224.830163] TestBus(0) = 0x00008000

<3>[ 224.830259] TestBus(1) = 0x00000080

<3>[ 224.830310] TestBus(2) = 0x00006010

<3>[ 224.830361] TestBus(3) = 0x018001ff

<3>[ 224.830454] TestBus(4) = 0x00063fd0

<3>[ 224.830504] TestBus(5) = 0x0004c030

<3>[ 224.830556] TestBus(6) = 0x00000000

<3>[ 224.830648] TestBus(7) = 0x000003ff

<3>[ 224.830698] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.830750] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.830844] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.830939] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.835352] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.835445] mmc0: SDCC PWR is ON

<3>[ 224.835495] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.835546] mmc0: SDCC irq is enabled

<3>[ 224.835637] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.835689] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.835782] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.835834] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.835926] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.836019] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.836071] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.836162] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.836212] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.836303] == SDCC Test Bus Debug ==

<3>[ 224.836353] TestBus(0) = 0x00008000

<3>[ 224.836450] TestBus(1) = 0x00000080

<3>[ 224.836540] TestBus(2) = 0x00006010

<3>[ 224.836590] TestBus(3) = 0x018001ff

<3>[ 224.836640] TestBus(4) = 0x00063fd0

<3>[ 224.836730] TestBus(5) = 0x0004c030

<3>[ 224.836781] TestBus(6) = 0x00000000

<3>[ 224.836831] TestBus(7) = 0x000003ff

<3>[ 224.836882] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.836974] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.837067] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.837121] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.841458] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.841552] mmc0: SDCC PWR is ON

<3>[ 224.841603] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.841695] mmc0: SDCC irq is enabled

<3>[ 224.841747] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.841843] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.841896] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.841989] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.842082] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.842133] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.842224] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.842276] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.842366] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.842415] == SDCC Test Bus Debug ==

<3>[ 224.842464] TestBus(0) = 0x00008000

<3>[ 224.842597] TestBus(1) = 0x00000080

<3>[ 224.842647] TestBus(2) = 0x00006010

<3>[ 224.842696] TestBus(3) = 0x018001ff

<3>[ 224.842785] TestBus(4) = 0x00063fd0

<3>[ 224.842834] TestBus(5) = 0x0004c030

<3>[ 224.842884] TestBus(6) = 0x00000000

<3>[ 224.842973] TestBus(7) = 0x000003ff

<3>[ 224.843023] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.843119] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.843212] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.843305] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0

<3>[ 224.846878] mmc0: msmsdcc_execute_tuning: no tuning point found

<3>[ 224.846934] mmc0: SDCC PWR is ON

<3>[ 224.847028] mmc0: SDCC clks are ON, MCLK rate=200000000

<3>[ 224.847079] mmc0: SDCC irq is enabled

<3>[ 224.847171] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0xf98a4000, [MENTION=3357318]virt_[/MENTION]base=0xf0338000 =====

<3>[ 224.847226] Reg=0x00: 0x00000001, 0x01211b00, 0x00000000, 0x00000000

<3>[ 224.847320] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.847375] Reg=0x20: 0x00000000, 0x17d78400, 0x00000000, 0x00000000

<3>[ 224.847470] Reg=0x30: 0x00000000, 0x000c0000, 0x00000000, 0x408001ff

<3>[ 224.847566] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.847620] Reg=0x50: 0x00000038, 0x00000000, 0x00000000, 0x00000000

<3>[ 224.847716] Reg=0x60: 0x07876400, 0x00000000, 0x00000040, 0x00000000

<3>[ 224.847769] mmc0: MCI_TEST_INPUT = 0x0000003e

<3>[ 224.847861] == SDCC Test Bus Debug ==

<3>[ 224.847911] TestBus(0) = 0x00008000

<3>[ 224.848007] TestBus(1) = 0x00000080

<3>[ 224.848099] TestBus(2) = 0x00006010

<3>[ 224.848150] TestBus(3) = 0x018001ff

<3>[ 224.848201] TestBus(4) = 0x00063fd0

<3>[ 224.848253] TestBus(5) = 0x0004c030

<3>[ 224.848345] TestBus(6) = 0x00000000

<3>[ 224.848395] TestBus(7) = 0x000003ff

<3>[ 224.848446] mmc0: SPS BAM reset failed: sps reset_bam=1

<3>[ 224.848539] mmc0: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=0

<3>[ 224.848633] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0

<3>[ 224.848685] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0