[Nexus 6 Android Development] jolinnard:
Thank you for pie ROM, after using it a few days, I can say that's amazing.

I don't know if it happens to more people, but wifi spikes CPU to 100% all the time. Logcat shows the following:

09-07 20:44:45.762 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=true, Number of clients=1
09-07 20:44:45.762 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=true
09-07 20:44:45.763 663 987 D WifiP2pNative: Setup P2P interface
09-07 20:44:45.771 663 987 I android_os_HwBinder: HwBinder: Starting thread pool for default::android.hardware.wifi.supplicant@1.0::ISupplicant
09-07 20:44:45.771 663 987 D SupplicantP2pIfaceHal: entering addInterface({.type = P2P, .name = p2p0})
09-07 20:44:45.773 663 987 I android_os_HwBinder: HwBinder: Starting thread pool for default::android.hardware.wifi.supplicant@1.0::ISupplicant
09-07 20:44:45.774 24893 24893 E wpa_supplicant: Could not read interface p2p0 flags: No such device
09-07 20:44:45.774 24893 24893 I wpa_supplicant: nl80211: Driver does not support authentication/association or connect commands
09-07 20:44:45.774 24893 24893 I wpa_supplicant: nl80211: deinit ifname=p2p0 disabled_11b_rates=0
09-07 20:44:45.774 24893 24893 E wpa_supplicant: Could not read interface p2p0 flags: No such device
09-07 20:44:45.774 24893 24893 E wpa_supplicant: p2p0: Failed to initialize driver interface
09-07 20:44:45.774 663 987 E SupplicantP2pIfaceHal: Failed to get ISupplicantIface 1
09-07 20:44:45.774 663 987 E SupplicantP2pIfaceHal: initSupplicantP2pIface got null iface
09-07 20:44:45.775 663 987 E WifiP2pNative: Failed to setup P2p iface in supplicant
09-07 20:44:45.775 663 987 D WifiP2pNative: Teardown P2P interface
09-07 20:44:45.778 663 987 I WifiP2pNative: P2P interface teardown completed
09-07 20:44:45.778 663 987 E WifiP2pService: Failed to setup interface for P2P
09-07 20:44:45.778 663 987 D WifiP2pNative: P2P InterfaceAvailableListener false
09-07 20:44:45.778 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=false
09-07 20:44:45.780 663 987 D WifiP2pNative: P2P InterfaceDestroyedListener p2p0
09-07 20:44:45.780 663 987 D WifiP2pNative: Ignoring stale interface destroyed listener
09-07 20:44:45.780 663 987 D WifiP2pNative: P2P InterfaceAvailableListener true
09-07 20:44:45.780 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=true, Number of clients=1
09-07 20:44:45.780 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=true
09-07 20:44:45.782 663 987 D WifiP2pNative: Setup P2P interface
09-07 20:44:45.790 663 987 I android_os_HwBinder: HwBinder: Starting thread pool for default::android.hardware.wifi.supplicant@1.0::ISupplicant
09-07 20:44:45.791 663 987 D SupplicantP2pIfaceHal: entering addInterface({.type = P2P, .name = p2p0})
09-07 20:44:45.792 663 987 I android_os_HwBinder: HwBinder: Starting thread pool for default::android.hardware.wifi.supplicant@1.0::ISupplicant
09-07 20:44:45.793 24893 24893 E wpa_supplicant: Could not read interface p2p0 flags: No such device
09-07 20:44:45.793 24893 24893 I wpa_supplicant: nl80211: Driver does not support authentication/association or connect commands
09-07 20:44:45.793 24893 24893 I wpa_supplicant: nl80211: deinit ifname=p2p0 disabled_11b_rates=0
09-07 20:44:45.793 24893 24893 E wpa_supplicant: Could not read interface p2p0 flags: No such device
09-07 20:44:45.793 24893 24893 E wpa_supplicant: p2p0: Failed to initialize driver interface
09-07 20:44:45.793 663 987 E SupplicantP2pIfaceHal: Failed to get ISupplicantIface 1
09-07 20:44:45.793 663 987 E SupplicantP2pIfaceHal: initSupplicantP2pIface got null iface
09-07 20:44:45.793 663 987 E WifiP2pNative: Failed to setup P2p iface in supplicant
09-07 20:44:45.793 663 987 D WifiP2pNative: Teardown P2P interface
09-07 20:44:45.798 663 987 I WifiP2pNative: P2P interface teardown completed
09-07 20:44:45.798 663 987 E WifiP2pService: Failed to setup interface for P2P
09-07 20:44:45.798 663 987 D WifiP2pNative: P2P InterfaceAvailableListener false
09-07 20:44:45.798 663 987 D WifiP2pService: Wifi enabled=true, P2P Interface availability=false
09-07 20:44:45.800 663 987 D WifiP2pNative: P2P InterfaceDestroyedListener p2p0
09-07 20:44:45.800 663 987 D WifiP2pNative: Ignoring stale interface destroyed listener
09-07 20:44:45.800 663 987 D WifiP2pNative: P2P InterfaceAvailableListener true

aproximately 40 times per second:

% adb logcat -d | grep 'wpa_supplicant: p2p0: Failed to initialize driver interface' | grep "20:59:57" | wc -l
39

I tried to look into init.shamu.rc because it sounds weird to me so many messages, but I didn't see any issue there. I compared with DirtyUnicorns and service wpa_supplicant almost the same. So I'm totally lost (I'm not any expert in this...).

To clarify, I use your ROM and your recommended GAPPS (pico) and Magisk 17.1.

I also saw a magisk process that consumes CPU (something like magiskd -postfs-data), but killing it's enough to recover CPU. If I do this and disable wifi, battery life is amazing and I dont see more critical bugs from a user point of view.

Thanks again and if you know what could cause this issue with wifi, will be great.... FYI, I tried to delete /data/misc/wifi from recovery, with same results.