]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: reject unsupported PMSR FTM location requests
authorZhao Li <enderaoelyther@gmail.com>
Fri, 12 Jun 2026 13:37:11 +0000 (21:37 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:10 +0000 (14:11 +0200)
commit69ef6a7ec277f16d216be8da2b3cbe872786c999
tree0dba08698c2a76780326ac6f7afe31b2acce65cd
parent36230936468f0ba4930e94aef496fc229d4bb951
wifi: cfg80211: reject unsupported PMSR FTM location requests

PMSR FTM location request flags are syntactically valid, but they must
be rejected when the device capability does not advertise support for
them.

Return an error immediately after rejecting unsupported LCI or civic
location request bits so the request cannot reach the driver.

Fixes: 9bb7e0f24e7e7 ("cfg80211: add peer measurement with FTM initiator API")
Assisted-by: Codex:gpt-5.5
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20260612133710.93544-2-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/pmsr.c