···11+/*22+ Copyright (c) 2011,2012 Intel Corp.33+44+ This program is free software; you can redistribute it and/or modify55+ it under the terms of the GNU General Public License version 2 and66+ only version 2 as published by the Free Software Foundation.77+88+ This program is distributed in the hope that it will be useful,99+ but WITHOUT ANY WARRANTY; without even the implied warranty of1010+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1111+ GNU General Public License for more details.1212+*/1313+1414+#ifndef __AMP_H1515+#define __AMP_H1616+1717+struct amp_ctrl {1818+ struct list_head list;1919+ struct kref kref;2020+ __u8 id;2121+ __u16 assoc_len_so_far;2222+ __u16 assoc_rem_len;2323+ __u16 assoc_len;2424+ __u8 *assoc;2525+};2626+2727+int amp_ctrl_put(struct amp_ctrl *ctrl);2828+void amp_ctrl_get(struct amp_ctrl *ctrl);2929+struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id);3030+struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id);3131+void amp_ctrl_list_flush(struct amp_mgr *mgr);3232+3333+struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr,3434+ u8 remote_id, bool out);3535+3636+int phylink_gen_key(struct hci_conn *hcon, u8 *data, u8 *len, u8 *type);3737+3838+void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr);3939+void amp_read_loc_assoc_frag(struct hci_dev *hdev, u8 phy_handle);4040+void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr);4141+void amp_read_loc_assoc_final_data(struct hci_dev *hdev,4242+ struct hci_conn *hcon);4343+void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,4444+ struct hci_conn *hcon);4545+void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,4646+ struct hci_conn *hcon);4747+void amp_write_remote_assoc(struct hci_dev *hdev, u8 handle);4848+void amp_write_rem_assoc_continue(struct hci_dev *hdev, u8 handle);4949+5050+#endif /* __AMP_H */
-1
include/net/bluetooth/bluetooth.h
···180180}181181182182void baswap(bdaddr_t *dst, bdaddr_t *src);183183-char *batostr(bdaddr_t *ba);184183185184/* Common socket structures and functions */186185
···1111 select CRYPTO_BLKCIPHER1212 select CRYPTO_AES1313 select CRYPTO_ECB1414+ select CRYPTO_SHA2561415 help1516 Bluetooth is low-cost, low-power, short-range wireless technology.1617 It was designed as a replacement for cables and other short-range