diff --git a/tools/mesh-gatt/config-client.c b/tools/mesh-gatt/config-client.c
index ed31c67..bfc7882 100644
--- a/tools/mesh-gatt/config-client.c
+++ b/tools/mesh-gatt/config-client.c
if (primary != src)
return false;
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
diff --git a/tools/mesh-gatt/config-server.c b/tools/mesh-gatt/config-server.c
index 8fc6edc..9e9b939 100644
--- a/tools/mesh-gatt/config-server.c
+++ b/tools/mesh-gatt/config-server.c
n = 0;
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
diff --git a/tools/mesh-gatt/onoff-model.c b/tools/mesh-gatt/onoff-model.c
index 92c9a31..be519c9 100644
--- a/tools/mesh-gatt/onoff-model.c
+++ b/tools/mesh-gatt/onoff-model.c
len, opcode);
print_byte_array("\t",data, len);
- switch (opcode & ~OP_UNRELIABLE) {
+ switch (opcode) {
default:
return false;
diff --git a/tools/mesh-gatt/util.h b/tools/mesh-gatt/util.h
index c3facfa..dba2c48 100644
--- a/tools/mesh-gatt/util.h
+++ b/tools/mesh-gatt/util.h
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,
diff --git a/tools/mesh/cfgcli.c b/tools/mesh/cfgcli.c
index 218e82c..e36c8dc 100644
--- a/tools/mesh/cfgcli.c
+++ b/tools/mesh/cfgcli.c
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;
diff --git a/tools/mesh/model.h b/tools/mesh/model.h
index 449fe19..35bb80e 100644
--- a/tools/mesh/model.h
+++ b/tools/mesh/model.h
*
*/
-#define OP_UNRELIABLE 0x0100
#define VENDOR_ID_INVALID 0xFFFF
typedef bool (*model_send_msg_func_t) (void *user_data, uint16_t dst,