mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
wifi: cfg80211: fix grammar in MLO group key error message
[ Upstream commit9dcc1af3bb] The error message emitted by nl80211_validate_key_link_id() when a group key install on an MLO wdev is missing the link ID reads "link ID must for MLO group key", which is missing the words "be set". This makes the error harder to grep and parse in userspace logs, and is reported verbatim by wpa_supplicant via its nl80211 extack relay, e.g.: wpa_supplicant: nl80211: kernel reports: link ID must for MLO group key The sibling error strings in the same helper already use grammatical phrasing ("link ID not allowed for pairwise key", "invalid link ID for MLO group key", "link ID not allowed for non-MLO group key"). Fix this one to match. No functional change. Fixes:e7a7b84e33("wifi: cfg80211: Add link_id parameter to various key operations for MLO") Signed-off-by: Louis Kotze <loukot@gmail.com> Link: https://patch.msgid.link/20260414122728.92234-1-loukot@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
123e1cd95b
commit
228db770fb
@@ -4828,7 +4828,7 @@ static int nl80211_validate_key_link_id(struct genl_info *info,
|
||||
if (wdev->valid_links) {
|
||||
if (link_id == -1) {
|
||||
GENL_SET_ERR_MSG(info,
|
||||
"link ID must for MLO group key");
|
||||
"link ID must be set for MLO group key");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!(wdev->valid_links & BIT(link_id))) {
|
||||
|
||||
Reference in New Issue
Block a user