Lines Matching refs:ev
62 struct btmgmt_ev_cmd_status ev; member
125 static void btmgmt_complete_set_public_addr(struct btmgmt_ev_cmd_status* ev, in btmgmt_complete_set_public_addr() argument
127 if (ev->status == 0) { in btmgmt_complete_set_public_addr()
132 ": error 0x%x", MAC_ADDRESS_ARGS(bdaddr), ev->status); in btmgmt_complete_set_public_addr()
136 static bool btmgmt_config_needs_public_addr(struct btmgmt_ev_cmd_status* ev) { in btmgmt_config_needs_public_addr() argument
137 struct btmgmt_ev_cc_config_info* info = (struct btmgmt_ev_cc_config_info*) ev; in btmgmt_config_needs_public_addr()
138 if (info->ev.status) { in btmgmt_config_needs_public_addr()
139 if (info->ev.status != BTMGMT_ERR_INVALID_INDEX) in btmgmt_config_needs_public_addr()
141 info->ev.status); in btmgmt_config_needs_public_addr()
145 if (info->ev.hdr.cmd != BTMGMT_EV_CMD_COMPLETE in btmgmt_config_needs_public_addr()
146 || info->ev.hdr.len < sizeof(*info) - sizeof(info->ev.hdr)) in btmgmt_config_needs_public_addr()
182 struct btmgmt_ev_cmd_status* ev = (struct btmgmt_ev_cmd_status*) hdr; in main() local
196 if (hdr->len < sizeof(*ev) - sizeof(hdr)) in main()
199 switch (ev->cmd) { in main()
201 if (btmgmt_config_needs_public_addr(ev)) in main()
205 btmgmt_complete_set_public_addr(ev, bdaddr); in main()