diff --git a/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c b/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
index 0e2a5ceb3630b906b48a8806581a39e14a5a2dd9..7278c2727dddd79c9e6f3b1df9f891db6e4f7125 100644
--- a/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
+++ b/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
@@ -148,7 +148,7 @@ int trx_eth_write_raw(openair0_device *device, openair0_timestamp timestamp, voi
   
     int sent_byte;
     
-    if (eth->compression = ALAW_COMPRESS) {
+    if (eth->compression == ALAW_COMPRESS) {
       sent_byte = RAW_PACKET_SIZE_BYTES_ALAW(nsamps);
     } else {
       sent_byte = RAW_PACKET_SIZE_BYTES(nsamps);
diff --git a/targets/RT/USER/lte-softmodem.c b/targets/RT/USER/lte-softmodem.c
index ed9d955e8a435889bc7bca129989c71c261339bc..8303d88218fbe0fbf83ab827133e3b29d355f5de 100644
--- a/targets/RT/USER/lte-softmodem.c
+++ b/targets/RT/USER/lte-softmodem.c
@@ -1081,6 +1081,7 @@ static void get_options (int argc, char **argv) {
                     } else {
                         (eth_params+j)->rf_preference          = 0;
                     }
+                    (eth_params+j)->if_compress               = enb_properties->properties[i]->rrh_gw_config[j].if_compress;
                 } else {
                     local_remote_radio = BBU_LOCAL_RADIO_HEAD;
                 }