Bug 515162

Summary: Wifi password dialog limits password more than wifi spec
Product: [Applications] systemsettings Reporter: Martin Bednar <martin+kde>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: 6.5.90   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: UI limiting password length

Description Martin Bednar 2026-01-27 16:35:46 UTC
Created attachment 188953 [details]
UI limiting password length

SUMMARY
The wifi spec puts pretty much no limitations on the WPA password, including min and max length. The KCM now puts limitations on the password, which the user cannot hope to match if the network's password falls out of that range. Also the Linux kernel allows up to 128 bytes.
Such a limitation would make sense when configuring a hotspot.

STEPS TO REPRODUCE
1. open network KCM
2.  click on a previously unconnected wifi network that has a 4 letter password
3.  try connecting with the 4 letter password

OBSERVED RESULT
Password not accepted by the UI

EXPECTED RESULT
wifi connects

Operating System: Gentoo 2.18
KDE Plasma Version: 6.5.90
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.7-gentoo-dist-hardened (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen AI 9 HX 370 w/ Radeon 890M
Memory: 64 GiB of RAM (62.1 GiB usable)
Graphics Processor: AMD Radeon 890M Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen AI 300 Series)
System Version: A9