From patchwork Tue May 20 20:27:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 4212891 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2F3EE9F32A for ; Tue, 20 May 2014 20:37:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA56920212 for ; Tue, 20 May 2014 20:37:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0851200F4 for ; Tue, 20 May 2014 20:37:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750942AbaETUg6 (ORCPT ); Tue, 20 May 2014 16:36:58 -0400 Received: from mail-ob0-f201.google.com ([209.85.214.201]:58057 "EHLO mail-ob0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbaETUg6 (ORCPT ); Tue, 20 May 2014 16:36:58 -0400 Received: by mail-ob0-f201.google.com with SMTP id wn1so210698obc.4 for ; Tue, 20 May 2014 13:36:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:subject:to:message-id; bh=uVYBaE9ni1aVGoCFX3IDAr5WiLw67Mjnl9VjpKjXH/0=; b=T7CvAxpsp7wuMSaxfK0bXl1gDKQGMGXbM+Ka8xgIWVmiV+4+jCRIHDbcndLGzw5k6B YzgyVfvCt9F58mQ6cqy6fZ6cJ6VdlLkPXEH/xpnaqXzHnn50HmR3PFSnRs/Hv6yZYvuV PBLb6JqrC4IgfR6Yx8Frw8zWv2w2bLtEIT+GTr+hRd7yB2bwaX1cGS3ePAN0U8/6GDP8 gQrfLuhvGVXy6Li4Nz2JTmvDi1MKYb+WqLYdkxsbW+spRza2WD3pYkxgcZN4J4XShd0M OLHv4xNDAuAou49qf3lxZRxB3ASER+xa1HhFblNA0Q8hxlL4waSOXzzvxiNRgLYGdHzq 9iOg== X-Gm-Message-State: ALoCoQmqGaKyglEJYXlbByEZ9wmTawAEQWuFN8iu5YXwq5oNbRTm2ehKKl9t5BipNdFw8wdjZBIUArrtOoTLB+yQt3yicnr5yG1WH0salNfjt6nKt3DTe/XQKNTTKdNWuyJ8EOZuniL4 X-Received: by 10.182.75.193 with SMTP id e1mr20614876obw.1.1400618217796; Tue, 20 May 2014 13:36:57 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id k43si1082449yhq.3.2014.05.20.13.36.57 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 May 2014 13:36:57 -0700 (PDT) Received: from pstew.mtv.corp.google.com (pstew.mtv.corp.google.com [172.22.72.159]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id A30A031C248 for ; Tue, 20 May 2014 13:36:57 -0700 (PDT) Received: by pstew.mtv.corp.google.com (Postfix, from userid 110058) id 2C281E0300; Tue, 20 May 2014 13:36:57 -0700 (PDT) From: Paul Stewart Date: Tue, 20 May 2014 13:27:16 -0700 Subject: [PATCH] nl80211: Provide TDLS link state To: linux-wireless@vger.kernel.org Message-Id: <20140520203657.2C281E0300@pstew.mtv.corp.google.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide a method to query TDLS state in drivers that use the NL80211_CMD_TDLS_OPER method for link setup. Signed-off-by: Paul Stewart --- include/uapi/linux/nl80211.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 9922b9b..4f163f9 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -3866,6 +3866,7 @@ enum nl80211_pmksa_candidate_attr { * @NL80211_TDLS_TEARDOWN: Teardown a TDLS link which is already established * @NL80211_TDLS_ENABLE_LINK: Enable TDLS link * @NL80211_TDLS_DISABLE_LINK: Disable TDLS link + * @NL80211_TDLS_QUERY_LINK: Query TDLS link status */ enum nl80211_tdls_operation { NL80211_TDLS_DISCOVERY_REQ, @@ -3873,6 +3874,19 @@ enum nl80211_tdls_operation { NL80211_TDLS_TEARDOWN, NL80211_TDLS_ENABLE_LINK, NL80211_TDLS_DISABLE_LINK, + NL80211_TDLS_QUERY_LINK, +}; + +/** + * enum nl80211_tdls_link_state - values returned fo %NL80211_TDLS_QUERY_LINK + * @NL80211_TDLS_LINK_STATE_UNKNOWN: Nothing is known about this peer + * @NL80211_TDLS_LINK_STATE_UNCONNECTED: TDLS link is not setup to peer + * @NL80211_TDLS_LINK_STATE_CONNECTED: TDLS link is setup to peer + */ +enum nl80211_tdls_link_state { + NL80211_TDLS_LINK_STATE_UNKNOWN, + NL80211_TDLS_LINK_STATE_UNCONNECTED, + NL80211_TDLS_LINK_STATE_CONNECTED, }; /*