mirror_ubuntu-kernels/net/wireless
Benjamin Berg a7b2cc591d wifi: cfg80211: report per-link errors during association
When one of the links (other than the assoc_link) is misconfigured
and cannot work the association will fail. However, userspace was not
able to tell that the operation only failed because of a problem with
one of the links. Fix this, by allowing the driver to set a per-link
error code and reporting the (first) offending link by setting the
bad_attr accordingly.

This only allows us to report the first error, but that is sufficient
for userspace to e.g. remove the offending link and retry.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230920211508.ebe63c0bd513.I40799998f02bf987acee1501a2522dc98bb6eb5a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2023-09-25 09:12:34 +02:00
..
certs
tests wifi: cfg80211: add first kunit tests, for element defrag 2023-09-11 12:32:16 +02:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
ap.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
chan.c wifi: cfg80211: export DFS CAC time and usable state helper functions 2023-09-13 13:24:11 +02:00
core.c wifi: cfg80211: annotate iftype_data pointer with sparse 2023-09-11 11:27:23 +02:00
core.h wifi: cfg80211: export DFS CAC time and usable state helper functions 2023-09-13 13:24:11 +02:00
debugfs.c wifi: cfg80211: debugfs: fix return type in ht40allow_map_read() 2022-08-25 10:04:46 +02:00
debugfs.h
ethtool.c wifi: cfg80211: use strscpy to replace strlcpy 2022-07-15 11:43:12 +02:00
ibss.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
Kconfig wifi: cfg80211: add first kunit tests, for element defrag 2023-09-11 12:32:16 +02:00
lib80211_crypt_ccmp.c wifi: use struct_group to copy addresses 2022-09-03 16:40:06 +02:00
lib80211_crypt_tkip.c wifi: lib80211: remove unused variables iv32 and iv16 2023-09-13 12:33:58 +02:00
lib80211_crypt_wep.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
lib80211.c lib80211: Remove unused macro DRV_NAME 2020-09-18 11:53:00 +02:00
Makefile wifi: cfg80211: add first kunit tests, for element defrag 2023-09-11 12:32:16 +02:00
mesh.c wifi: cfg80211: remove scan_width support 2023-09-13 11:10:50 +02:00
mlme.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
nl80211.c wifi: cfg80211: report per-link errors during association 2023-09-25 09:12:34 +02:00
nl80211.h wifi: nl80211: Remove unused declaration nl80211_pmsr_dump_results() 2023-08-22 21:40:40 +02:00
ocb.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
of.c
pmsr.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
radiotap.c mac80211: Use flex-array for radiotap header bitmap 2021-08-13 09:58:25 +02:00
rdev-ops.h wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
reg.c wifi: cfg80211: reg: describe return values in kernel-doc 2023-09-25 09:12:33 +02:00
reg.h wifi: cfg80211: reg: fix various kernel-doc issues 2023-09-11 12:32:39 +02:00
scan.c wifi: cfg80211: remove scan_width support 2023-09-13 11:10:50 +02:00
sme.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
sysfs.c wifi: cfg80211: add flush functions for wiphy work 2023-09-11 11:27:19 +02:00
sysfs.h
trace.c
trace.h wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
util.c wifi: cfg80211: remove scan_width support 2023-09-13 11:10:50 +02:00
wext-compat.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
wext-compat.h wifi: cfg80211: Avoid clashing function prototypes 2022-11-16 11:31:47 +02:00
wext-core.c wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point() 2023-06-19 12:05:27 +02:00
wext-priv.c
wext-proc.c
wext-sme.c wifi: cfg80211: remove wdev mutex 2023-09-11 11:27:23 +02:00
wext-spy.c wireless: wext-spy: Fix out-of-bounds warning 2021-06-23 10:57:17 +02:00