From patchwork Thu Oct 31 14:40:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Dutt Undekari X-Patchwork-Id: 3120711 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 0B9BD9F3E2 for ; Thu, 31 Oct 2013 14:41:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A45C0203DB for ; Thu, 31 Oct 2013 14:41:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16A7D203C4 for ; Thu, 31 Oct 2013 14:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754670Ab3JaOlF (ORCPT ); Thu, 31 Oct 2013 10:41:05 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:49158 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754439Ab3JaOlE (ORCPT ); Thu, 31 Oct 2013 10:41:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1383230464; x=1414766464; h=from:to:cc:subject:date:message-id:mime-version; bh=HhoBtnwATHhT9i2uNPOWCUAbicEG4Vu4YqjMBb/8sds=; b=xbiN9X4TBlL7jx5OwfW9betsG9+Y6R5B7KjHg3QyA7mzoCEF1g3qSPu3 B5KXdndLnt09ttrIjJExvOyej13vk5hnqHF/0qk79JTwifBc1IlhZVqmY ZLGGZr6IbjSMTWQRxq/bztpxhuNnPfXH2Cr8Q3AB3UXaK5S4J7f3GsTTX s=; X-IronPort-AV: E=McAfee;i="5400,1158,7244"; a="84200669" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine02.qualcomm.com with ESMTP; 31 Oct 2013 07:41:02 -0700 X-IronPort-AV: E=McAfee;i="5400,1158,7244"; a="577338607" Received: from nasanexhc07.na.qualcomm.com ([172.30.39.190]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 31 Oct 2013 07:41:01 -0700 Received: from APHYDEXHC06.ap.qualcomm.com (10.252.4.23) by nasanexhc07.na.qualcomm.com (172.30.39.190) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 31 Oct 2013 07:41:00 -0700 Received: from ssuryade-ics.in.qualcomm.com (10.252.4.1) by qcmail1.qualcomm.com (10.252.4.23) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 31 Oct 2013 20:10:57 +0530 From: Sunil Dutt Undekari To: CC: , Subject: [PATCH] cfg80211: Introduce critical protocol indication for p2p connection. Date: Thu, 31 Oct 2013 20:10:52 +0530 Message-ID: <1383230452-12608-1-git-send-email-usdutt@qti.qualcomm.com> X-Mailer: git-send-email 1.8.2.1 MIME-Version: 1.0 X-Originating-IP: [10.252.4.1] 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.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 A reliable P2P connection needs to avoid any offload off channel operations triggered by the host driver.Thus, indicate such attempts to the host driver by including a new protocol id, signifying the p2p connection. Signed-off-by: Sunil Dutt --- include/uapi/linux/nl80211.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 8f01961..cae07aa 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -3894,6 +3894,7 @@ enum nl80211_protocol_features { * @NL80211_CRIT_PROTO_DHCP: BOOTP or DHCPv6 protocol. * @NL80211_CRIT_PROTO_EAPOL: EAPOL protocol. * @NL80211_CRIT_PROTO_APIPA: APIPA protocol. + * @NL80211_CRIT_PROTO_P2P: P2P protocol. * @NUM_NL80211_CRIT_PROTO: must be kept last. */ enum nl80211_crit_proto_id { @@ -3901,6 +3902,7 @@ enum nl80211_crit_proto_id { NL80211_CRIT_PROTO_DHCP, NL80211_CRIT_PROTO_EAPOL, NL80211_CRIT_PROTO_APIPA, + NL80211_CRIT_PROTO_P2P, /* add other protocols before this one */ NUM_NL80211_CRIT_PROTO };