Commit f0116d6b authored by WANG Tsu-Han's avatar WANG Tsu-Han

fixes for return value for not using usrp write thread

parent 76eec2d1
...@@ -441,6 +441,7 @@ static int trx_usrp_write(openair0_device *device, ...@@ -441,6 +441,7 @@ static int trx_usrp_write(openair0_device *device,
} }
if (ret != nsamps) LOG_E(HW,"[xmit] tx samples %d != %d\n",ret,nsamps); if (ret != nsamps) LOG_E(HW,"[xmit] tx samples %d != %d\n",ret,nsamps);
return ret;
} }
else{ else{
pthread_mutex_lock(&write_thread->mutex_write); pthread_mutex_lock(&write_thread->mutex_write);
...@@ -464,9 +465,9 @@ static int trx_usrp_write(openair0_device *device, ...@@ -464,9 +465,9 @@ static int trx_usrp_write(openair0_device *device,
write_thread->end = (write_thread->end + 1)% MAX_WRITE_THREAD_PACKAGE; write_thread->end = (write_thread->end + 1)% MAX_WRITE_THREAD_PACKAGE;
pthread_cond_signal(&write_thread->cond_write); pthread_cond_signal(&write_thread->cond_write);
pthread_mutex_unlock(&write_thread->mutex_write); pthread_mutex_unlock(&write_thread->mutex_write);
return 0;
} }
return 0;
} }
//-----------------------start-------------------------- //-----------------------start--------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment