]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fragment P2P IE in invitation frames if it exceeds 255 bytes
authorShivani Baranwal <shivbara@qti.qualcomm.com>
Fri, 19 Dec 2025 05:35:58 +0000 (11:05 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 23 Jan 2026 16:28:56 +0000 (18:28 +0200)
commit822d46c4f3ea9706986f624a3eff08b630fd17cd
treec1ca87178c8fb77933559355e8780b083f1ab17e
parent91e7785fb46d3f3b4ebc1d661a947f20d5298598
P2P: Fragment P2P IE in invitation frames if it exceeds 255 bytes

The P2P IE in Invitation Request and Response frames is constructed by
concatenating several subelements. If the total length of these
subelements exceeds the maximum IE length of 255 bytes, the resulting
frame becomes invalid. This can occur in scenarios with a large number
of subelements, such as when including many preferred channels or large
vendor-specific attributes.

Fragment the P2P sub-elements into multiple P2P IEs if the total size
exceeds the 255-byte limit, ensuring the generated Invitation Request
and Response frames remain valid.

Signed-off-by: Shivani Baranwal <shivbara@qti.qualcomm.com>
src/p2p/p2p_invitation.c