From patchwork Wed Dec 19 15:56:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Whitten X-Patchwork-Id: 1016155 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="oMHg0kdA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43KfdV1yyQz9sBh for ; Thu, 20 Dec 2018 02:56:30 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730488AbeLSP42 (ORCPT ); Wed, 19 Dec 2018 10:56:28 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41221 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729318AbeLSP41 (ORCPT ); Wed, 19 Dec 2018 10:56:27 -0500 Received: by mail-wr1-f67.google.com with SMTP id x10so20027749wrs.8 for ; Wed, 19 Dec 2018 07:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=MV+oFm4yA8y8FEtoATe0D53mseGlNWfcGlDfAub8P48=; b=oMHg0kdAErhUNdCUq+7umvuHdYqnusvyfwtEanSy6wXNKRQ4CP6P3vorViCa6E4e5l Yp/ulV60hM37Odi2XdPEBZjjnWxb1+hprYBS0seiZG4z1bIvj0nYk+xOCxuAo6erB0s2 4zerz+r0veN4i0a0dFgLo52b8YIMTDgUmucnlcSj7ET5ShFpOMSv339wIf0CoAXTqm52 NboM6vesgvxvT/spA3NDmeMuYRpY4idLC2vevwNLp1xB2YSX0pf9MUj0FX/QMPw2tTCm fQBc8RG/eQ4dEQwz6GIZ57g7lQwNecJ8JZPedsMNuSd0/uNjJ37EUNYTRO9RZ92+yiZY 82WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=MV+oFm4yA8y8FEtoATe0D53mseGlNWfcGlDfAub8P48=; b=TISYW3VV7O8d1l7CqygIduu5kH1wVnuo3j0f5nEX1T8QI/xVaX7Ij5I1qmJp1qbLyd Bil2sFJdqbj9hcVrmyEEfY20gxdkc/FBdanwoGJ2/uQFwyA/eckl/hRRT12JFOW9Bt3Y pRzMwL/wmixG/Q1OHN/4cr01porodvudEvYmA0iObsI93V4Zp0CAmIMFakgCRFKu6n6u gwri75tD77cUOfel8rlRojItvaoQCFBvTWFgpNMiJpjCEqbw8HpZ9+UW7p120ox6VTB/ LIQXpRTLXYLVkDK2ZbO5xm0lH1pxBQSRhciyXQSSQlFatek4vcAj2fViFHGWcUrt6yjx KwWg== X-Gm-Message-State: AA+aEWaN28OubwZDteZnszypPiL2EATIh8mk5y2h1dSaIhT83XLxPMzP Hc5H/5FaZLOc8aXbkbXh3Tk= X-Google-Smtp-Source: AFSGD/V9t72oPZn3EwoWwcx+9tUVuayglwlMgO8Ft/5HO5e2+NZsh1MOzdsoqUPJFM06T+ZQh+tDsA== X-Received: by 2002:adf:900f:: with SMTP id h15mr19015440wrh.18.1545234985104; Wed, 19 Dec 2018 07:56:25 -0800 (PST) Received: from Sarah.corp.lairdtech.com ([109.174.151.67]) by smtp.gmail.com with ESMTPSA id c9sm6836099wmh.27.2018.12.19.07.56.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 07:56:24 -0800 (PST) From: Ben Whitten X-Google-Original-From: Ben Whitten To: starnight@g.ncu.edu.tw, jiri@resnulli.us, afaerber@suse.de Cc: linux-lpwan@lists.infradead.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Ben Whitten Subject: [PATCH RFC lora-next 0/4] Get sx1301 to transmit lora packets Date: Wed, 19 Dec 2018 15:56:12 +0000 Message-Id: <20181219155616.9547-1-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.17.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org If we ignore the first commit here which corrects style issues this series gets the AGC firmware running then implements framing over the lora socket to get the metadata the concentrator needs to send a lora packet. It could be that we need two protocals in the lora protocal family, one raw and used for node devices, and one with framing and used in gateways. But it depends if node devices need information from the LoRaWAN layer such as spreading factor and coding rate to initiate a transmission. I tested this with a tx_test userspace application [1] to adjust bandwidth. [1] https://github.com/BWhitten/lora-modules/blob/master/tx_test.c Ben Whitten (4): net: lora: sx125x sx1301: correct style warnings net: lora: sx1301: add minimal to get AGC working prior to tx work net: lora: sx1301: add minimal to get transmission out net: lora: sx1301: introduce a lora frame for packet metadata drivers/net/lora/dev.c | 2 - drivers/net/lora/sx125x.c | 20 +- drivers/net/lora/sx1301.c | 529 ++++++++++++++++++++++++++++++++++++-- drivers/net/lora/sx1301.h | 44 +++- include/uapi/linux/lora.h | 46 ++++ 5 files changed, 602 insertions(+), 39 deletions(-)