123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025 |
- enum {
-
- HCI_QUIRK_RESET_ON_CLOSE,
-
- HCI_QUIRK_RAW_DEVICE,
-
- HCI_QUIRK_FIXUP_BUFFER_SIZE,
-
- HCI_QUIRK_FIXUP_INQUIRY_MODE,
-
- HCI_QUIRK_BROKEN_LOCAL_COMMANDS,
-
- HCI_QUIRK_BROKEN_STORED_LINK_KEY,
-
- HCI_QUIRK_EXTERNAL_CONFIG,
-
- HCI_QUIRK_INVALID_BDADDR,
-
- HCI_QUIRK_STRICT_DUPLICATE_FILTER,
-
- HCI_QUIRK_SIMULTANEOUS_DISCOVERY,
-
- HCI_QUIRK_NON_PERSISTENT_DIAG,
- }
- enum {
- HCI_UP,
- HCI_INIT,
- HCI_RUNNING,
- HCI_PSCAN,
- HCI_ISCAN,
- HCI_AUTH,
- HCI_ENCRYPT,
- HCI_INQUIRY,
- HCI_RAW,
- HCI_RESET,
- }
- enum {
- HCI_SOCK_TRUSTED,
- HCI_MGMT_INDEX_EVENTS,
- HCI_MGMT_UNCONF_INDEX_EVENTS,
- HCI_MGMT_EXT_INDEX_EVENTS,
- HCI_MGMT_EXT_INFO_EVENTS,
- HCI_MGMT_OPTION_EVENTS,
- HCI_MGMT_SETTING_EVENTS,
- HCI_MGMT_DEV_CLASS_EVENTS,
- HCI_MGMT_LOCAL_NAME_EVENTS,
- HCI_MGMT_OOB_DATA_EVENTS,
- }
- enum {
- HCI_SETUP,
- HCI_CONFIG,
- HCI_AUTO_OFF,
- HCI_RFKILLED,
- HCI_MGMT,
- HCI_BONDABLE,
- HCI_SERVICE_CACHE,
- HCI_KEEP_DEBUG_KEYS,
- HCI_USE_DEBUG_KEYS,
- HCI_UNREGISTER,
- HCI_UNCONFIGURED,
- HCI_USER_CHANNEL,
- HCI_EXT_CONFIGURED,
- HCI_LE_ADV,
- HCI_LE_SCAN,
- HCI_SSP_ENABLED,
- HCI_SC_ENABLED,
- HCI_SC_ONLY,
- HCI_PRIVACY,
- HCI_LIMITED_PRIVACY,
- HCI_RPA_EXPIRED,
- HCI_RPA_RESOLVING,
- HCI_HS_ENABLED,
- HCI_LE_ENABLED,
- HCI_ADVERTISING,
- HCI_ADVERTISING_CONNECTABLE,
- HCI_CONNECTABLE,
- HCI_DISCOVERABLE,
- HCI_LIMITED_DISCOVERABLE,
- HCI_LINK_SECURITY,
- HCI_PERIODIC_INQ,
- HCI_FAST_CONNECTABLE,
- HCI_BREDR_ENABLED,
- HCI_LE_SCAN_INTERRUPTED,
- HCI_DUT_MODE,
- HCI_VENDOR_DIAG,
- HCI_FORCE_BREDR_SMP,
- HCI_FORCE_STATIC_ADDR,
- __HCI_NUM_FLAGS,
- }
- struct hci_cp_inquiry {
- __u8 lap[3]
- __u8 length
- __u8 num_rsp
- } __packed
- struct hci_cp_create_conn {
- bdaddr_t bdaddr;
- __le16 pkt_type
- __u8 pscan_rep_mode
- __u8 pscan_mode
- __le16 clock_offset;
- __u8 role_switch
- } __packed
- struct hci_cp_disconnect {
- __le16 handle
- __u8 reason
- } __packed
- struct hci_cp_add_sco {
- __le16 handle
- __le16 pkt_type
- } __packed
- struct hci_cp_create_conn_cancel {
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_accept_conn_req {
- bdaddr_t bdaddr;
- __u8 role
- } __packed
- struct hci_cp_reject_conn_req {
- bdaddr_t bdaddr;
- __u8 reason
- } __packed
- struct hci_cp_link_key_reply {
- bdaddr_t bdaddr;
- __u8 link_key[HCI_LINK_KEY_SIZE]
- } __packed
- struct hci_cp_link_key_neg_reply {
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_pin_code_reply {
- bdaddr_t bdaddr;
- __u8 pin_len
- __u8 pin_code[16]
- } __packed
- struct hci_rp_pin_code_reply {
- __u8 status
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_pin_code_neg_reply {
- bdaddr_t bdaddr;
- } __packed
- struct hci_rp_pin_code_neg_reply {
- __u8 status
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_change_conn_ptype {
- __le16 handle
- __le16 pkt_type
- } __packed
- struct hci_cp_auth_requested {
- __le16 handle
- } __packed
- struct hci_cp_set_conn_encrypt {
- __le16 handle
- __u8 encrypt
- } __packed
- struct hci_cp_change_conn_link_key {
- __le16 handle
- } __packed
- struct hci_cp_remote_name_req {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- __u8 pscan_mode
- __le16 clock_offset;
- } __packed
- struct hci_cp_remote_name_req_cancel {
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_read_remote_features {
- __le16 handle
- } __packed
- struct hci_cp_read_remote_ext_features {
- __le16 handle
- __u8 page
- } __packed
- struct hci_cp_read_remote_version {
- __le16 handle
- } __packed
- struct hci_cp_read_clock_offset {
- __le16 handle
- } __packed
- struct hci_cp_setup_sync_conn {
- __le16 handle
- __le32 tx_bandwidth
- __le32 rx_bandwidth
- __le16 max_latency
- __le16 voice_setting
- __u8 retrans_effort
- __le16 pkt_type
- } __packed
- struct hci_cp_accept_sync_conn_req {
- bdaddr_t bdaddr;
- __le32 tx_bandwidth
- __le32 rx_bandwidth
- __le16 max_latency
- __le16 content_format
- __u8 retrans_effort
- __le16 pkt_type
- } __packed
- struct hci_cp_reject_sync_conn_req {
- bdaddr_t bdaddr;
- __u8 reason
- } __packed
- struct hci_cp_io_capability_reply {
- bdaddr_t bdaddr;
- __u8 capability
- __u8 oob_data
- __u8 authentication
- } __packed
- struct hci_cp_user_confirm_reply {
- bdaddr_t bdaddr;
- } __packed
- struct hci_rp_user_confirm_reply {
- __u8 status
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_user_passkey_reply {
- bdaddr_t bdaddr;
- __le32 passkey
- } __packed
- struct hci_cp_remote_oob_data_reply {
- bdaddr_t bdaddr;
- __u8 hash[16]
- __u8 rand[16]
- } __packed
- struct hci_cp_remote_oob_data_neg_reply {
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_io_capability_neg_reply {
- bdaddr_t bdaddr;
- __u8 reason
- } __packed
- struct hci_cp_create_phy_link {
- __u8 phy_handle
- __u8 key_len
- __u8 key_type
- __u8 key[HCI_AMP_LINK_KEY_SIZE]
- } __packed
- struct hci_cp_accept_phy_link {
- __u8 phy_handle
- __u8 key_len
- __u8 key_type
- __u8 key[HCI_AMP_LINK_KEY_SIZE]
- } __packed
- struct hci_cp_disconn_phy_link {
- __u8 phy_handle
- __u8 reason
- } __packed
- struct ext_flow_spec {
- __u8 id
- __u8 stype
- __le16 msdu
- __le32 sdu_itime
- __le32 acc_lat
- __le32 flush_to
- } __packed
- struct hci_cp_create_accept_logical_link {
- __u8 phy_handle
- struct ext_flow_spec tx_flow_spec
- struct ext_flow_spec rx_flow_spec
- } __packed
- struct hci_cp_disconn_logical_link {
- __le16 log_handle
- } __packed
- struct hci_cp_logical_link_cancel {
- __u8 phy_handle
- __u8 flow_spec_id
- } __packed
- struct hci_rp_logical_link_cancel {
- __u8 status
- __u8 phy_handle
- __u8 flow_spec_id
- } __packed
- struct hci_cp_set_csb {
- __u8 enable
- __u8 lt_addr
- __u8 lpo_allowed
- __le16 packet_type
- __le16 interval_min
- __le16 interval_max
- __le16 csb_sv_tout
- } __packed
- struct hci_rp_set_csb {
- __u8 status
- __u8 lt_addr
- __le16 interval
- } __packed
- struct hci_cp_remote_oob_ext_data_reply {
- bdaddr_t bdaddr;
- __u8 hash192[16]
- __u8 rand192[16]
- __u8 hash256[16]
- __u8 rand256[16]
- } __packed
- struct hci_cp_sniff_mode {
- __le16 handle
- __le16 max_interval
- __le16 min_interval
- __le16 attempt
- __le16 timeout
- } __packed
- struct hci_cp_exit_sniff_mode {
- __le16 handle
- } __packed
- struct hci_cp_role_discovery {
- __le16 handle
- } __packed
- struct hci_rp_role_discovery {
- __u8 status
- __le16 handle
- __u8 role
- } __packed
- struct hci_cp_switch_role {
- bdaddr_t bdaddr;
- __u8 role
- } __packed
- struct hci_cp_read_link_policy {
- __le16 handle
- } __packed
- struct hci_rp_read_link_policy {
- __u8 status
- __le16 handle
- __le16 policy
- } __packed
- struct hci_cp_write_link_policy {
- __le16 handle
- __le16 policy
- } __packed
- struct hci_rp_write_link_policy {
- __u8 status
- __le16 handle
- } __packed
- struct hci_rp_read_def_link_policy {
- __u8 status
- __le16 policy
- } __packed
- struct hci_cp_write_def_link_policy {
- __le16 policy
- } __packed
- struct hci_cp_sniff_subrate {
- __le16 handle
- __le16 max_latency
- __le16 min_remote_timeout
- __le16 min_local_timeout
- } __packed
- struct hci_cp_set_event_flt {
- __u8 flt_type
- __u8 cond_type
- __u8 condition[0]
- } __packed
- struct hci_cp_read_stored_link_key {
- bdaddr_t bdaddr;
- __u8 read_all
- } __packed
- struct hci_rp_read_stored_link_key {
- __u8 status
- __u8 max_keys
- __u8 num_keys
- } __packed
- struct hci_cp_delete_stored_link_key {
- bdaddr_t bdaddr;
- __u8 delete_all
- } __packed
- struct hci_rp_delete_stored_link_key {
- __u8 status
- __u8 num_keys
- } __packed
- struct hci_cp_write_local_name {
- __u8 name[HCI_MAX_NAME_LENGTH]
- } __packed
- struct hci_rp_read_local_name {
- __u8 status
- __u8 name[HCI_MAX_NAME_LENGTH]
- } __packed
-
-
-
-
-
-
-
-
- struct hci_rp_read_class_of_dev {
- __u8 status
- __u8 dev_class[3]
- } __packed
- struct hci_cp_write_class_of_dev {
- __u8 dev_class[3]
- } __packed
- struct hci_rp_read_voice_setting {
- __u8 status
- __le16 voice_setting
- } __packed
- struct hci_cp_write_voice_setting {
- __le16 voice_setting
- } __packed
- struct hci_cp_host_buffer_size {
- __le16 acl_mtu
- __u8 sco_mtu;
- __le16 acl_max_pkt
- __le16 sco_max_pkt;
- } __packed
- struct hci_rp_read_num_supported_iac {
- __u8 status
- __u8 num_iac
- } __packed
- struct hci_cp_write_current_iac_lap {
- __u8 num_iac
- __u8 iac_lap[6]
- } __packed
- struct hci_cp_write_eir {
- __u8 fec
- __u8 data[HCI_MAX_EIR_LENGTH]
- } __packed
- struct hci_rp_read_ssp_mode {
- __u8 status
- __u8 mode
- } __packed
- struct hci_cp_write_ssp_mode {
- __u8 mode
- } __packed
- struct hci_rp_read_local_oob_data {
- __u8 status
- __u8 hash[16]
- __u8 rand[16]
- } __packed
- struct hci_rp_read_inq_rsp_tx_power {
- __u8 status
- __s8 tx_power
- } __packed
- struct hci_rp_read_flow_control_mode {
- __u8 status
- __u8 mode
- } __packed
- struct hci_cp_write_le_host_supported {
- __u8 le
- __u8 simul
- } __packed
- struct hci_cp_set_reserved_lt_addr {
- __u8 lt_addr
- } __packed
- struct hci_rp_set_reserved_lt_addr {
- __u8 status
- __u8 lt_addr
- } __packed
- struct hci_cp_delete_reserved_lt_addr {
- __u8 lt_addr
- } __packed
- struct hci_rp_delete_reserved_lt_addr {
- __u8 status
- __u8 lt_addr
- } __packed
- struct hci_cp_set_csb_data {
- __u8 lt_addr
- __u8 fragment
- __u8 data_length
- __u8 data[HCI_MAX_CSB_DATA_SIZE]
- } __packed
- struct hci_rp_set_csb_data {
- __u8 status
- __u8 lt_addr
- } __packed
- struct hci_cp_write_sync_train_params {
- __le16 interval_min
- __le16 interval_max
- __le32 sync_train_tout;
- __u8 service_data
- } __packed
- struct hci_rp_write_sync_train_params {
- __u8 status
- __le16 sync_train_int;
- } __packed
- struct hci_rp_read_sc_support {
- __u8 status
- __u8 support
- } __packed
- struct hci_cp_write_sc_support {
- __u8 support
- } __packed
- struct hci_rp_read_local_oob_ext_data {
- __u8 status
- __u8 hash192[16]
- __u8 rand192[16]
- __u8 hash256[16]
- __u8 rand256[16]
- } __packed
- struct hci_rp_read_local_version {
- __u8 status
- __u8 hci_ver
- __le16 hci_rev
- __u8 lmp_ver
- __le16 manufacturer
- __le16 lmp_subver
- } __packed
- struct hci_rp_read_local_commands {
- __u8 status
- __u8 commands[64]
- } __packed
- struct hci_rp_read_local_features {
- __u8 status
- __u8 features[8]
- } __packed
- struct hci_cp_read_local_ext_features {
- __u8 page
- } __packed
- struct hci_rp_read_local_ext_features {
- __u8 status
- __u8 page
- __u8 max_page
- __u8 features[8]
- } __packed
- struct hci_rp_read_buffer_size {
- __u8 status
- __le16 acl_mtu
- __u8 sco_mtu;
- __le16 acl_max_pkt
- __le16 sco_max_pkt;
- } __packed
- struct hci_rp_read_bd_addr {
- __u8 status
- bdaddr_t bdaddr;
- } __packed
- struct hci_rp_read_data_block_size {
- __u8 status
- __le16 max_acl_len
- __le16 block_len;
- __le16 num_blocks
- } __packed
- struct hci_rp_read_page_scan_activity {
- __u8 status
- __le16 interval
- __le16 window
- } __packed
- struct hci_cp_write_page_scan_activity {
- __le16 interval
- __le16 window
- } __packed
- struct hci_cp_read_tx_power {
- __le16 handle
- __u8 type
- } __packed
- struct hci_rp_read_tx_power {
- __u8 status
- __le16 handle
- __s8 tx_power
- } __packed
- struct hci_rp_read_page_scan_type {
- __u8 status
- __u8 type
- } __packed
-
-
- struct hci_cp_read_rssi {
- __le16 handle
- } __packed
- struct hci_rp_read_rssi {
- __u8 status
- __le16 handle
- __s8 rssi
- } __packed
- struct hci_cp_read_clock {
- __le16 handle
- __u8 which
- } __packed
- struct hci_rp_read_clock {
- __u8 status
- __le16 handle
- __le32 clock;
- __le16 accuracy
- } __packed
- struct hci_cp_read_enc_key_size {
- __le16 handle
- } __packed
- struct hci_rp_read_enc_key_size {
- __u8 status
- __le16 handle
- __u8 key_size
- } __packed
- struct hci_rp_read_local_amp_info {
- __u8 status
- __u8 amp_status
- __le32 total_bw
- __le32 max_bw
- __le32 min_latency
- __le32 max_pdu
- __u8 amp_type
- __le16 pal_cap
- __le16 max_assoc_size
- __le32 max_flush_to
- __le32 be_flush_to;
- } __packed
- struct hci_cp_read_local_amp_assoc {
- __u8 phy_handle
- __le16 len_so_far
- __le16 max_len
- } __packed
- struct hci_rp_read_local_amp_assoc {
- __u8 status
- __u8 phy_handle
- __le16 rem_len
- __u8 frag[0]
- } __packed
- struct hci_cp_write_remote_amp_assoc {
- __u8 phy_handle
- __le16 len_so_far
- __le16 rem_len
- __u8 frag[0]
- } __packed
- struct hci_rp_write_remote_amp_assoc {
- __u8 status
- __u8 phy_handle
- } __packed
- struct hci_cp_le_set_event_mask {
- __u8 mask[8]
- } __packed
- struct hci_rp_le_read_buffer_size {
- __u8 status
- __le16 le_mtu
- __u8 le_max_pkt
- } __packed
- struct hci_rp_le_read_local_features {
- __u8 status
- __u8 features[8]
- } __packed
- struct hci_cp_le_set_adv_param {
- __le16 min_interval
- __le16 max_interval
- __u8 type
- __u8 own_address_type
- __u8 direct_addr_type;
- bdaddr_t direct_addr;
- __u8 channel_map
- __u8 filter_policy
- } __packed
- struct hci_rp_le_read_adv_tx_power {
- __u8 status
- __s8 tx_power
- } __packed
- struct hci_cp_le_set_adv_data {
- __u8 length
- __u8 data[HCI_MAX_AD_LENGTH]
- } __packed
- struct hci_cp_le_set_scan_rsp_data {
- __u8 length
- __u8 data[HCI_MAX_AD_LENGTH]
- } __packed
- struct hci_cp_le_set_scan_param {
- __u8 type
- __le16 interval
- __le16 window
- __u8 own_address_type
- __u8 filter_policy
- } __packed
- struct hci_cp_le_set_scan_enable {
- __u8 enable
- __u8 filter_dup
- } __packed
- struct hci_cp_le_create_conn {
- __le16 scan_interval;
- __le16 scan_window;
- __u8 filter_policy
- __u8 peer_addr_type
- bdaddr_t peer_addr
- __u8 own_address_type
- __le16 conn_interval_min
- __le16 conn_interval_max
- __le16 conn_latency
- __le16 supervision_timeout
- __le16 min_ce_len
- __le16 max_ce_len
- } __packed
- struct hci_rp_le_read_white_list_size {
- __u8 status
- __u8 size
- } __packed
- struct hci_cp_le_add_to_white_list {
- __u8 bdaddr_type;
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_le_del_from_white_list {
- __u8 bdaddr_type;
- bdaddr_t bdaddr;
- } __packed
- struct hci_cp_le_conn_update {
- __le16 handle
- __le16 conn_interval_min
- __le16 conn_interval_max
- __le16 conn_latency
- __le16 supervision_timeout
- __le16 min_ce_len
- __le16 max_ce_len
- } __packed
- struct hci_cp_le_read_remote_features {
- __le16 handle
- } __packed
- struct hci_cp_le_start_enc {
- __le16 handle
- __le64 rand
- __le16 ediv
- __u8 ltk[16]
- } __packed
- struct hci_cp_le_ltk_reply {
- __le16 handle
- __u8 ltk[16]
- } __packed
- struct hci_rp_le_ltk_reply {
- __u8 status
- __le16 handle
- } __packed
- struct hci_cp_le_ltk_neg_reply {
- __le16 handle
- } __packed
- struct hci_rp_le_ltk_neg_reply {
- __u8 status
- __le16 handle
- } __packed
- struct hci_rp_le_read_supported_states {
- __u8 status
- __u8 le_states[8]
- } __packed
- struct hci_cp_le_conn_param_req_reply {
- __le16 handle
- __le16 interval_min
- __le16 interval_max
- __le16 latency
- __le16 timeout
- __le16 min_ce_len
- __le16 max_ce_len
- } __packed
- struct hci_cp_le_conn_param_req_neg_reply {
- __le16 handle
- __u8 reason
- } __packed
- struct hci_cp_le_set_data_len {
- __le16 handle
- __le16 tx_len
- __le16 tx_time
- } __packed
- struct hci_rp_le_set_data_len {
- __u8 status
- __le16 handle
- } __packed
- struct hci_rp_le_read_def_data_len {
- __u8 status
- __le16 tx_len
- __le16 tx_time
- } __packed
- struct hci_cp_le_write_def_data_len {
- __le16 tx_len
- __le16 tx_time
- } __packed
- struct hci_rp_le_read_max_data_len {
- __u8 status
- __le16 tx_len
- __le16 tx_time
- __le16 rx_len
- __le16 rx_time
- } __packed
- struct inquiry_info {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- __u8 pscan_period_mode
- __u8 pscan_mode
- __u8 dev_class[3]
- __le16 clock_offset;
- } __packed
- struct hci_ev_conn_complete {
- __u8 status
- __le16 handle
- bdaddr_t bdaddr;
- __u8 link_type
- __u8 encr_mode
- } __packed
- struct hci_ev_conn_request {
- bdaddr_t bdaddr;
- __u8 dev_class[3]
- __u8 link_type
- } __packed
- struct hci_ev_disconn_complete {
- __u8 status
- __le16 handle
- __u8 reason
- } __packed
- struct hci_ev_auth_complete {
- __u8 status
- __le16 handle
- } __packed
- struct hci_ev_remote_name {
- __u8 status
- bdaddr_t bdaddr;
- __u8 name[HCI_MAX_NAME_LENGTH]
- } __packed
- struct hci_ev_encrypt_change {
- __u8 status
- __le16 handle
- __u8 encrypt
- } __packed
- struct hci_ev_change_link_key_complete {
- __u8 status
- __le16 handle
- } __packed
- struct hci_ev_remote_features {
- __u8 status
- __le16 handle
- __u8 features[8]
- } __packed
- struct hci_ev_remote_version {
- __u8 status
- __le16 handle
- __u8 lmp_ver
- __le16 manufacturer
- __le16 lmp_subver
- } __packed
- struct hci_qos {
- __u8 service_type
- __u32 token_rate
- __u32 peak_bandwidth
- __u32 latency
- __u32 delay_variation
- } __packed
- struct hci_ev_qos_setup_complete {
- __u8 status
- __le16 handle
- struct hci_qos qos
- } __packed
- struct hci_ev_cmd_complete {
- __u8 ncmd
- __le16 opcode
- } __packed
- struct hci_ev_cmd_status {
- __u8 status
- __u8 ncmd
- __le16 opcode
- } __packed
- struct hci_ev_hardware_error {
- __u8 code
- } __packed
- struct hci_ev_role_change {
- __u8 status
- bdaddr_t bdaddr;
- __u8 role
- } __packed
- struct hci_comp_pkts_info {
- __le16 handle
- __le16 count
- } __packed
- struct hci_ev_num_comp_pkts {
- __u8 num_hndl
- struct hci_comp_pkts_info handles[0]
- } __packed
- struct hci_ev_mode_change {
- __u8 status
- __le16 handle
- __u8 mode
- __le16 interval
- } __packed
- struct hci_ev_pin_code_req {
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_link_key_req {
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_link_key_notify {
- bdaddr_t bdaddr;
- __u8 link_key[HCI_LINK_KEY_SIZE]
- __u8 key_type
- } __packed
- struct hci_ev_clock_offset {
- __u8 status
- __le16 handle
- __le16 clock_offset;
- } __packed
- struct hci_ev_pkt_type_change {
- __u8 status
- __le16 handle
- __le16 pkt_type
- } __packed
- struct hci_ev_pscan_rep_mode {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- } __packed
- struct inquiry_info_with_rssi {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- __u8 pscan_period_mode
- __u8 dev_class[3]
- __le16 clock_offset;
- __s8 rssi
- } __packed
- struct inquiry_info_with_rssi_and_pscan_mode {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- __u8 pscan_period_mode
- __u8 pscan_mode
- __u8 dev_class[3]
- __le16 clock_offset;
- __s8 rssi
- } __packed
- struct hci_ev_remote_ext_features {
- __u8 status
- __le16 handle
- __u8 page
- __u8 max_page
- __u8 features[8]
- } __packed
- struct hci_ev_sync_conn_complete {
- __u8 status
- __le16 handle
- bdaddr_t bdaddr;
- __u8 link_type
- __u8 tx_interval
- __u8 retrans_window
- __le16 rx_pkt_len
- __le16 tx_pkt_len
- __u8 air_mode
- } __packed
- struct hci_ev_sync_conn_changed {
- __u8 status
- __le16 handle
- __u8 tx_interval
- __u8 retrans_window
- __le16 rx_pkt_len
- __le16 tx_pkt_len
- } __packed
- struct hci_ev_sniff_subrate {
- __u8 status
- __le16 handle
- __le16 max_tx_latency
- __le16 max_rx_latency
- __le16 max_remote_timeout
- __le16 max_local_timeout
- } __packed
- struct extended_inquiry_info {
- bdaddr_t bdaddr;
- __u8 pscan_rep_mode
- __u8 pscan_period_mode
- __u8 dev_class[3]
- __le16 clock_offset;
- __s8 rssi
- __u8 data[240]
- } __packed
- struct hci_ev_key_refresh_complete {
- __u8 status
- __le16 handle
- } __packed
- struct hci_ev_io_capa_request {
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_io_capa_reply {
- bdaddr_t bdaddr;
- __u8 capability
- __u8 oob_data
- __u8 authentication
- } __packed
- struct hci_ev_user_confirm_req {
- bdaddr_t bdaddr;
- __le32 passkey
- } __packed
- struct hci_ev_user_passkey_req {
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_remote_oob_data_request {
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_simple_pair_complete {
- __u8 status
- bdaddr_t bdaddr;
- } __packed
- struct hci_ev_user_passkey_notify {
- bdaddr_t bdaddr;
- __le32 passkey
- } __packed
- struct hci_ev_keypress_notify {
- bdaddr_t bdaddr;
- __u8 type
- } __packed
- struct hci_ev_remote_host_features {
- bdaddr_t bdaddr;
- __u8 features[8]
- } __packed
- struct hci_ev_le_meta {
- __u8 subevent;
- } __packed
- struct hci_ev_phy_link_complete {
- __u8 status
- __u8 phy_handle
- } __packed
- struct hci_ev_channel_selected {
- __u8 phy_handle
- } __packed
- struct hci_ev_disconn_phy_link_complete {
- __u8 status
- __u8 phy_handle
- __u8 reason
- } __packed
- struct hci_ev_logical_link_complete {
- __u8 status
- __le16 handle
- __u8 phy_handle
- __u8 flow_spec_id
- } __packed
- struct hci_ev_disconn_logical_link_complete {
- __u8 status
- __le16 handle
- __u8 reason
- } __packed
- struct hci_comp_blocks_info {
- __le16 handle
- __le16 pkts
- __le16 blocks;
- } __packed
- struct hci_ev_num_comp_blocks {
- __le16 num_blocks
- __u8 num_hndl
- struct hci_comp_blocks_info handles[0]
- } __packed
- struct hci_ev_sync_train_complete {
- __u8 status
- } __packed
- struct hci_ev_le_conn_complete {
- __u8 status
- __le16 handle
- __u8 role
- __u8 bdaddr_type;
- bdaddr_t bdaddr;
- __le16 interval
- __le16 latency
- __le16 supervision_timeout
- __u8 clk_accurancy
- } __packed
- struct hci_ev_le_advertising_info {
- __u8 evt_type
- __u8 bdaddr_type;
- bdaddr_t bdaddr;
- __u8 length
- __u8 data[0]
- } __packed
- struct hci_ev_le_conn_update_complete {
- __u8 status
- __le16 handle
- __le16 interval
- __le16 latency
- __le16 supervision_timeout
- } __packed
- struct hci_ev_le_remote_feat_complete {
- __u8 status
- __le16 handle
- __u8 features[8]
- } __packed
- struct hci_ev_le_ltk_req {
- __le16 handle
- __le64 rand
- __le16 ediv
- } __packed
- struct hci_ev_le_remote_conn_param_req {
- __le16 handle
- __le16 interval_min
- __le16 interval_max
- __le16 latency
- __le16 timeout
- } __packed
- struct hci_ev_le_data_len_change {
- __le16 handle
- __le16 tx_len
- __le16 tx_time
- __le16 rx_len
- __le16 rx_time
- } __packed
- struct hci_ev_le_direct_adv_info {
- __u8 evt_type
- __u8 bdaddr_type;
- bdaddr_t bdaddr;
- __u8 direct_addr_type;
- bdaddr_t direct_addr;
- __s8 rssi
- } __packed
- struct hci_ev_stack_internal {
- __u16 type
- __u8 data[0]
- } __packed
- struct hci_ev_si_device {
- __u16 event
- __u16 dev_id
- } __packed
- struct hci_ev_si_security {
- __u16 event
- __u16 proto
- __u16 subproto;
- __u8 incoming
- } __packed
- struct hci_command_hdr {
- __le16 opcode
- __u8 plen
- } __packed
- struct hci_event_hdr {
- __u8 evt
- __u8 plen
- } __packed
- struct hci_acl_hdr {
- __le16 handle
- __le16 dlen
- } __packed
- struct hci_sco_hdr {
- __le16 handle
- __u8 dlen
- } __packed
- static inline struct hci_event_hdr *hci_event_hdr(const struct sk_buff *skb)
- {
- return (struct hci_event_hdr *) skb->data
- }
- static inline struct hci_acl_hdr *hci_acl_hdr(const struct sk_buff *skb)
- {
- return (struct hci_acl_hdr *) skb->data
- }
- static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb)
- {
- return (struct hci_sco_hdr *) skb->data
- }
|