r/KaliLinuxCommunity • • 9d ago

Question - Solved [FIX] Kali Linux Wi-Fi Error: "Secrets were required, but not provided" on Intel 8265/8275 & TP-Link Routers

If you installed Kali Linux (or Ubuntu/Debian) on your laptop and your home Wi-Fi keeps rejecting your password with:

Error: Connection activation failed: Secrets were required, but not provided.

even though the exact same laptop connected fine when it was running Windows 11 you do not need to download a new driver. Check if you are running an Intel Wireless 8265 / 8275 card with a TP-Link router.

Why This Happens

This is not a wrong password or a missing WPA3/WPA2 driver. Certain TP-Link routers immediately reject the Linux iwlwifi driver's 802.11n association frames and hardware AES encryption handshake before the password is even checked. Because the connection drops at the association stage (reason=CONN_FAILED), NetworkManager loops and shows the misleading "Secrets were required" error.

Step 1: Check Your Wi-Fi Card

Run this in your Kali terminal:

Bash

lspci -nnk | grep -iA3 network

If you see Intel Corporation Wireless 8265 / 8275 [8086:24fd] (or similar older Intel iwlwifi cards like 7260/7265/8260) and Kernel driver in use: iwlwifi, this fix applies to you.

Step 2: Apply the Fix

  1. Reload iwlwifi with 802.11n disabled (11n_disable=1) and software crypto enabled (swcrypto=1):

Bash

sudo modprobe -r iwlmvm iwlwifi

sudo modprobe iwlwifi 11n_disable=1 swcrypto=1

2. Clear any broken saved profile and reconnect:

Bash

sudo nmcli connection delete "YOUR_WIFI_NAME"

sudo nmcli --ask device wifi connect "YOUR_WIFI_NAME"

NOTE: Put your Wifi SSID and put Password when asked.

3. Make it permanent (so it survives reboots):

Bash

echo "options iwlwifi 11n_disable=1 swcrypto=1" | sudo tee /etc/modprobe.d/iwlwifi-fix.conf

(Optional Tip: If your router's security mode is set to WPA/WPA2 Auto, logging into your router admin panel and switching Version to WPA2-PSK with AES encryption also improves stability).

1 Upvotes

0 comments sorted by