Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dccf2f65 authored by Frank Praznik's avatar Frank Praznik Committed by Jiri Kosina
Browse files

HID: hidp: Add a comment that some devices depend on the current behavior of uniq



Add a comment noting that some devices depend on the destination address being
stored in uniq.

Signed-off-by: default avatarFrank Praznik <frank.praznik@oh.rr.com>
Reviewed-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent d2d782fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -767,6 +767,9 @@ static int hidp_setup_hid(struct hidp_session *session,
	snprintf(hid->phys, sizeof(hid->phys), "%pMR",
		 &l2cap_pi(session->ctrl_sock->sk)->chan->src);

	/* NOTE: Some device modules depend on the dst address being stored in
	 * uniq. Please be aware of this before making changes to this behavior.
	 */
	snprintf(hid->uniq, sizeof(hid->uniq), "%pMR",
		 &l2cap_pi(session->ctrl_sock->sk)->chan->dst);