From 0d95159a2a45a0cdf3de81cea12c414ff384558a Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 31 Oct 2017 08:01:02 -0700 Subject: [PATCH 1/2] Fix issue #114 --- lib/src/common/pdu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common/pdu.cc b/lib/src/common/pdu.cc index 57bc07043..b8d17d984 100644 --- a/lib/src/common/pdu.cc +++ b/lib/src/common/pdu.cc @@ -823,7 +823,7 @@ void rar_subh::write_subheader(uint8_t** ptr, bool is_last) // Section 6.2.3 void rar_subh::write_payload(uint8_t** ptr) { - *(*ptr + 0) = (uint8_t) (ta&0x7f0)>>4; + *(*ptr + 0) = (uint8_t) ((ta&0x7f0)>>4); *(*ptr + 1) = (uint8_t) ((ta&0xf) <<4) | (grant[0]<<3) | (grant[1]<<2) | (grant[2]<<1) | grant[3]; uint8_t *x = &grant[4]; *(*ptr + 2) = (uint8_t) srslte_bit_pack(&x, 8); From 935afe6ef35886956aeb722c4d64f5bde708bd6d Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Thu, 2 Nov 2017 17:44:56 +0000 Subject: [PATCH 2/2] Minor soapy fix --- lib/src/phy/rf/rf_soapy_imp.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/src/phy/rf/rf_soapy_imp.c b/lib/src/phy/rf/rf_soapy_imp.c index fef533ffc..18c5b01cd 100644 --- a/lib/src/phy/rf/rf_soapy_imp.c +++ b/lib/src/phy/rf/rf_soapy_imp.c @@ -286,11 +286,6 @@ double rf_soapy_set_rx_srate(void *h, double rate) return SRSLTE_ERROR; } - if (SoapySDRDevice_setBandwidth(handler->device, SOAPY_SDR_RX, 0, rate) != 0) { - printf("setBandwidth Rx failed: %s\n", SoapySDRDevice_lastError()); - return SRSLTE_ERROR; - } - return SoapySDRDevice_getSampleRate(handler->device, SOAPY_SDR_RX,0); } @@ -302,11 +297,6 @@ double rf_soapy_set_tx_srate(void *h, double rate) return SRSLTE_ERROR; } - if (SoapySDRDevice_setBandwidth(handler->device, SOAPY_SDR_TX, 0, rate) != 0) { - printf("setBandwidth Tx failed: %s\n", SoapySDRDevice_lastError()); - return SRSLTE_ERROR; - } - return SoapySDRDevice_getSampleRate(handler->device, SOAPY_SDR_TX,0); }