/*******************************************************************************
OpenAirInterface
Copyright(c) 1999 - 2014 Eurecom
OpenAirInterface is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenAirInterface is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenAirInterface.The full GNU General Public License is
included in this distribution in the file called "COPYING". If not,
see .
Contact Information
OpenAirInterface Admin: openair_admin@eurecom.fr
OpenAirInterface Tech : openair_tech@eurecom.fr
OpenAirInterface Dev : openair4g-devel@eurecom.fr
Address : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE
*******************************************************************************/
/*________________________openair_rrc_utils.c________________________
Authors : Hicham Anouar
Company : EURECOM
Emails : anouar@eurecom.fr
________________________________________________________________*/
//#include "openair_types.h"
#include "defs.h"
#include "extern.h"
//#include "openair_proto.h"
#ifndef USER_MODE
char bcmp(void *x, void *y,int Size ){
unsigned char i;
for(i=0;imacphy_exit("NO FREE DTCH LCHAN, exit");
return 0;
}
//-------------------------------------------------------------------------------------------//
uint8_t rrc_find_free_ue_index(uint8_t Mod_id){
//-------------------------------------------------------------------------------------------//
uint16_t i;
for(i=1;i<=NB_CNX_CH;i++)
if ( (CH_rrc_inst[Mod_id].Info.UE_list[i][0] == 0) &&
(CH_rrc_inst[Mod_id].Info.UE_list[i][1] == 0) &&
(CH_rrc_inst[Mod_id].Info.UE_list[i][2] == 0) &&
(CH_rrc_inst[Mod_id].Info.UE_list[i][3] == 0) &&
(CH_rrc_inst[Mod_id].Info.UE_list[i][4] == 0))
return i;
return 0xff;
}
//-------------------------------------------------------------------------------------------//
unsigned short rrc_find_ue_index(unsigned char Mod_id, L2_ID Mac_id){
//-------------------------------------------------------------------------------------------//
unsigned char i;
/*
for(i=0;i<=NB_CNX_CH;i++)
if( bcmp(Mac_id.L2_id,CH_rrc_inst[Mod_id].Info.UE_list[i].L2_id,sizeof(L2_ID))==0)
return i;
return i;
*/
}
//-------------------------------------------------------------------------------------------//
uint8_t rrc_is_node_isolated(uint8_t Mod_id){
//-------------------------------------------------------------------------------------------//
/*uint8_t i;
for(i=0;imacphy_exit();
#else
exit(-1);
#endif
*/
}
/*
//--------------------------------------------------------------------------------------------//
SRB_INFO* rrc_find_srb_info(uint8_t Mod_id,uint16_t Srb_id){
//----------------------------------------------------------------------------------------//
uint8_t i;
if(Rrc_inst[Mod_id].Rrc_info[0].Status == CH_READY){
for(i=0;iHeader->Rv_tb_idx=0;
// Rrc_buffer->W_idx=0;
//Rrc_buffer->R_idx=0;
}