[Nexus 5 Q&A, Help & Troubleshooting] helloworld1:
When I go to a new place, the wifi is not auto connected and I cannot manually connect it either. Rebooting the phone and wifi will be connected.

Anyone has similar problem?

BTW, two places are using different wifi frequency, one is 2.4/5Ghz hybrid and the other are using 2.4Ghz only.

Logcat:

I/wpa_supplicant(14758): wlan0: Authentication with 6c:f3:7f:68:10:80 timed out.
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-DISCONNECTED bssid=6c:f3:7f:68:10:80 reason=3 locally_generated=1
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=38 ssid="A-MSFTWLAN" auth_failures=1 duration=10
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-ASSOC-REJECT status_code=1
E/wpa_supplicant(14758): current_ssid == NULL
I/wpa_supplicant(14758): wlan0: Trying to associate with SSID 'Free Public WiFi'
I/wpa_supplicant(14758): wlan0: Association request to the driver failed
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-SSID-REENABLED id=38 ssid="A-MSFTWLAN"
I/wpa_supplicant(14758): wlan0: Trying to associate with 6c:f3:7f:68:10:90 (SSID='A-MSFTWLAN' freq=5785 MHz)
I/wpa_supplicant(14758): wlan0: Authentication with 6c:f3:7f:68:10:90 timed out.
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-DISCONNECTED bssid=6c:f3:7f:68:10:90 reason=3 locally_generated=1
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=38 ssid="A-MSFTWLAN" auth_failures=2 duration=20
I/wpa_supplicant(14758): wlan0: CTRL-EVENT-ASSOC-REJECT status_code=1
E/wpa_supplicant(14758): current_ssid == NULL
I/wpa_supplicant(14758): wlan0: Trying to associate with SSID 'Free Public WiFi'
I/wpa_supplicant(14758): wlan0: Association request to the driver failed

DMESG:

<6>[ 3493.899316] bq24192_set_input_i_limit: input current limit = 500 setting 0x02
<3>[ 3518.094595] WLDEV-ERROR) wldev_set_country : wldev_set_country: set country for US as Q2 rev 57
<4>[ 3519.297185] ------------[ cut here ]------------
<4>[ 3519.297285] WARNING: at net/wireless/ibss.c:24 __cfg80211_ibss_joined+0x154/0x18c()
<4>[ 3519.297450] [<c010de1c>] (unwind_backtrace+0x0/0x144) from [<c09fd44c>] (dump_stack+0x20/0x24)
<4>[ 3519.297602] [<c09fd44c>] (dump_stack+0x20/0x24) from [<c0192adc>] (warn_slowpath_common+0x58/0x70)
<4>[ 3519.297751] [<c0192adc>] (warn_slowpath_common+0x58/0x70) from [<c0192bec>] (warn_slowpath_null+0x2c/0x34)
<4>[ 3519.297896] [<c0192bec>] (warn_slowpath_null+0x2c/0x34) from [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c)
<4>[ 3519.297985] [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c) from [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c)
<4>[ 3519.298133] [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c) from [<c09ac11c>] (cfg80211_event_work+0x34/0x58)
<4>[ 3519.298285] [<c09ac11c>] (cfg80211_event_work+0x34/0x58) from [<c01acd58>] (process_one_work+0x144/0x49c)
<4>[ 3519.298432] [<c01acd58>] (process_one_work+0x144/0x49c) from [<c01ad434>] (worker_thread+0x174/0x378)
<4>[ 3519.298579] [<c01ad434>] (worker_thread+0x174/0x378) from [<c01b3690>] (kthread+0x98/0xa4)
<4>[ 3519.298727] [<c01b3690>] (kthread+0x98/0xa4) from [<c0107f60>] (kernel_thread_exit+0x0/0x8)
<4>[ 3519.298805] ---[ end trace 2798f0a5ca958678 ]---
<6>[ 3528.911937] CFG80211-ERROR) wl_cfg80211_disconnect : Reason 3
<4>[ 3542.412631] ------------[ cut here ]------------
<4>[ 3542.412832] WARNING: at net/wireless/ibss.c:24 __cfg80211_ibss_joined+0x154/0x18c()
<4>[ 3542.412955] [<c010de1c>] (unwind_backtrace+0x0/0x144) from [<c09fd44c>] (dump_stack+0x20/0x24)
<4>[ 3542.413143] [<c09fd44c>] (dump_stack+0x20/0x24) from [<c0192adc>] (warn_slowpath_common+0x58/0x70)
<4>[ 3542.413595] [<c0192adc>] (warn_slowpath_common+0x58/0x70) from [<c0192bec>] (warn_slowpath_null+0x2c/0x34)
<4>[ 3542.413773] [<c0192bec>] (warn_slowpath_null+0x2c/0x34) from [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c)
<4>[ 3542.413951] [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c) from [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c)
<4>[ 3542.414126] [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c) from [<c09ac11c>] (cfg80211_event_work+0x34/0x58)
<4>[ 3542.414321] [<c09ac11c>] (cfg80211_event_work+0x34/0x58) from [<c01acd58>] (process_one_work+0x144/0x49c)
<4>[ 3542.414539] [<c01acd58>] (process_one_work+0x144/0x49c) from [<c01ad434>] (worker_thread+0x174/0x378)
<4>[ 3542.414649] [<c01ad434>] (worker_thread+0x174/0x378) from [<c01b3690>] (kthread+0x98/0xa4)
<4>[ 3542.414835] [<c01b3690>] (kthread+0x98/0xa4) from [<c0107f60>] (kernel_thread_exit+0x0/0x8)
<4>[ 3542.415028] ---[ end trace 2798f0a5ca958679 ]---
<4>[ 3576.276410] ---[ end trace 2798f0a5ca95867a ]---
<6>[ 3583.680638] max17048_set_rcomp: new RCOMP = 0x46
<6>[ 3583.685822] max17048_work: raw soc = 0xA624 raw vcell = 0x0D03
<6>[ 3583.686240] max17048_work: SOC = 85 vbatt_mv = 4163
<6>[ 3583.686467] max17048_work: ibatt_ua = -252311 batt_temp = 305
<6>[ 3583.722149] healthd: battery l=85 v=4163 t=30.4 h=2 st=2 c=-290 chg=u
<6>[ 3585.889862] CFG80211-ERROR) wl_cfg80211_disconnect : Reason 3
<4>[ 3610.141393] ------------[ cut here ]------------
<4>[ 3610.141689] WARNING: at net/wireless/ibss.c:24 __cfg80211_ibss_joined+0x154/0x18c()
<4>[ 3610.142173] [<c010de1c>] (unwind_backtrace+0x0/0x144) from [<c09fd44c>] (dump_stack+0x20/0x24)
<4>[ 3610.142464] [<c09fd44c>] (dump_stack+0x20/0x24) from [<c0192adc>] (warn_slowpath_common+0x58/0x70)
<4>[ 3610.142928] [<c0192adc>] (warn_slowpath_common+0x58/0x70) from [<c0192bec>] (warn_slowpath_null+0x2c/0x34)
<4>[ 3610.143392] [<c0192bec>] (warn_slowpath_null+0x2c/0x34) from [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c)
<4>[ 3610.143857] [<c09c46f4>] (__cfg80211_ibss_joined+0x154/0x18c) from [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c)
<4>[ 3610.144317] [<c09af058>] (cfg80211_process_rdev_events+0xe0/0x21c) from [<c09ac11c>] (cfg80211_event_work+0x34/0x58)
<4>[ 3610.144790] [<c09ac11c>] (cfg80211_event_work+0x34/0x58) from [<c01acd58>] (process_one_work+0x144/0x49c)
<4>[ 3610.145255] [<c01acd58>] (process_one_work+0x144/0x49c) from [<c01ad434>] (worker_thread+0x174/0x378)
<4>[ 3610.145713] [<c01ad434>] (worker_thread+0x174/0x378) from [<c01b3690>] (kthread+0x98/0xa4)
<4>[ 3610.145996] [<c01b3690>] (kthread+0x98/0xa4) from [<c0107f60>] (kernel_thread_exit+0x0/0x8)
<4>[ 3610.146430] ---[ end trace 2798f0a5ca95867b ]---
<5>[ 3614.677674] type=1400 audit(1383858867.187:343): avc: denied { read write } for pid=21980 comm="app_process" path="/dev/pts/2" dev="devpts" ino=5 scontext=u:r:zygote:s0 tcontext=u:object_r:devpts:s0 tclass=chr_file
<5>[ 3614.678909] type=1400 audit(1383858867.187:344): avc: denied { write } for pid=21980 comm="app_process" path="pipe:[85261]" dev="pipefs" ino=85261 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=fifo_file
<5>[ 3614.679031] type=1400 audit(1383858867.187:345): avc: denied { write } for pid=21980 comm="app_process" path="pipe:[85262]" dev="pipefs" ino=85262 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=fifo_file
<5>[ 3614.679403] type=1400 audit(1383858867.197:346): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[84123]" dev="sockfs" ino=84123 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.679496] type=1400 audit(1383858867.197:347): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[9184]" dev="sockfs" ino=9184 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.679616] type=1400 audit(1383858867.197:348): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[46043]" dev="sockfs" ino=46043 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.679745] type=1400 audit(1383858867.197:349): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[56838]" dev="sockfs" ino=56838 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.679865] type=1400 audit(1383858867.197:350): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[66440]" dev="sockfs" ino=66440 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.679955] type=1400 audit(1383858867.197:351): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[86276]" dev="sockfs" ino=86276 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket
<5>[ 3614.680073] type=1400 audit(1383858867.197:352): avc: denied { read write } for pid=21980 comm="app_process" path="socket:[86281]" dev="sockfs" ino=86281 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket

[/code]