28 #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__
30 #include <linux/types.h>
32 #include <linux/bitops.h>
49 pr_debug(
"nci_ver 0x%x, config_status 0x%x\n",
85 rsp_2->max_ctrl_pkt_payload_len;
95 pr_debug(
"num_supported_rf_interfaces %d\n",
97 pr_debug(
"supported_rf_interfaces[0] 0x%x\n",
99 pr_debug(
"supported_rf_interfaces[1] 0x%x\n",
101 pr_debug(
"supported_rf_interfaces[2] 0x%x\n",
103 pr_debug(
"supported_rf_interfaces[3] 0x%x\n",
105 pr_debug(
"max_logical_connections %d\n",
107 pr_debug(
"max_routing_table_size %d\n",
109 pr_debug(
"max_ctrl_pkt_payload_len %d\n",
111 pr_debug(
"max_size_for_large_params %d\n",
115 pr_debug(
"manufact_specific_info 0x%x\n",
122 static void nci_core_set_config_rsp_packet(
struct nci_dev *ndev,
132 static void nci_rf_disc_map_rsp_packet(
struct nci_dev *ndev,
142 static void nci_rf_disc_rsp_packet(
struct nci_dev *ndev,
struct sk_buff *skb)
154 static void nci_rf_disc_select_rsp_packet(
struct nci_dev *ndev,
166 static void nci_rf_deactivate_rsp_packet(
struct nci_dev *ndev,
189 pr_debug(
"NCI RX: MT=rsp, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n",
198 switch (rsp_opcode) {
200 nci_core_reset_rsp_packet(ndev, skb);
204 nci_core_init_rsp_packet(ndev, skb);
208 nci_core_set_config_rsp_packet(ndev, skb);
212 nci_rf_disc_map_rsp_packet(ndev, skb);
216 nci_rf_disc_rsp_packet(ndev, skb);
220 nci_rf_disc_select_rsp_packet(ndev, skb);
224 nci_rf_deactivate_rsp_packet(ndev, skb);
228 pr_err(
"unknown rsp opcode 0x%x\n", rsp_opcode);
236 if (!skb_queue_empty(&ndev->
cmd_q))