diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-04-17 15:00:52 +0300 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-04-18 00:26:25 -0300 |
commit | d2c5d77fff6ac0f43fc36f4fde020f726f773c1d (patch) | |
tree | 17219324bd7af41a4df3edc194f020c80777eab7 /net/bluetooth/hci_event.c | |
parent | cad718ed2f6fd204b2c5cac6b611fc3fcde7b183 (diff) | |
download | linux-d2c5d77fff6ac0f43fc36f4fde020f726f773c1d.tar.bz2 |
Bluetooth: Add reading of all local feature pages
With the introduction of CSA4 there is now also a features page number 2
available. This patch increments the maximum supported page number to 2
and adds code for reading all available pages (as long as we have
support for them - indicated by HCI_MAX_PAGES).
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 8adc3915ece4..3b2c0e07b25b 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -544,6 +544,8 @@ static void hci_cc_read_local_ext_features(struct hci_dev *hdev, if (rp->status) return; + hdev->max_page = rp->max_page; + if (rp->page < HCI_MAX_PAGES) memcpy(hdev->features[rp->page], rp->features, 8); } |