From: Johan Hedberg Date: Thu, 5 Jun 2014 09:19:54 +0000 (+0300) Subject: Bluetooth: Fix incorrectly overriding conn->src_type X-Git-Tag: omap-for-v3.16/fixes-rc4~53^2~21^2^2~4^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b62b65055bcc5372d5c3f4103629176cb8db3678;p=pandora-kernel.git Bluetooth: Fix incorrectly overriding conn->src_type The src_type member of struct hci_conn should always reflect the address type of the src_member. It should never be overridden. There is already code in place in the command status handler of HCI_LE_Create_Connection to copy the right initiator address into conn->init_addr_type. Without this patch, if privacy is enabled, we will send the wrong address type in the SMP identity address information PDU (it'll e.g. contain our public address but a random address type). Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann Cc: stable@vger.kernel.org --- Reading git-diff-tree failed