summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <92harshsharma@gmail.com>2018-06-13 13:45:30 -0500
committerHarsh Sharma <92harshsharma@gmail.com>2018-06-13 13:45:30 -0500
commita1e618b2e27112153aa37670ce921d1ab3c940a8 (patch)
tree47789baa9518691e14f9020fcbcdb915870e1f29
parent2a02a3a7dfda2679ebda86fa830023fe996a06c9 (diff)
downloadpacket_forwarder_mtac_full-a1e618b2e27112153aa37670ce921d1ab3c940a8.tar.gz
packet_forwarder_mtac_full-a1e618b2e27112153aa37670ce921d1ab3c940a8.tar.bz2
packet_forwarder_mtac_full-a1e618b2e27112153aa37670ce921d1ab3c940a8.zip
Applied patch: lora-packet-forwarder-remove-jit-power-check
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c
index 801f28d..0cbfbe5 100644
--- a/lora_pkt_fwd/src/lora_pkt_fwd.c
+++ b/lora_pkt_fwd/src/lora_pkt_fwd.c
@@ -2513,19 +2513,6 @@ void thread_down(void) {
jit_result = JIT_ERROR_TX_FREQ;
MSG("ERROR: Packet REJECTED, unsupported frequency - %u (min:%u,max:%u)\n", txpkt.freq_hz, tx_freq_min[txpkt.rf_chain], tx_freq_max[txpkt.rf_chain]);
}
- if (jit_result == JIT_ERROR_OK) {
- for (i=0; i<txlut.size; i++) {
- if (txlut.lut[i].rf_power == txpkt.rf_power) {
- /* this RF power is supported, we can continue */
- break;
- }
- }
- if (i == txlut.size) {
- /* this RF power is not supported */
- jit_result = JIT_ERROR_TX_POWER;
- MSG("ERROR: Packet REJECTED, unsupported RF power for TX - %d\n", txpkt.rf_power);
- }
- }
/* insert packet to be sent into JIT queue */
if (jit_result == JIT_ERROR_OK) {