Bluetooth: Update page scan parameters after successful write commands
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:07:12 +0000 (17:07 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 18:36:03 +0000 (15:36 -0300)
commit4a3ee763ba797e0489b7e9fd8810ae087c2a7504
tree241fd2aed7f65300cab2878fb0904379d386a46a
parentf332ec6699980e0563408c7bcf1a8a31b825fee1
Bluetooth: Update page scan parameters after successful write commands

The page scan parameters (interval, window and type) stored in struct
hci_dev should not only be updated after successful reads but also after
successful writes. This patch adds the necessary handlers for the write
command complete events and updates the stored values through them.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_event.c