Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/873891/?format=api
{ "id": 873891, "url": "http://patchwork.ozlabs.org/api/patches/873891/?format=api", "web_url": "http://patchwork.ozlabs.org/project/lede/patch/1518704164-22198-5-git-send-email-koen.vandeputte@ncentric.com/", "project": { "id": 54, "url": "http://patchwork.ozlabs.org/api/projects/54/?format=api", "name": "LEDE development", "link_name": "lede", "list_id": "lede-dev.lists.infradead.org", "list_email": "lede-dev@lists.infradead.org", "web_url": "http://lede-project.org/", "scm_url": "", "webscm_url": "http://git.lede-project.org/", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1518704164-22198-5-git-send-email-koen.vandeputte@ncentric.com>", "list_archive_url": null, "date": "2018-02-15T14:15:59", "name": "[LEDE-DEV,4/9] uqmi: fix raw-ip mode for newer lte modems", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "87beb4533c88d88a4b583dd77e7ef7ba20240eaa", "submitter": { "id": 69184, "url": "http://patchwork.ozlabs.org/api/people/69184/?format=api", "name": "Koen Vandeputte", "email": "koen.vandeputte@ncentric.com" }, "delegate": { "id": 54613, "url": "http://patchwork.ozlabs.org/api/users/54613/?format=api", "username": "blogic", "first_name": "John", "last_name": "Crispin", "email": "blogic@openwrt.org" }, "mbox": "http://patchwork.ozlabs.org/project/lede/patch/1518704164-22198-5-git-send-email-koen.vandeputte@ncentric.com/mbox/", "series": [ { "id": 28782, "url": "http://patchwork.ozlabs.org/api/series/28782/?format=api", "web_url": "http://patchwork.ozlabs.org/project/lede/list/?series=28782", "date": "2018-02-15T14:15:55", "name": "uqmi: Add raw-ip mode support for 17.01 branch", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/28782/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/873891/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/873891/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org\n\t(client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org;\n\tenvelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"hTnjk7pD\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ncentric.com header.i=@ncentric.com\n\theader.b=\"maNNfNOL\"; dkim-atps=neutral" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2607:7c80:54:e::133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3zhz1t0nqfz9t2l\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 16 Feb 2018 01:20:02 +1100 (AEDT)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux))\n\tid 1emKOF-0000sv-6K; Thu, 15 Feb 2018 14:19:59 +0000", "from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232])\n\tby bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux))\n\tid 1emKLI-00073H-9s\n\tfor lede-dev@lists.infradead.org; Thu, 15 Feb 2018 14:17:01 +0000", "by mail-wm0-x232.google.com with SMTP id f3so1136154wmc.1\n\tfor <lede-dev@lists.infradead.org>;\n\tThu, 15 Feb 2018 06:16:45 -0800 (PST)", "from localhost.localdomain (d515300d8.static.telenet.be.\n\t[81.83.0.216]) by smtp.googlemail.com with ESMTPSA id\n\td6sm3462692edm.52.2018.02.15.06.16.43\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 15 Feb 2018 06:16:43 -0800 (PST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References:\n\tIn-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=2IFlrZ41ut/B2ha0UT8x2bB+ri9ymEoA973+IVu49SQ=;\n\tb=hTnjk7pDejIaAj\n\t80enWoJRqGEbEUvXC38idDnydufrwNtKNHeO/TQNfHU8nbFPt+StBH0JsdJ2XSqqBv//inSZDZYq+\n\t8Lmk0OBZhifvGIjjDG5kzKxAUPS8CuT/PAFLKq9+kKf0bvh8aL2MYAdO4dFtO6DuxcgRm1qcPe+GK\n\t4kVgSB0s/GFOHspP4EO1D5sRDPTDbmoJ7WVVFD7iey5qDQinct9nJ+Ysk8j4NOtDwl8EKsnYnOMsm\n\t52LxliiIza+etcbTep2+iIZuPOtZiQ0u4gDHfV/YZzPdAvmF6I5Pp4fxyNPvsy56AVSNLSFIU0PKZ\n\tNpSh8MrVwbqxK6gfPhTg==;", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncentric.com;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Okee++F9A/fUt/u4W9baTI4apSNWEL9/befgkphU1uA=;\n\tb=maNNfNOLRC/WY30fXslVmV+MirfRPVnDokB45uJLqx+/XvrAeypdSVHEhasuIAGZgX\n\tY5rddOGj9X+sQ69XeLi8X9PodMyXddL0hbQI/eVJzfdYS9+Q5vmh9WiYQN1hnQ/RC68r\n\tNrORUu9oUfeqYcg14d5iwPdJ0/LccN0BMNQFw=" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Okee++F9A/fUt/u4W9baTI4apSNWEL9/befgkphU1uA=;\n\tb=c26orES+CQ4B4n8zEb78jAvcA+A5opiiwDZpbXSPR7qFqg7yIax6OMmDjOyeWxFGAu\n\twBfFTs/Eg9E/pRCIDbfaL2lM2NFaudwW3jYBqq52AnL6T0a8vZZrsavSno9kCfcBwZUX\n\tTVjUIDZ0e5j/Kpoiswl3KC2uBO3hDflqLnizGyjPHjzh47WTVwVzShjz+7IKhKUwBNXb\n\trqNm9OjbUnbIRGfx7dv8puSKxnlMdq4oNalGCMjVzvS6WVuVQAL3dAESfAgQZLdFp4M9\n\tjpE/hS+Q2H6hBKrE+iBg8XD5njAvRFqfK89f+jJmaBj39wPLkqCBjsSzJ8EwpchFQhls\n\tNcgg==", "X-Gm-Message-State": "APf1xPAoHsRUSRilfiFJwMFHvCp7ba/3TABb7VWn4NWZcT1SfayAotyx\n\ttd3Y5hLZZGjuqTMlJgMRR3t3pQ13PK4=", "X-Google-Smtp-Source": "AH8x224bq0wtxZQ+ykowOguoaEeiG9LWCMfIReCtPmU7qfIdNE2jYEpLzb/bZruOs2O8Qp64zVnKPA==", "X-Received": "by 10.80.154.6 with SMTP id o6mr1066652edb.146.1518704203945;\n\tThu, 15 Feb 2018 06:16:43 -0800 (PST)", "From": "Koen Vandeputte <koen.vandeputte@ncentric.com>", "To": "lede-dev@lists.infradead.org", "Date": "Thu, 15 Feb 2018 15:15:59 +0100", "Message-Id": "<1518704164-22198-5-git-send-email-koen.vandeputte@ncentric.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1518704164-22198-1-git-send-email-koen.vandeputte@ncentric.com>", "References": "<1518704164-22198-1-git-send-email-koen.vandeputte@ncentric.com>", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20180215_061656_381835_FA88CD63 ", "X-CRM114-Status": "GOOD ( 12.51 )", "X-Spam-Score": "-2.7 (--)", "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details: (-2.7 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow\n\ttrust [2a00:1450:400c:c09:0:0:0:232 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain", "Subject": "[LEDE-DEV] [PATCH 4/9] uqmi: fix raw-ip mode for newer lte modems", "X-BeenThere": "lede-dev@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<lede-dev.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/lede-dev/>", "List-Post": "<mailto:lede-dev@lists.infradead.org>", "List-Help": "<mailto:lede-dev-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>", "Cc": "Jo-Philipp Wich <jo@mein.io>, leventelist@gmail.com, lynxis@fe80.eu,\n\tKoen Vandeputte <koen.vandeputte@ncentric.com>, john@phrozen.org,\n\tbjorn@mork.no, nbd@nbd.name", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>", "Errors-To": "lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Some newer LTE modems, like the MC7455 or EC25-E do not support\n\"802.3\" mode, and will stay in \"raw-ip\" regardless of the mode being\nset.\n\nIn this case, the driver must be informed that it should handle all\npackets in raw mode. [1]\n\nThis commit fixes connectivity issues for these devices.\n\nBefore:\n\n[ Node 5 ] udhcpc -i wwan0\nudhcpc: started, v1.27.2\nudhcpc: sending discover\nudhcpc: sending discover\nudhcpc: sending discover\n\nAfter:\n\n[ Node 5 ] udhcpc -i wwan0\nudhcpc: started, v1.27.2\nudhcpc: sending discover\nudhcpc: sending select for 100.66.245.226\nudhcpc: lease of 100.66.245.226 obtained, lease time 7200\nudhcpc: ifconfig wwan0 100.66.245.226 netmask 255.255.255.252 broadcast\n+\nudhcpc: setting default routers: 100.66.245.225\n\n[1] https://lists.freedesktop.org/archives/libqmi-\ndevel/2017-January/002064.html\n\nTested on cns3xxx using a Sierra Wireless MC7455 LTE-A\n\nSigned-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>\n[bumped PKG_RELEASE]\nSigned-off-by: Jo-Philipp Wich <jo@mein.io>\n---\n package/network/utils/uqmi/Makefile | 2 +-\n package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 15 ++++++++++++++-\n 2 files changed, 15 insertions(+), 2 deletions(-)", "diff": "diff --git a/package/network/utils/uqmi/Makefile b/package/network/utils/uqmi/Makefile\nindex 2102490f68d4..6e891435b941 100644\n--- a/package/network/utils/uqmi/Makefile\n+++ b/package/network/utils/uqmi/Makefile\n@@ -1,7 +1,7 @@\n include $(TOPDIR)/rules.mk\n \n PKG_NAME:=uqmi\n-PKG_RELEASE:=1\n+PKG_RELEASE:=2\n \n PKG_SOURCE_PROTO:=git\n PKG_SOURCE_URL=$(LEDE_GIT)/project/uqmi.git\ndiff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh\nindex 9c953ea69757..9a534d4b96d7 100755\n--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh\n+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh\n@@ -27,7 +27,7 @@ proto_qmi_init_config() {\n \n proto_qmi_setup() {\n \tlocal interface=\"$1\"\n-\n+\tlocal dataformat\n \tlocal device apn auth username password pincode delay modes pdptype profile dhcpv6 autoconnect plmn $PROTO_DEFAULT_OPTIONS\n \tlocal cid_4 pdh_4 cid_6 pdh_6\n \tlocal ip_6 ip_prefix_length gateway_6 dns1_6 dns2_6\n@@ -99,6 +99,19 @@ proto_qmi_setup() {\n \n \tuqmi -s -d \"$device\" --set-data-format 802.3\n \tuqmi -s -d \"$device\" --wda-set-data-format 802.3\n+\tdataformat=\"$(uqmi -s -d \"$device\" --wda-get-data-format)\"\n+\n+\tif [ \"$dataformat\" = '\"raw-ip\"' ]; then\n+\n+\t\t[ -f /sys/class/net/$ifname/qmi/raw_ip ] || {\n+\t\t\techo \"Device only supports raw-ip mode but is missing this required driver attribute: /sys/class/net/$ifname/qmi/raw_ip\"\n+\t\t\treturn 1\n+\t\t}\n+\n+\t\techo \"Device does not support 802.3 mode. Informing driver of raw-ip only for $ifname ..\"\n+\t\techo \"Y\" > /sys/class/net/$ifname/qmi/raw_ip\n+\tfi\n+\n \tuqmi -s -d \"$device\" --sync\n \n \techo \"Waiting for network registration\"\n", "prefixes": [ "LEDE-DEV", "4/9" ] }