This is a brand new Lenovo ThinkPad L16 laptop, with default WiFi configuration.
The log above shows a working connection to my Unifi AP as the script snips it just after the failure.
If I try to connect to a HostAP served network on a Pi2Zero the kernel driver crashes on a loop.
From the UI point of view this looks like an incorrect PSK password and repeated prompts for a new one.
journlctl -f :
Dec 02 10:49:52 Wills-ThinkPad kernel: wlp1s0: associate with 2c:cf:67:9d:4f:32 (try 1/3)
Dec 02 10:49:52 Wills-ThinkPad kernel: wlp1s0: associate with 2c:cf:67:9d:4f:32 (try 2/3)
Dec 02 10:49:52 Wills-ThinkPad kernel: wlp1s0: associate with 2c:cf:67:9d:4f:32 (try 3/3)
Dec 02 10:49:52 Wills-ThinkPad kernel: wlp1s0: association with 2c:cf:67:9d:4f:32 timed out
Dec 02 10:49:52 Wills-ThinkPad kernel: ath11k_pci 0000:01:00.0: failed to lookup peer 2c:cf:67:9d:4f:32 on vdev 0
Dec 02 10:49:55 Wills-ThinkPad wpa_supplicant[1495]: wlp1s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="RoboCon2025-Team22" auth_failures=1 duration=10 reason=CONN_FAILED
Dec 02 10:49:55 Wills-ThinkPad kernel: ------------[ cut here ]------------
Dec 02 10:49:55 Wills-ThinkPad kernel: WARNING: CPU: 3 PID: 218096 at drivers/net/wireless/ath/ath11k/mac.c:7698 ath11k_mac_op_unassign_vif_chanctx+0x28f/0x2f0 [ath11k]
Dec 02 10:49:55 Wills-ThinkPad kernel: Modules linked in: uas usb_storage cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet mii usbhid typec_displayport ipheth apple_mfi_fastcharge ccm michael_mic rfcomm snd_seq_dummy snd_hrtimer snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device cmac algif_hash algif_skcipher af_alg bnep btusb uvcvideo btrtl videobuf2_vmalloc btintel uvc btbcm videobuf2_memops btmtk videobuf2_v4l2 binfmt_misc bluetooth videodev videobuf2_common ecdh_generic qrtr_mhi nls_iso8859_1 ecc mc intel_rapl_msr snd_soc_dmic snd_soc_acp6x_mach snd_acp6x_pdm_dma intel_rapl_common joydev amdgpu snd_sof_amd_acp63 edac_mce_amd snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp kvm_amd snd_sof input_leds mac_hid snd_sof_utils kvm snd_soc_core irqbypass crct10dif_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha256_ssse3 snd_compress sha1_ssse3 aesni_intel ac97_bus snd_pcm_dmaengine crypto_simd snd_ctl_led cryptd snd_pci_ps qrtr snd_rpl_pci_acp6x amdxcp
Dec 02 10:49:55 Wills-ThinkPad kernel: snd_hda_codec_realtek snd_acp_pci drm_exec snd_acp_legacy_common snd_hda_codec_generic ath11k_pci gpu_sched rapl snd_hda_codec_hdmi ath11k drm_buddy snd_hda_intel drm_suballoc_helper drm_ttm_helper snd_intel_dspcfg snd_pci_acp6x think_lmi qmi_helpers snd_intel_sdw_acpi ttm snd_pci_acp5x snd_hda_codec firmware_attributes_class wmi_bmof k10temp mac80211 drm_display_helper snd_hda_core snd_rn_pci_acp3x cec snd_acp_config snd_soc_acpi snd_hwdep rc_core snd_pcm snd_pci_acp3x i2c_algo_bit cfg80211 i2c_piix4 snd_timer thinkpad_acpi libarc4 ccp mhi nvram amd_pmc acpi_tad serio_raw sch_fq_codel msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 snd hid_multitouch soundcore r8169 nvme video xhci_pci hid_generic ucsi_acpi crc32_pclmul psmouse typec_ucsi thunderbolt nvme_core xhci_pci_renesas typec i2c_hid_acpi realtek ledtrig_audio nvme_auth platform_profile i2c_hid wmi hid
Dec 02 10:49:55 Wills-ThinkPad kernel: CPU: 3 PID: 218096 Comm: kworker/u24:3 Tainted: G W 6.8.0-49-generic #49-Ubuntu
Dec 02 10:49:55 Wills-ThinkPad kernel: Hardware name: LENOVO 21L7CTO1WW/21L7CTO1WW, BIOS R2IET29W (1.29 ) 11/01/2024
Dec 02 10:49:55 Wills-ThinkPad kernel: Workqueue: events_unbound cfg80211_wiphy_work [cfg80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: RIP: 0010:ath11k_mac_op_unassign_vif_chanctx+0x28f/0x2f0 [ath11k]
Dec 02 10:49:55 Wills-ThinkPad kernel: Code: fe ff ff 4c 89 e7 e8 30 90 ff ff 85 c0 0f 84 8d fe ff ff 49 8b 3c 24 89 c2 48 c7 c6 88 8d c0 c0 e8 76 b7 01 00 e9 76 fe ff ff <0f> 0b e9 c2 fd ff ff 4c 8d b3 f4 04 00 00 8b b3 30 04 00 00 4c 89
Dec 02 10:49:55 Wills-ThinkPad kernel: RSP: 0018:ffffb1278ec73b90 EFLAGS: 00010246
Dec 02 10:49:55 Wills-ThinkPad kernel: RAX: 0000000000000000 RBX: ffff9837767edc58 RCX: ffff98376ee4a358
Dec 02 10:49:55 Wills-ThinkPad kernel: RDX: 0000000000000000 RSI: ffff9837767edc58 RDI: 0000000000000000
Dec 02 10:49:55 Wills-ThinkPad kernel: RBP: ffffb1278ec73bc8 R08: 0000000000000000 R09: 0000000000000000
Dec 02 10:49:55 Wills-ThinkPad kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffff98376c419fc0
Dec 02 10:49:55 Wills-ThinkPad kernel: R13: ffff983748dc0000 R14: 0000000000000000 R15: ffff98376c41d098
Dec 02 10:49:55 Wills-ThinkPad kernel: FS: 0000000000000000(0000) GS:ffff983e5ed80000(0000) knlGS:0000000000000000
Dec 02 10:49:55 Wills-ThinkPad kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Dec 02 10:49:55 Wills-ThinkPad kernel: CR2: 000074bf1308b000 CR3: 00000001b783c000 CR4: 0000000000f50ef0
Dec 02 10:49:55 Wills-ThinkPad kernel: PKRU: 55555554
Dec 02 10:49:55 Wills-ThinkPad kernel: Call Trace:
Dec 02 10:49:55 Wills-ThinkPad kernel: <TASK>
Dec 02 10:49:55 Wills-ThinkPad kernel: ? show_regs+0x6d/0x80
Dec 02 10:49:55 Wills-ThinkPad kernel: ? __warn+0x89/0x160
Dec 02 10:49:55 Wills-ThinkPad kernel: ? ath11k_mac_op_unassign_vif_chanctx+0x28f/0x2f0 [ath11k]
Dec 02 10:49:55 Wills-ThinkPad kernel: ? report_bug+0x17e/0x1b0
Dec 02 10:49:55 Wills-ThinkPad kernel: ? handle_bug+0x51/0xa0
Dec 02 10:49:55 Wills-ThinkPad kernel: ? exc_invalid_op+0x18/0x80
Dec 02 10:49:55 Wills-ThinkPad kernel: ? asm_exc_invalid_op+0x1b/0x20
Dec 02 10:49:55 Wills-ThinkPad kernel: ? ath11k_mac_op_unassign_vif_chanctx+0x28f/0x2f0 [ath11k]
Dec 02 10:49:55 Wills-ThinkPad kernel: ? srso_alias_return_thunk+0x5/0xfbef5
Dec 02 10:49:55 Wills-ThinkPad kernel: drv_unassign_vif_chanctx+0x126/0x1f0 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ieee80211_assign_link_chanctx+0x59/0x200 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ? srso_alias_return_thunk+0x5/0xfbef5
Dec 02 10:49:55 Wills-ThinkPad kernel: __ieee80211_link_release_channel+0x5e/0x140 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ieee80211_link_release_channel+0x21/0x40 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ieee80211_destroy_assoc_data+0x161/0x1e0 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ? _printk+0x60/0x90
Dec 02 10:49:55 Wills-ThinkPad kernel: ieee80211_sta_work+0x3f9/0x710 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: ? srso_alias_return_thunk+0x5/0xfbef5
Dec 02 10:49:55 Wills-ThinkPad kernel: ieee80211_iface_work+0x16a/0x1a0 [mac80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: cfg80211_wiphy_work+0xbf/0xe0 [cfg80211]
Dec 02 10:49:55 Wills-ThinkPad kernel: process_one_work+0x178/0x350
Dec 02 10:49:55 Wills-ThinkPad kernel: worker_thread+0x306/0x440
Dec 02 10:49:55 Wills-ThinkPad kernel: ? __pfx_worker_thread+0x10/0x10
Dec 02 10:49:55 Wills-ThinkPad kernel: kthread+0xf2/0x120
Dec 02 10:49:55 Wills-ThinkPad kernel: ? __pfx_kthread+0x10/0x10
Dec 02 10:49:55 Wills-ThinkPad kernel: ret_from_fork+0x47/0x70
Dec 02 10:49:55 Wills-ThinkPad kernel: ? __pfx_kthread+0x10/0x10
Dec 02 10:49:55 Wills-ThinkPad kernel: ret_from_fork_asm+0x1b/0x30
Dec 02 10:49:55 Wills-ThinkPad kernel: </TASK>
Dec 02 10:49:55 Wills-ThinkPad kernel: ---[ end trace 0000000000000000 ]---
Dec 02 10:49:55 Wills-ThinkPad kernel: ath11k_pci 0000:01:00.0: failed to find peer vdev_id 0 addr 2c:cf:67:9d:4f:32 in delete
Dec 02 10:49:55 Wills-ThinkPad kernel: ath11k_pci 0000:01:00.0: failed to delete peer 2c:cf:67:9d:4f:32 for vdev 0: -22
Dec 02 10:49:55 Wills-ThinkPad NetworkManager[1471]: <info> [1733136595.9083] device (wlp1s0): supplicant interface state: associating -> disconnected
Dec 02 10:49:57 Wills-ThinkPad NetworkManager[1471]: <warn> [1733136597.9859] device (wlp1s0): Activation: (wifi) association took too long
Dec 02 10:49:57 Wills-ThinkPad NetworkManager[1471]: <info> [1733136597.9859] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 02 10:49:57 Wills-ThinkPad NetworkManager[1471]: <warn> [1733136597.9863] device (wlp1s0): Activation: (wifi) asking for new secrets
Dec 02 10:49:59 Wills-ThinkPad NetworkManager[1471]: <warn> [1733136599.8662] device (wlp1s0): no secrets: User canceled the secrets request.
On the PI the configuration is:
# jdh: https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
interface=wlan0
#country_code=GB
# Use the nl80211 driver with the brcmfmac driver
driver=nl80211
# The SSID (name of the network)
ssid=$SSID$
# Use the 2.4 GHz band
hw_mode=g
# Use channel 6
channel=6
# Enable 802.11n
ieee80211n=1
# Enable WMM
#wmm_enabled=1
wmm_enabled=0
# 40 MHz channels with 20 ns guard interval
#ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
# Accept all MAC addresses
macaddr_acl=0
# Use WPA
auth_algs=1
# Do not require clients to know the SSID
ignore_broadcast_ssid=0
# Use WPA2
wpa=2
# Use a pre-shared key (WPA2-PSK)
wpa_key_mgmt=WPA-PSK
# The network passphrase (8 characters mimimum)
wpa_passphrase=$PSK$
# Use AES instead of TKIP
rsn_pairwise=CCMP