get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/810383/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 810383,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/810383/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/hostap/patch/1504672294-15949-1-git-send-email-saurav.babu@samsung.com/",
    "project": {
        "id": 22,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/22/?format=api",
        "name": "HostAP Development",
        "link_name": "hostap",
        "list_id": "hostap.lists.infradead.org",
        "list_email": "hostap@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504672294-15949-1-git-send-email-saurav.babu@samsung.com>",
    "list_archive_url": null,
    "date": "2017-09-06T04:31:34",
    "name": "mesh: Remove mesh station after link is closed",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "e82ac897fd111345bb9666272f4fd4957d34cdc4",
    "submitter": {
        "id": 66494,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/66494/?format=api",
        "name": "Saurav Babu",
        "email": "saurav.babu@samsung.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/hostap/patch/1504672294-15949-1-git-send-email-saurav.babu@samsung.com/mbox/",
    "series": [
        {
            "id": 1689,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/1689/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/hostap/list/?series=1689",
            "date": "2017-09-06T04:31:34",
            "name": "mesh: Remove mesh station after link is closed",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1689/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810383/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810383/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<hostap-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 (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=hostap-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=\"c5ksbfRz\"; \n\tdkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.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 3xn9gh3k0qz9sNV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 14:33:20 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dpS14-0004xq-Hr; Wed, 06 Sep 2017 04:32:42 +0000",
            "from mailout4.samsung.com ([203.254.224.34])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dpS0f-0004tF-DW\n\tfor hostap@lists.infradead.org; Wed, 06 Sep 2017 04:32:19 +0000",
            "from epcas5p1.samsung.com (unknown [182.195.41.39])\n\tby mailout4.samsung.com (KnoxPortal) with ESMTP id\n\t20170906043150epoutp04e7edcea4c298863d40cc5cedf1c67429~hq35wIfBD0707807078epoutp04X\n\tfor <hostap@lists.infradead.org>;\n\tWed,  6 Sep 2017 04:31:50 +0000 (GMT)",
            "from epsmges5p1new.samsung.com (unknown [182.195.40.77]) by\n\tepcas5p1.samsung.com (KnoxPortal) with ESMTP id\n\t20170906043149epcas5p10a1eb3124fd4ba86fe853d09e4126f0b~hq34-pmwD1822318223epcas5p1e;\n\tWed,  6 Sep 2017 04:31:49 +0000 (GMT)",
            "from epcas5p4.samsung.com ( [182.195.41.42]) by\n\tepsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id\n\t8D.63.08122.33A7FA95; Wed,  6 Sep 2017 13:31:47 +0900 (KST)",
            "from epsmtrp1.samsung.com (unknown [182.195.40.13]) by\n\tepcas5p3.samsung.com (KnoxPortal) with ESMTPA id\n\t20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886~hq33dOi2W0463304633epcas5p3x;\n\tWed,  6 Sep 2017 04:31:47 +0000 (GMT)",
            "from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by\n\tepsmtrp1.samsung.com (KnoxPortal) with ESMTP id\n\t20170906043147epsmtrp14e3d15f74cd89af557cef0557d8acf51~hq33cfG4c1139511395epsmtrp1U;\n\tWed,  6 Sep 2017 04:31:47 +0000 (GMT)",
            "from epsmtip1.samsung.com ( [182.195.34.30]) by\n\tepsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id\n\t4B.F5.20885.33A7FA95; Wed,  6 Sep 2017 13:31:47 +0900 (KST)",
            "from localhost.localdomain (unknown [107.109.228.77]) by\n\tepsmtip1.samsung.com (KnoxPortal) with ESMTPA id\n\t20170906043144epsmtip1e130306625917fd5f699860bfff2292b~hq30Qsoqx0056800568epsmtip1m;\n\tWed,  6 Sep 2017 04:31:43 +0000 (GMT)"
        ],
        "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:References:\n\tMessage-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tIn-Reply-To:List-Owner;\n\tbh=NWfFKx2xyt8IslZ9dZO8jRQWs30hCEzPiXxuYLahANk=; b=c5\n\tksbfRzTwC0AA7jfDvxgzDlxmc1SrqArd4a6cvHFkTMQUbJtyDxs+KzeTElffO7RwC4snXHvdO3qFC\n\tTtdFt05253fhk2FTMBrJSW0N8ytmDQWNPOwVXYBu0tA9gavWZ5bidxzuSVWFT/T3Jp37V2CYUAxI2\n\tVzL0ArzvTQ8RB2pZKmYihqjuquNwdahyxCjRbHY7SF9kPAXcshE5ZBO4s5opX3MVN8fhpDhJZV/Hr\n\t6YnLJ1ej5kxKgSwo3sM996t2mNATat9FQZMVqjvXZg1o+h/s0ccPYrlFtnrOifpeBxZ/X7ofLucwy\n\t/rudc7WKLxPoDu5q8ePiu2vfPhVmlU4Q==;",
        "X-AuditID": "b6c32a49-f79a26d000001fba-6e-59af7a332407",
        "From": "Saurav Babu <saurav.babu@samsung.com>",
        "To": "hostap@lists.infradead.org",
        "Subject": "[PATCH] mesh: Remove mesh station after link is closed",
        "Date": "Wed,  6 Sep 2017 10:01:34 +0530",
        "Message-Id": "<1504672294-15949-1-git-send-email-saurav.babu@samsung.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "X-Brightmail-Tracker": [
            "H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7bCmlq5x1fpIg3UnTSzWPkqzuHWjn8Vi\n\t6rGp7A7MHpuX1Hv0bVnFGMAUlWqTkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pmYKhraGlhrqSQ\n\tl5ibaqvk4hOg65aZA7RCSaEsMacUKBSQWFyspG9nU5RfWpKqkJFfXGKrFG1oaKRnaGCuZ2Rk\n\tpGdiGmtlZApUkpCa8eqaT8EGror5E16xNzBe4Ohi5OSQEDCRuDj/ASuELSZx4d56ti5GLg4h\n\tgd2MEodmnWGCcD4xStx+eBfK+cYo8fvFJCaY9i9LP0O17GWUmPb5F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232LDAMC+1XK84Mbe4NC9dLzk/dxMj2PNamjsYLy+JP8Qo\n\twMGoxMM7YdO6SCHWxLLiytxDjBIczEoivLNL10cK8aYkVlalFuXHF5XmpBYfYpTmYFES503r\n\tnREpJJCeWJKanZpakFoEk2Xi4JRqYFS1bu8tObju2rcDEX+/eftnbrd49YKd0fU4y7KIo9uS\n\tYmd3/Fn0LbcuVeOB2nbBxTtTsrmi287lzC02e8viNKXq+OWzXncXfs+5suCfynPX4kmvIu3W\n\t3XNNv7XX1zTa/vrJlMkf9m7zMuCT3tuleFf1kNH1ssIuFo2VBRsXpAuXut3L+RRz57kSS3FG\n\toqEWc1FxIgBdBfHU+AEAAA=="
        ],
        "X-CMS-MailID": "20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886",
        "X-Msg-Generator": "CA",
        "X-Sender-IP": "182.195.40.13",
        "X-Local-Sender": "=?utf-8?q?Saurav_Babu=1BSRI-Delhi-Advanced_SW_Team=1B?=\n\t=?utf-8?b?7IK87ISx7KCE7J6QG0xlYWQgRW5naW5lZXI=?=",
        "X-Global-Sender": "=?utf-8?q?Saurav_Babu=1BSRI-Delhi-Advanced_SW_Team=1BSam?=\n\t=?utf-8?q?sung_Electronics=1BLead_Engineer?=",
        "X-Sender-Code": "=?utf-8?q?C10=1BSWAHQ=1BC10ID02ID028111?=",
        "X-MTR": "20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886",
        "CMS-TYPE": "105P",
        "DLP-Filter": "Pass",
        "X-CFilter-Loop": "Reflected",
        "X-CMS-RootMailID": "20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886",
        "X-RootMTR": "20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886",
        "References": "<CGME20170906043147epcas5p3968fbbfa5755f62b42053f6d94a2f886@epcas5p3.samsung.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170905_213217_596566_EB9827E4 ",
        "X-CRM114-Status": "UNSURE (   9.51  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-6.9 (------)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [203.254.224.34 listed in list.dnswl.org]\n\t-0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)\n\t[203.254.224.34 listed in wl.mailspike.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_HELO_PASS          SPF: HELO 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.0 RCVD_IN_MSPIKE_WL      Mailspike good senders",
        "X-BeenThere": "hostap@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<hostap.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/hostap/>",
        "List-Post": "<mailto:hostap@lists.infradead.org>",
        "List-Help": "<mailto:hostap-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/hostap>,\n\t<mailto:hostap-request@lists.infradead.org?subject=subscribe>",
        "Cc": "Saurav Babu <saurav.babu@samsung.com>, sachin.dev@samsung.com",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"Hostap\" <hostap-bounces@lists.infradead.org>",
        "Errors-To": "hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Mesh peering manager maintains links among mesh peers, but when link is\nclosed then it doesn't remove station due to which station is always\npresent in connected peer list. This patch registers timeout after state\nis changed to PLINK_HOLDING so that station can be removed after timeout\nis expired\n\nSigned-off-by: Saurav Babu <saurav.babu@samsung.com>\n---\n wpa_supplicant/mesh_mpm.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c\nindex cf7107e..b369743 100644\n--- a/wpa_supplicant/mesh_mpm.c\n+++ b/wpa_supplicant/mesh_mpm.c\n@@ -487,13 +487,16 @@ static int mesh_mpm_plink_close(struct hostapd_data *hapd, struct sta_info *sta,\n {\n \tstruct wpa_supplicant *wpa_s = ctx;\n \tint reason = WLAN_REASON_MESH_PEERING_CANCELLED;\n+\tstruct mesh_conf *conf = wpa_s->ifmsh->mconf;\n \n \tif (sta) {\n \t\twpa_mesh_set_plink_state(wpa_s, sta, PLINK_HOLDING);\n+\t\teloop_register_timeout(conf->dot11MeshHoldingTimeout / 1000,\n+\t\t\t(conf->dot11MeshHoldingTimeout % 1000) * 1000,\n+\t\t\tplink_timer, wpa_s, sta);\n \t\tmesh_mpm_send_plink_action(wpa_s, sta, PLINK_CLOSE, reason);\n \t\twpa_printf(MSG_DEBUG, \"MPM closing plink sta=\" MACSTR,\n \t\t\t   MAC2STR(sta->addr));\n-\t\teloop_cancel_timeout(plink_timer, wpa_s, sta);\n \t\treturn 0;\n \t}\n \n",
    "prefixes": []
}