Skip to content

Commit a17f5d2

Browse files
Lythergregkh
authored andcommitted
wifi: cfg80211: reject unsupported PMSR FTM location requests
[ Upstream commit 69ef6a7 ] 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: 9bb7e0f ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 44ea65d commit a17f5d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/wireless/pmsr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static int pmsr_parse_ftm(struct cfg80211_registered_device *rdev,
114114
NL_SET_ERR_MSG_ATTR(info->extack,
115115
tb[NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI],
116116
"FTM: LCI request not supported");
117+
return -EOPNOTSUPP;
117118
}
118119

119120
out->ftm.request_civicloc =
@@ -122,6 +123,7 @@ static int pmsr_parse_ftm(struct cfg80211_registered_device *rdev,
122123
NL_SET_ERR_MSG_ATTR(info->extack,
123124
tb[NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC],
124125
"FTM: civic location request not supported");
126+
return -EOPNOTSUPP;
125127
}
126128

127129
out->ftm.trigger_based =

0 commit comments

Comments
 (0)