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: 4213331 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 95D0EBEEAB for ; Tue, 20 May 2014 22:33:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D44B720320 for ; Tue, 20 May 2014 22:33:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C350202DD for ; Tue, 20 May 2014 22:33:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751018AbaETWdS (ORCPT ); Tue, 20 May 2014 18:33:18 -0400 Received: from mail-ob0-f201.google.com ([209.85.214.201]:43709 "EHLO mail-ob0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbaETWdS (ORCPT ); Tue, 20 May 2014 18:33:18 -0400 Received: by mail-ob0-f201.google.com with SMTP id wn1so244936obc.4 for ; Tue, 20 May 2014 15:33:17 -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:cc:in-reply-to:references :message-id; bh=SmDp2XlEZTcCRB+z4Hz7vxo9LrLzjOTuN1joGj3HW1Q=; b=GzQE1BcYRtdWDGNM9Jf/dJvLmGYbZ6UPFZnM87MqtyEfMmyJK/FW77sFpKLk9+a2yZ QeNI0ZLF0yptcIRCb6Rfkoy3/kKHVyWI9mteCmpKMJm9riz/+3GBMP2CD5k8niQKw2Vs U/iZHbOd3L4El4phUcZUePUynAydc2KwCX99OZ3GpifHIBcngZUsQ/+uBu9Q2eZcAQeJ z02jBd45pXel/7YLQ8IUSF+Ayvp/AlJiUJGmQf+Vwzd7JCSYeoi+PLViAiHmt6dN/khz 94iGtptTY7/xyzu2bUZ+jrC0iCKOhYIbwOKVRi+zKMf6FWJ+xrZx3YGk5jd0HOH0e5Xb nEZg== X-Gm-Message-State: ALoCoQnXAHSV7a1Mz9Wrb1tX0q6/kIZQUYiL6Rvx5VemzV0beTlLbWQISAmMk5g7on85Qf/Y7Gix X-Received: by 10.42.233.133 with SMTP id jy5mr6683159icb.32.1400625197504; Tue, 20 May 2014 15:33:17 -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 n43si846661yhe.1.2014.05.20.15.33.17 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 May 2014 15:33:17 -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 54BEE31C1C6; Tue, 20 May 2014 15:33:17 -0700 (PDT) Received: by pstew.mtv.corp.google.com (Postfix, from userid 110058) id EFCF1E0007; Tue, 20 May 2014 15:33:16 -0700 (PDT) From: Paul Stewart Date: Tue, 20 May 2014 13:27:16 -0700 Subject: [PATCHv2] nl80211: Provide TDLS link state To: linux-wireless@vger.kernel.org Cc: Luca Coelho In-Reply-To: <1400622868.25946.12.camel@dubbel> References: <20140520203657.2C281E0300@pstew.mtv.corp.google.com> <20140520203657.2C281E0300@pstew.mtv.corp.google.com> Message-Id: <20140520223316.EFCF1E0007@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..44aca23 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 for %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, }; /*