22 #define A2MP_COMMAND_REJ 0x01 23 #define A2MP_DISCOVER_REQ 0x02 24 #define A2MP_DISCOVER_RSP 0x03 25 #define A2MP_CHANGE_NOTIFY 0x04 26 #define A2MP_CHANGE_RSP 0x05 27 #define A2MP_INFO_REQ 0x06 28 #define A2MP_INFO_RSP 0x07 29 #define A2MP_ASSOC_REQ 0x08 30 #define A2MP_ASSOC_RSP 0x09 31 #define A2MP_CREATE_REQ 0x0a 32 #define A2MP_CREATE_RSP 0x0b 33 #define A2MP_DISCONN_REQ 0x0c 34 #define A2MP_DISCONN_RSP 0x0d 41 #define A2MP_HDR_SIZE 4 66 } __attribute__ ((packed));
76 } __attribute__ ((packed));
80 } __attribute__ ((packed));
85 uint8_t assoc_data[0];
86 } __attribute__ ((packed));
91 uint8_t assoc_data[0];
92 } __attribute__ ((packed));
98 } __attribute__ ((packed));
103 } __attribute__ ((packed));
109 } __attribute__ ((packed));
111 #define A2MP_COMMAND_NOT_RECOGNIZED 0x0000 114 #define AMP_CTRL_POWERED_DOWN 0x00 115 #define AMP_CTRL_BLUETOOTH_ONLY 0x01 116 #define AMP_CTRL_NO_CAPACITY 0x02 117 #define AMP_CTRL_LOW_CAPACITY 0x03 118 #define AMP_CTRL_MEDIUM_CAPACITY 0x04 119 #define AMP_CTRL_HIGH_CAPACITY 0x05 120 #define AMP_CTRL_FULL_CAPACITY 0x06 123 #define A2MP_STATUS_SUCCESS 0x00 124 #define A2MP_STATUS_INVALID_CTRL_ID 0x01 125 #define A2MP_STATUS_UNABLE_START_LINK_CREATION 0x02 126 #define A2MP_STATUS_NO_PHYSICAL_LINK_EXISTS 0x02 127 #define A2MP_STATUS_COLLISION_OCCURED 0x03 128 #define A2MP_STATUS_DISCONN_REQ_RECVD 0x04 129 #define A2MP_STATUS_PHYS_LINK_EXISTS 0x05 130 #define A2MP_STATUS_SECURITY_VIOLATION 0x06