From 5eace384a7fd27e31fe439ec47cf4f199c3426ea Mon Sep 17 00:00:00 2001
From: daniel-k <github@daniel-krebs.net>
Date: Fri, 5 Jan 2018 12:28:29 +0100
Subject: [PATCH] tests/sx127x: adapt to driver interface change using
 NETOPT_CHANNEL_FREQUENCY

---
 tests/driver_sx127x/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/driver_sx127x/main.c b/tests/driver_sx127x/main.c
index 702d631482..58213acf85 100644
--- a/tests/driver_sx127x/main.c
+++ b/tests/driver_sx127x/main.c
@@ -261,7 +261,7 @@ int channel_cmd(int argc, char **argv)
 
     uint32_t chan;
     if (strstr(argv[1], "get") != NULL) {
-        netdev->driver->get(netdev, NETOPT_CHANNEL, &chan, sizeof(uint32_t));
+        netdev->driver->get(netdev, NETOPT_CHANNEL_FREQUENCY, &chan, sizeof(uint32_t));
         printf("Channel: %i\n", (int) chan);
         return 0;
     }
@@ -272,7 +272,7 @@ int channel_cmd(int argc, char **argv)
             return -1;
         }
         chan = atoi(argv[2]);
-        netdev->driver->set(netdev, NETOPT_CHANNEL, &chan, sizeof(uint32_t));
+        netdev->driver->set(netdev, NETOPT_CHANNEL_FREQUENCY, &chan, sizeof(uint32_t));
         printf("New channel set\n");
     }
     else {
-- 
GitLab