]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: nl80211: fix NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST usage
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 May 2026 11:38:37 +0000 (13:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 May 2026 09:03:21 +0000 (11:03 +0200)
commit0f3c0a197309717d74729568f88957d448847937
treee5dbea0843604ad6e89936a961ac59211c1d2bba
parent283fc9e44ff5b5ac967439b4951b80bd4299f4e4
wifi: nl80211: fix NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST usage

This is documented as a u8 and has a policy of NLA_U8, but uses
nla_get_u32() which means it's completely broken on big-endian.
Fix it to use nla_get_u8().

Fixes: 9bb7e0f24e7e ("cfg80211: add peer measurement with FTM initiator API")
Link: https://patch.msgid.link/20260505113837.260159-2-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/pmsr.c