Skip to content

Commit

Permalink
Merge pull request SysSec-KAIST#5 from SysSec-KAIST/LTESniffer-v1.2.0
Browse files Browse the repository at this point in the history
Fixed error and improved stableness
  • Loading branch information
hdtuanss authored Apr 28, 2023
2 parents 5eac982 + 36bc4b7 commit b4254d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/src/LTESniffer_Core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ bool LTESniffer_Core::run(){

/* Print statistic of harq retransmission*/
//if (harq_mode){ harq.printHARQDatabase(); }
return EXIT_SUCCESS;
}

void LTESniffer_Core::stop() {
Expand Down
18 changes: 9 additions & 9 deletions src/src/SubframeWorker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ uint16_t get_tti_ul_harq(uint16_t cur_tti)
}
}

int update_rv(int old_rv){
if (old_rv == 0){
return 2;
} else if (old_rv == 2){
return 3;
} else if (old_rv == 3){
return 1;
}
}
// int update_rv(int old_rv){
// if (old_rv == 0){
// return 2;
// } else if (old_rv == 2){
// return 3;
// } else if (old_rv == 3){
// return 1;
// }
// }

void SubframeWorker::work(){
std::string test_string = '[' + std::to_string(idx) + ']' + '[' + std::to_string(sfn) + '-' + std::to_string(sf_idx) + ']';
Expand Down

0 comments on commit b4254d1

Please sign in to comment.