This removes an old notion of unreliable opcodes in models , i.e.,
a correctly formatted acknowledged message always gets a response.
Change-Id: I9d6702927addac5a8ad25728046ea2d741f2022e
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
if (primary != src)
return false;
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
n = 0;
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
len, opcode);
print_byte_array("\t",data, len);
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
struct mesh_publication;
-#define OP_UNRELIABLE 0x0100
-
void set_menu_prompt(const char *name, const char *id);
void print_byte_array(const char *prefix, const void *ptr, int len);
bool str2hex(const char *str, uint16_t in_len, uint8_t *out_buf,
bt_shell_printf("Received %s (len %u)\n", opcode_str(opcode), len);
- req = get_req_by_rsp(src, (opcode & ~OP_UNRELIABLE));
+ req = get_req_by_rsp(src, opcode);
if (req) {
cmd = req->cmd;
free_request(req);
} else
cmd = NULL;
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
*
*/
-#define OP_UNRELIABLE 0x0100
#define VENDOR_ID_INVALID 0xFFFF
typedef bool (*model_send_msg_func_t) (void *user_data, uint16_t dst,