diff --git a/openair2/RRC/LITE/defs.h b/openair2/RRC/LITE/defs.h index 18defaec825f2dcb2b3a28d06d9d52689e19c8db..e14c14f4159f1578fe2e56ef2f3dfcccb73a496c 100644 --- a/openair2/RRC/LITE/defs.h +++ b/openair2/RRC/LITE/defs.h @@ -47,7 +47,7 @@ #include "LAYER2/MAC/defs.h" -//TTN-for D2D +//for D2D #define CONTROL_SOCKET_PORT_NO 8888 #define DEBUG_CTRL_SOCKET #define BUFSIZE 1024 @@ -58,8 +58,8 @@ #define UE_IP_PDCP_NETLINK_ID 31 #define PDCP_PID 1 #define NETLINK_HEADER_SIZE 16 -#define SL_DEFAULT_RAB_ID 1 -#define SLRB_ID 11 +#define SL_DEFAULT_RAB_ID 3 +#define SLRB_ID 3 #define MAX_PAYLOAD 1024 /* maximum payload size*/ @@ -130,7 +130,7 @@ extern pthread_mutex_t slrb_mutex; //the thread function void *send_UE_status_notification(void *); -//end TTN + //#include "COMMON/openair_defs.h" #ifndef USER_MODE diff --git a/openair2/RRC/LITE/proto.h b/openair2/RRC/LITE/proto.h index 468565fb5b8e4eda25b05222956edf32b53b82c1..f349090aa2ed5335fcf9b5a3d5e6de3856b43e2f 100644 --- a/openair2/RRC/LITE/proto.h +++ b/openair2/RRC/LITE/proto.h @@ -352,7 +352,10 @@ SL_DiscConfig_r12_t rrc_eNB_get_sidelink_discTXPool( int n_discoveryMessages ); - +/** \brief Process request from control socket + * \param arg + */ +static void *rrc_control_socket_thread_fct(void *arg); //L2_interface.c int8_t diff --git a/openair2/RRC/LITE/rrc_UE.c b/openair2/RRC/LITE/rrc_UE.c index 3a44791f1d2f00fea2a7ff9c9e33142118a329ae..9b59ecf1f8e1b7845596f813efa48d2277d2535f 100644 --- a/openair2/RRC/LITE/rrc_UE.c +++ b/openair2/RRC/LITE/rrc_UE.c @@ -91,17 +91,13 @@ #ifdef Rel14 #include "SL-Preconfiguration-r12.h" -#endif - -//TTN - for D2D -#define D2D_MODE //enable d2d +//for D2D int ctrl_sock_fd; #define BUFSIZE 1024 struct sockaddr_in prose_app_addr; int slrb_id; pthread_mutex_t slrb_mutex; -static void *rrc_control_socket_thread_fct(void *arg); -//end TTN +#endif #ifdef PHY_EMUL extern EMULATION_VARS *Emul_vars; @@ -5305,7 +5301,7 @@ rrc_ue_process_sidelink_radioResourceConfig( } } -#ifdef D2D_MODE +#ifdef Rel14 //----------------------------------------------------------- void rrc_control_socket_init(){ @@ -5450,6 +5446,7 @@ void *rrc_control_socket_thread_fct(void *arg) LOG_I(RRC,"[rrc_control_socket_thread_fct][GroupCommunicationEstablishReq] group IP Address: " IPV4_ADDR "\n",IPV4_ADDR_FORMAT(sl_ctrl_msg_recv->sidelinkPrimitive.group_comm_establish_req.groupIpAddress)); #endif // configure lower layers PDCP/MAC/PHY for this communication + //init_SL_preconfig() LOG_I(RRC,"[rrc_control_socket_thread_fct]Send GroupCommunicationEstablishResp to ProSe App\n"); memset(send_buf, 0, BUFSIZE); diff --git a/targets/RT/USER/lte-softmodem-stub.c b/targets/RT/USER/lte-softmodem-stub.c index 958bb03f7bdd0a9bd3bbc60520eb60b586fabdc3..cd048a007507fece05014a93c8e7101a4dd8428a 100644 --- a/targets/RT/USER/lte-softmodem-stub.c +++ b/targets/RT/USER/lte-softmodem-stub.c @@ -1064,7 +1064,7 @@ int main( int argc, char **argv ) #endif //TTN for D2D -#ifdef D2D_MODE +#ifdef Rel14 printf ("RRC control socket\n"); rrc_control_socket_init(); #endif