diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-22 05:28:39 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-23 06:06:58 -0500 |
commit | 2e99b0afc7445769bb886dc14a31aaa0dc17c4b5 (patch) | |
tree | b65ebc044448b987bafc3062c20a2583b58ebe89 | |
parent | 47990ea09d393da8fb6cf284f4dba704c3661973 (diff) |
Bluetooth: Remove unneeded hci_cc_read_ssp_mode function
The kernel has no need to track the hci_read_ssp_mode command since it
has the hci_sent_cmd_data function to check what value was set when
hci_write_ssp_mode completes.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | net/bluetooth/hci_event.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 5fb1ee516d3a..1b1c3480a24d 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -420,21 +420,6 @@ static void hci_cc_host_buffer_size(struct hci_dev *hdev, struct sk_buff *skb) | |||
420 | hci_req_complete(hdev, HCI_OP_HOST_BUFFER_SIZE, status); | 420 | hci_req_complete(hdev, HCI_OP_HOST_BUFFER_SIZE, status); |
421 | } | 421 | } |
422 | 422 | ||
423 | static void hci_cc_read_ssp_mode(struct hci_dev *hdev, struct sk_buff *skb) | ||
424 | { | ||
425 | struct hci_rp_read_ssp_mode *rp = (void *) skb->data; | ||
426 | |||
427 | BT_DBG("%s status 0x%x", hdev->name, rp->status); | ||
428 | |||
429 | if (rp->status) | ||
430 | return; | ||
431 | |||
432 | if (rp->mode) | ||
433 | set_bit(HCI_SSP_ENABLED, &hdev->dev_flags); | ||
434 | else | ||
435 | clear_bit(HCI_SSP_ENABLED, &hdev->dev_flags); | ||
436 | } | ||
437 | |||
438 | static void hci_cc_write_ssp_mode(struct hci_dev *hdev, struct sk_buff *skb) | 423 | static void hci_cc_write_ssp_mode(struct hci_dev *hdev, struct sk_buff *skb) |
439 | { | 424 | { |
440 | __u8 status = *((__u8 *) skb->data); | 425 | __u8 status = *((__u8 *) skb->data); |
@@ -2201,10 +2186,6 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk | |||
2201 | hci_cc_host_buffer_size(hdev, skb); | 2186 | hci_cc_host_buffer_size(hdev, skb); |
2202 | break; | 2187 | break; |
2203 | 2188 | ||
2204 | case HCI_OP_READ_SSP_MODE: | ||
2205 | hci_cc_read_ssp_mode(hdev, skb); | ||
2206 | break; | ||
2207 | |||
2208 | case HCI_OP_WRITE_SSP_MODE: | 2189 | case HCI_OP_WRITE_SSP_MODE: |
2209 | hci_cc_write_ssp_mode(hdev, skb); | 2190 | hci_cc_write_ssp_mode(hdev, skb); |
2210 | break; | 2191 | break; |