From patchwork Fri Jun 16 03:57:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 9790479 X-Patchwork-Delegate: sameo@linux.intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0046E6038F for ; Fri, 16 Jun 2017 03:57:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF3B32856A for ; Fri, 16 Jun 2017 03:57:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D422E2858D; Fri, 16 Jun 2017 03:57:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBCA82856A for ; Fri, 16 Jun 2017 03:57:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751835AbdFPD5f (ORCPT ); Thu, 15 Jun 2017 23:57:35 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:40363 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbdFPD5b (ORCPT ); Thu, 15 Jun 2017 23:57:31 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 86B0A20A10; Thu, 15 Jun 2017 23:57:30 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 15 Jun 2017 23:57:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=animalcreek.com; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=/fJ CtNFNdpkNu/73L/BkDT7c7h4AKcsd0q3Payoytv4=; b=nyoD8JgUguH26YWISte 69k4glO9CTe8bIzW2z6IjwJaTuszC+dJCLapPtKczqGFMSSOBkiVMvZ4l51ihV3c YxYUIziriiKCD9zKBWQZeD2PFSt72zz0fbgq3OU6fEVlY2JRpcmURWA1a8g17hmj uMl+Pp9Z5A2/I2w/MPq+Qmf8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=/fJCtNFNdpkNu/73L/BkDT7c7h4AKcsd0q3Payoyt v4=; b=OZaQelyWZuOzYyQLKa2/bMrJMB9O3xPwAQ4b4BHQxqXgTMxCevRylXxuW IrkBlKhdcdmPsHfAs5m9fZw1kkrsM+dM00jPp5F/xnOkffMf2tD3Kh/+vbRjZ0cQ jDg4FTLrmun5RkxrIKnCV1aAhatDz01FhlSfRH22F+mWU7mbFn+qYkPbXJyofuUJ q0gtTZEgDETzyZXYpQ6nZPkrTZ45BOU3dpNISGgBnm/Us2x7hK7aLvCB1e8DK9p+ /KQtfGMc29ozSeFEzmxGhFie5z4jNPLbnLaBPt50P8a/ZItQeHaHIrEi2kBuxL2v x8OgIU1gESv5qUXz2MFOh99orSfgg== X-ME-Sender: X-Sasl-enc: MB+xPkuJZtFghihL2fhyBhcVefFMykF+YfZyAe3llgHd 1497585450 Received: from blue.animalcreek.com (ip68-2-81-12.ph.ph.cox.net [68.2.81.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 438BB24941; Thu, 15 Jun 2017 23:57:30 -0400 (EDT) Received: from blue.animalcreek.com (localhost [127.0.0.1]) by blue.animalcreek.com (Postfix) with ESMTP id 915ADA20529; Thu, 15 Jun 2017 20:57:29 -0700 (MST) From: Mark Greer To: Samuel Ortiz Cc: linux-wireless@vger.kernel.org, linux-nfc@lists.01.org, Mark Greer Subject: [PATCH 4/4] test: Add option to deactivate tag Date: Thu, 15 Jun 2017 20:57:28 -0700 Message-Id: <20170616035728.19415-5-mgreer@animalcreek.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170616035728.19415-1-mgreer@animalcreek.com> References: <20170616035728.19415-1-mgreer@animalcreek.com> Organization: Animal Creek Technologies, Inc. Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the 'deactivate' option to test-tag which deactivates the specified tag. Signed-off-by: Mark Greer --- test/test-tag | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test-tag b/test/test-tag index fd80132..cb2c9e8 100755 --- a/test/test-tag +++ b/test/test-tag @@ -11,6 +11,7 @@ def usage(): text = """ list dump +deactivate write <...> If type is Text, parameters are @@ -165,5 +166,17 @@ if (sys.argv[1] == "write"): else: usage() + sys.exit(0) + +if (sys.argv[1] == "deactivate"): + print sys.argv[2] + if (len(sys.argv) != 2): + tag = neardutils.find_tag(sys.argv[2]) + tag.Deactivate() + else: + usage() + + sys.exit(0) + else: usage()