@@ -677,7 +677,6 @@ int bt_mesh_net_resend(struct bt_mesh_subnet *sub, struct net_buf *buf,
677
677
return 0 ;
678
678
}
679
679
680
- #if defined(CONFIG_BT_MESH_LOCAL_INTERFACE )
681
680
static void bt_mesh_net_local (struct k_work * work )
682
681
{
683
682
struct net_buf * buf ;
@@ -688,7 +687,6 @@ static void bt_mesh_net_local(struct k_work *work)
688
687
net_buf_unref (buf );
689
688
}
690
689
}
691
- #endif
692
690
693
691
int bt_mesh_net_encode (struct bt_mesh_net_tx * tx , struct net_buf_simple * buf ,
694
692
bool proxy )
@@ -801,7 +799,6 @@ int bt_mesh_net_send(struct bt_mesh_net_tx *tx, struct net_buf *buf,
801
799
}
802
800
}
803
801
804
- #if defined(CONFIG_BT_MESH_LOCAL_INTERFACE )
805
802
/* Deliver to local network interface if necessary */
806
803
if (bt_mesh_fixed_group_match (tx -> ctx -> addr ) ||
807
804
bt_mesh_elem_find (tx -> ctx -> addr )) {
@@ -813,9 +810,6 @@ int bt_mesh_net_send(struct bt_mesh_net_tx *tx, struct net_buf *buf,
813
810
} else {
814
811
bt_mesh_adv_send (buf , cb );
815
812
}
816
- #else
817
- bt_mesh_adv_send (buf , cb );
818
- #endif
819
813
820
814
done :
821
815
net_buf_unref (buf );
@@ -975,9 +969,6 @@ static int net_find_and_decrypt(const u8_t *data, size_t data_len,
975
969
return false;
976
970
}
977
971
978
- #if (defined(CONFIG_BT_MESH_RELAY ) || \
979
- defined(CONFIG_BT_MESH_FRIEND ) || \
980
- defined(CONFIG_BT_MESH_GATT_PROXY ))
981
972
static void bt_mesh_net_relay (struct net_buf_simple * sbuf ,
982
973
struct bt_mesh_net_rx * rx )
983
974
{
@@ -1081,7 +1072,6 @@ static void bt_mesh_net_relay(struct net_buf_simple *sbuf,
1081
1072
done :
1082
1073
net_buf_unref (buf );
1083
1074
}
1084
- #endif /* RELAY || FRIEND || GATT_PROXY */
1085
1075
1086
1076
int bt_mesh_net_decode (struct net_buf_simple * data , enum bt_mesh_net_if net_if ,
1087
1077
struct bt_mesh_net_rx * rx , struct net_buf_simple * buf ,
@@ -1191,12 +1181,8 @@ void bt_mesh_net_recv(struct net_buf_simple *data, s8_t rssi,
1191
1181
}
1192
1182
}
1193
1183
1194
- #if (defined(CONFIG_BT_MESH_RELAY ) || \
1195
- defined(CONFIG_BT_MESH_FRIEND ) || \
1196
- defined(CONFIG_BT_MESH_GATT_PROXY ))
1197
1184
net_buf_simple_restore (buf , & state );
1198
1185
bt_mesh_net_relay (buf , & rx );
1199
- #endif /* CONFIG_BT_MESH_RELAY || FRIEND || GATT_PROXY */
1200
1186
}
1201
1187
1202
1188
static void ivu_complete (struct k_work * work )
@@ -1211,7 +1197,5 @@ void bt_mesh_net_init(void)
1211
1197
{
1212
1198
k_delayed_work_init (& bt_mesh .ivu_complete , ivu_complete );
1213
1199
1214
- #if defined(CONFIG_BT_MESH_LOCAL_INTERFACE )
1215
1200
k_work_init (& bt_mesh .local_work , bt_mesh_net_local );
1216
- #endif
1217
1201
}
0 commit comments