Skip to content

Commit dccf2f6

Browse files
Frank PraznikJiri Kosina
authored andcommitted
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: Frank Praznik <frank.praznik@oh.rr.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent d2d782f commit dccf2f6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/bluetooth/hidp/core.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@ static int hidp_setup_hid(struct hidp_session *session,
767767
snprintf(hid->phys, sizeof(hid->phys), "%pMR",
768768
&l2cap_pi(session->ctrl_sock->sk)->chan->src);
769769

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

0 commit comments

Comments
 (0)