[ONE Original Android Development] Mgssidley:
Like some others here I have been having issues where wifi drops during sleep, whether I'm connected to a 2.4 or 5Ghz network, have wifi scanning on or off, and Keep Wi-Fi on during sleep set to always. I've noticed it for quite a while, but its become more apparent since I recently setup Tasker to enable Bluetooth when I disconnect from my home wifi. I setup the profile to log the times it was getting run at, and found that it occurs anywhere from 0-4 times per hour, but on average it's happening about once per hour. I tried to fix it with Tasker, by having the profile disable and enable wifi as well, but it would only help reconnect while the screen was off around 25% of the time. I also tried installing the "Google Connectivity Services" app, but it didn't seem to help.

If I want to analyze one of the logs around the time I lose connectivity, which will be the one to look at? I've looked at the Main log at the times that my wifi connection is lost and it typically looks like this one, where wifi was lost by 02:19:15.187 :

01-30 02:17:11.621 I/chatty ( 1341): uid=1000(system) Binder_A expire 11 lines
01-30 02:17:11.661 I/chatty ( 1341): uid=1000(system) Binder_4 expire 9 lines
01-30 02:19:12.701 I/chatty ( 1341): uid=1000(system) Binder_D expire 8 lines
01-30 02:19:14.804 I/chatty ( 1341): uid=1000(system) Binder_B expire 9 lines
01-30 02:19:14.941 E/NetlinkEvent( 246): NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
01-30 02:19:14.941 E/NetlinkEvent( 246): NetlinkEvent::FindParam(): Parameter 'UID' not found
01-30 02:19:14.984 I/chatty ( 1341): uid=1000(system) ConnectivitySer expire 50 lines
01-30 02:19:15.225 I/chatty ( 1341): uid=1000(system) android.io expire 1 line
01-30 02:19:15.278 I/chatty ( 1341): uid=1000(system) Binder_E expire 10 lines
01-30 02:19:15.691 E/ActivityThread(32583): Failed to find provider info for com.android.email.provider
01-30 02:19:15.869 I/chatty ( 1341): uid=1000 system_server expire 2 lines
01-30 02:19:16.167 I/chatty ( 1341): uid=1000(system) Binder_3 expire 4 lines
01-30 02:19:16.277 I/chatty ( 1341): uid=1000(system) android.fg expire 3 lines
01-30 02:19:17.287 W/SocketClient( 246): write error (Broken pipe)
01-30 02:19:17.296 I/chatty ( 1341): uid=1000(system) Binder_1 expire 10 lines
01-30 02:19:17.336 F/libc (26967): Fatal signal 13 (SIGPIPE), code 0 in tid 26967 (su)
01-30 02:19:17.382 I/chatty ( 462): uid=1000(system) com.android.settings expire 1 line
01-30 02:19:17.447 F/DEBUG ( 247): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-30 02:19:17.447 F/DEBUG ( 247): Build fingerprint: 'oneplus/bacon/A0001:5.1.1/LMY48B/YOG4PAS1N0:user/release-keys'
01-30 02:19:17.447 F/DEBUG ( 247): Revision: '0'
01-30 02:19:17.447 F/DEBUG ( 247): ABI: 'arm'
01-30 02:19:17.447 F/DEBUG ( 247): pid: 26967, tid: 26967, name: su >>> /system/xbin/su <<<
01-30 02:19:17.447 F/DEBUG ( 247): signal 13 (SIGPIPE), code 0 (SI_USER), fault addr --------
01-30 02:19:17.448 I/chatty ( 1341): uid=1000(system) Thread-71 expire 1 line
01-30 02:19:17.454 F/DEBUG ( 247): r0 ffffffe0 r1 beada808 r2 00000004 r3 aa0014bc
01-30 02:19:17.455 F/DEBUG ( 247): r4 00000004 r5 00000001 r6 b6d8a008 r7 00000004
01-30 02:19:17.455 F/DEBUG ( 247): r8 00000006 r9 b6fc8a70 sl beada808 fp 00000000
01-30 02:19:17.455 F/DEBUG ( 247): ip 00000007 sp beada7d8 lr b6fbeae9 pc b6e962dc cpsr 200b0010
01-30 02:19:17.458 F/DEBUG ( 247):
01-30 02:19:17.458 F/DEBUG ( 247): backtrace:
01-30 02:19:17.458 F/DEBUG ( 247): #00 pc 000422dc /system/lib/libc.so (write+12)
01-30 02:19:17.458 F/DEBUG ( 247): #01 pc 00005ae5 /system/xbin/su
01-30 02:19:17.458 F/DEBUG ( 247): #02 pc 00004d55 /system/xbin/su
01-30 02:19:17.458 F/DEBUG ( 247): #03 pc 0001738d /system/lib/libc.so (__libc_init+44)
01-30 02:19:17.458 F/DEBUG ( 247): #04 pc 00004540 /system/xbin/su
01-30 02:19:17.473 I/chatty ( 1341): uid=1000(system) WifiService expire 6 lines
01-30 02:19:17.540 F/DEBUG ( 247):
01-30 02:19:17.540 F/DEBUG ( 247): Tombstone written to: /data/tombstones/tombstone_07
01-30 02:19:17.547 I/chatty ( 1341): uid=1000(system) FileObserver expire 1 line
01-30 02:19:17.689 I/chatty ( 1341): uid=1000(system) Binder_F expire 4 lines
01-30 02:19:17.703 I/chatty ( 1341): uid=1000(system) WifiStateMachin expire 1 line
01-30 02:19:18.481 I/chatty ( 1341): uid=1000(system) NetworkPolicy expire 2 lines
01-30 02:19:19.167 I/chatty ( 826): uid=1000(system) com.android.settings expire 1 line
01-30 02:19:20.346 I/chatty ( 1046): uid=1000(system) com.android.settings expire 1 line
01-30 02:19:26.075 W/SocketClient( 246): write error (Broken pipe)
01-30 02:19:47.321 I/chatty ( 1341): uid=1000(system) Binder_8 expire 3 lines
01-30 02:19:48.619 I/chatty ( 1341): uid=1000(system) Binder_E expire 5 lines
01-30 02:19:48.832 I/chatty ( 1341): uid=1000(system) ConnectivitySer expire 2 lines
01-30 02:19:50.061 I/chatty ( 1341): uid=1000(system) Binder_9 expire 1 line
01-30 02:19:50.291 I/chatty ( 1341): uid=1000(system) Binder_A expire 3 lines
01-30 02:19:51.647 I/chatty ( 1341): uid=1000(system) Binder_5 expire 10 lines
01-30 02:19:54.351 I/chatty ( 1341): uid=1000(system) Binder_7 expire 12 lines
01-30 02:19:54.510 I/chatty ( 1341): uid=1000(system) Binder_4 expire 14 lines
01-30 02:19:54.543 I/chatty ( 1341): uid=1000(system) Binder_2 expire 11 lines
01-30 02:19:54.732 I/chatty ( 1341): uid=1000(system) Binder_D expire 11 lines
01-30 02:19:55.202 I/chatty ( 1341): uid=1000(system) Binder_A expire 12 lines
01-30 02:19:55.323 I/chatty ( 1341): uid=1000(system) Binder_B expire 11 lines
01-30 02:19:55.522 I/chatty ( 1341): uid=1000(system) Binder_F expire 6 lines
01-30 02:19:55.868 I/chatty ( 1341): uid=1000(system) Binder_8 expire 12 lines
01-30 02:19:56.094 I/chatty ( 1341): uid=1000(system) Binder_1 expire 12 lines
01-30 02:19:56.156 I/chatty ( 1341): uid=1000(system) Binder_9 expire 10 lines
01-30 02:19:56.926 I/chatty ( 1341): uid=1000(system) Binder_E expire 11 lines
01-30 02:19:56.982 I/chatty ( 1341): uid=1000(system) Binder_10 expire 12 lines
01-30 02:19:57.999 I/chatty ( 1341): uid=1000(system) Binder_6 expire 7 lines
01-30 02:19:59.291 I/chatty ( 1341): uid=1000(system) Binder_3 expire 7 lines
01-30 02:20:00.726 I/chatty ( 1341): uid=1000(system) ConnectivitySer expire 13 lines
01-30 02:20:00.738 I/chatty ( 1341): uid=1000 system_server expire 2 lines
01-30 02:20:00.884 E/NetlinkEvent( 246): Unknown ifindex 278 in RTM_DELADDR

Edit: Also, I don't have Xposed, nor do I have any sort of battery saver on my device.

Edit2: I started considering that this may be occurring because of an app I have installed, however after freezing all of my user apps, the problem still occurs.