From: Johan Hedberg Date: Sun, 27 Jan 2013 14:32:00 +0000 (-0600) Subject: Bluetooth: Fix link security setting when powering on X-Git-Tag: v3.9-rc1~139^2~132^2^2~21^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0ff92fbfa14c1cf8c0346f1dde9c3eda26d5abf;p=pandora-kernel.git Bluetooth: Fix link security setting when powering on If a controller is powered on while the HCI_AUTO_OFF flag is set the link security setting (HCI_LINK_SECURITY) might not be in sync with the actual state of the controller (HCI_AUTH). This patch fixes the issue by checking for inequality between the intended and actual settings and sends a HCI_Write_Auth_Enable command if necessary. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed