[ONE Q&A, Help & Troubleshooting] alebcay:
So, I've been trying to build a variant of Dirty Unicorns (Nougat) for the OnePlus One, and I can see WiFi networks, but this (pastebin) happens when I try to connect to any of them, after authenticating (this is not caused by any sort of saved passwords, etc. - this is on the Google account setup screen, before I even sign in). This is the manifest I ran "repo init" from, and my local manifest is here:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="https://github.com/" name="gb" />
<remote fetch="https://gitlab.com/" name="gl" />
<remote name = "bb" fetch = "https://bitbucket.org/" />

<project name="amardeep434/du_device" path="device/oneplus/bacon" remote="gl" revision="n-caf" />
<project name="amardeep434/nkernel" path="kernel/oneplus/msm8974" remote="gl" revision="nougat" />
<project name="AOSP-bacon/proprietary_vendor_oneplus" path="vendor/oneplus" revision="nougat" remote="gb" />
<project name="Shreeesha/android_device_oppo_common" path="device/oppo/common" revision="n-caf" remote="gb" />
<!-- <project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" revision="cm-14.1" remote="gb" /> -->
<project name="android_external_ant-wireless_ant_service" path="external/ant-wireless/ant_service" revision="n-caf" remote="du" />
<project name="android_external_ant-wireless_ant_native" path="external/ant-wireless/ant_native" revision="n-caf" remote="du" />
<project name="android_external_ant-wireless_antradio-library" path="external/ant-wireless/antradio-library" revision="n-caf" remote="du" />
<project name="CyanogenMod/android_external_connectivity" path="external/connectivity" revision="cm-14.0" remote="gb" />
<!--<project name="DirtyUnicorns/android_vendor_qcom_opensource_dataservices" path="vendor/qcom/opensource/dataservices" revision="n-caf" remote="gb" /> -->

<remove-project name="android_hardware_qcom_wlan" />
<project name="CyanogenMod/android_hardware_qcom_wlan" path="hardware/qcom/wlan" revision="cm-14.0" remote="gb" />

<project path="hardware/qcom/wlan-caf" name="CyanogenMod/android_hardware_qcom_wlan" groups="qcom_wlan" revision="cm-14.0-caf" remote="gb" />

<remove-project name="android_system_core" />
<project name="amardeep434/du_system_core" path="system/core" revision="n" remote="gl" />

<remove-project name="android_frameworks_base" />
<project name="amardeep434/du_frameworks_base" path="frameworks/base" revision="n" remote="gl" />

<remove-project name="android_frameworks_av" />
<project name="amardeep434/du_frameworks_av1" path="frameworks/av" revision="n-caf" remote="gl" />

<project name="Shreeesha/android_system_qcom" path="system/qcom" revision="n-caf" remote="gb" />
<project path="hardware/qcom/display-caf/msm8974" name="CyanogenMod/android_hardware_qcom_display" groups="pdk,qcom,qcom_display" revision="cm-14.0-caf-8974" remote="gb" />
<project path="hardware/qcom/audio-caf/msm8974" name="CyanogenMod/android_hardware_qcom_audio" groups="pdk,qcom,qcom_audio" revision="cm-14.0-caf-8974" remote="gb" />
<project path="hardware/qcom/media-caf/msm8974" name="CyanogenMod/android_hardware_qcom_media" groups="pdk,qcom,qcom_media" revision="cm-14.0-caf-8974" remote="gb" />
<project path="hardware/qcom/bt-caf" name="CyanogenMod/android_hardware_qcom_bt" groups="qcom" revision="cm-14.0-caf" remote="gb" />

<remove-project name="android_system_bt" />
<project name="Shreeesha/system_bt" path="system/bt" revision="n-caf" remote="gb" />

<remove-project name="android_system_sepolicy" />
<project name="amardeep434/du_system_sepolicy" path="system/sepolicy" revision="n" remote="gl" />

<remove-project name="android_build" />
<project name="amardeep434/du_build" path="build" revision="n-caf" remote="gl" >
<copyfile src="core/root.mk" dest="Makefile" />
</project>

<remove-project name="android_frameworks_native" />
<project name="amardeep434/du_frameworks_native" path="frameworks/native" revision="n-caf" remote="gl" />

<remove-project name="android_packages_apps_Settings" />
<project name="amardeep434/du_packages_apps_Settings-1" path="packages/apps/Settings" revision="n" remote="gl" />

<project path="packages/apps/masquerade" name="TeamSubstratum/masquerade" remote="gb" revision="master" />

</manifest>

Other observations:

This does not seem to be caused by the ROM/build, because someone else is also running the same build on their OnePlus One elsewhere and has WiFi connectivity without any issues.

This does not seem to be caused by a hardware defect, because I can load on other ROMs (Dirty Unicorns marshmallow, CM14.1, PureNexus nougat) and WiFi works perfectly fine.

This does not seem to be caused by the access point/router, as I've tried two different models at home (a NETGEAR and an Asus) as well as a public wifi hotspot without authentication.

I've tried swapping out my sources for hardware/qcom/wlan(-caf) - tried sources from DU, CM, AOSP, and Slim - issue remains unresolved

I've tried swapping out my sources for external/wpa_supplicant - tried sources from DU and AOSP - issue remains unresolved

Anyone have any ideas? Thanks. :o