From patchwork Wed Aug 22 13:46:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 960879 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="booQJHkm"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41wN9G40Pqz9s3x for ; Wed, 22 Aug 2018 19:51:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=3CVnnTJ/n+esOCmIKJDVbkxeYCoj7nm8uTypHhqLm1I=; b=boo QJHkmOi7ffA3LteUyXnFQmoX8XZyWwQdrZDiSfIQOFuRZvm14A1GBBREZWYf/IIbqi42U4qbBFRFH 5hDWZN8goSMNzxJjS8Vd3wtAnvOy0LYdIoDtYN1iiSxgaFn924+IrBW7L3IRszCLR5w8VoYiDUmdN 84dOE8bmnbLMSzbltylT8yC4UWjNyVxdhIxmB9aoKr8ZdFsyFfPZAuunsgrrQADtloa5iHy5a0rYe fAd9zxiW1Na9p5FiL4U0vhS8QT8V9ZZP9G3z4Om6YYmL07Sf96tZx8MGXpuzM/qh8DqUZo+hwh+U2 dm3a6g86inFbO3sqBGk8fwBa4Dg0h6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsPnJ-0003IS-JA; Wed, 22 Aug 2018 09:51:17 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fsPn3-0002wf-II for hostap@lists.infradead.org; Wed, 22 Aug 2018 09:51:02 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 02:50:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,273,1531810800"; d="scan'208";a="83930256" Received: from unknown (HELO andrei-XPS-12-9Q33.ger.corp.intel.com) ([10.12.217.183]) by orsmga001.jf.intel.com with ESMTP; 22 Aug 2018 02:50:57 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH 5/5] hostapd_cli: add option to send beacon report request Date: Wed, 22 Aug 2018 16:46:21 +0300 Message-Id: <1534945581-27527-5-git-send-email-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180822_025101_679779_847354FE X-CRM114-Status: GOOD ( 10.03 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [192.55.52.151 listed in list.dnswl.org] 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Avraham Stern MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Avraham Stern This is useful for testing. Signed-off-by: Avraham Stern --- hostapd/hostapd_cli.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c index fbec5d2..32ea58b 100644 --- a/hostapd/hostapd_cli.c +++ b/hostapd/hostapd_cli.c @@ -1480,6 +1480,12 @@ static int hostapd_cli_cmd_poll_sta(struct wpa_ctrl *ctrl, int argc, } +static int hostapd_cli_cmd_beacon_req(struct wpa_ctrl *ctrl, int argc, + char *argv[]) +{ + return hostapd_cli_cmd(ctrl, "REQ_BEACON", 2, argc, argv); +} + struct hostapd_cli_cmd { const char *cmd; int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]); @@ -1651,6 +1657,9 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = { "=Add/Delete/Show/Clear deny MAC ACL" }, { "poll_sta", hostapd_cli_cmd_poll_sta, hostapd_complete_stations, " = poll a STA to check connectivity with a QoS null frame" }, + { "beacon_req", hostapd_cli_cmd_beacon_req, NULL, + " [req_mode=] " + " = send a Beacon report request to a station"}, { NULL, NULL, NULL, NULL } };