From patchwork Tue Jul 11 13:56:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 9834747 X-Patchwork-Delegate: kvalo@adurom.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 6CA1C602A0 for ; Tue, 11 Jul 2017 13:57:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DA722821F for ; Tue, 11 Jul 2017 13:57:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51D5328403; Tue, 11 Jul 2017 13:57:42 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 C6E1E2821F for ; Tue, 11 Jul 2017 13:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755953AbdGKN5k (ORCPT ); Tue, 11 Jul 2017 09:57:40 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:48560 "EHLO alexa-out-lv-01.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755947AbdGKN5j (ORCPT ); Tue, 11 Jul 2017 09:57:39 -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=1499781460; x=1531317460; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=5arFlORnsGw7loPfWRdqJw8D7SeRTtl7ee+wRptjn2I=; b=eoBJQ/RJ6dqL6axgCCEXx+vHRxK4IVJ6cgMSTwECm9mYoF1f84dkZHCN 7vmpnhfvWR6vp9vS2ibzgRyAGVG+vx298j7JRj4YwOQfL/djijuEkW6Pi gZFm3lLAqDIG77RgrcUFhvCwK3xSU8irgYYFqJXZVtGyPBny4oUlnfYtQ c=; X-IronPort-AV: E=Sophos;i="5.40,346,1496127600"; d="scan'208";a="668989" Received: from ironmsg03-r-new.qualcomm.com (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by alexa-out-lv-01.qualcomm.com with ESMTP; 11 Jul 2017 06:57:39 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8587"; a="1403814711" X-MGA-submission: =?us-ascii?q?MDG7tp0CwlA7g8HJQcGwKMnrIf9U/fcYaNSRea?= =?us-ascii?q?MbErL7MyBDc4vNHKnYTE2mWnH0h6aDtShRKELqBOzfDb8QxuxKSulXfO?= =?us-ascii?q?dBXb5LICkSF6Z5OxBKbqlILeMpULJjaHCOZiFUVQ4X9Ww3yLXSOkpIoA?= =?us-ascii?q?tJ?= Received: from nasanexm01a.na.qualcomm.com ([10.85.0.81]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 11 Jul 2017 06:57:38 -0700 Received: from aphydexm01f.ap.qualcomm.com (10.252.127.15) by nasanexm01a.na.qualcomm.com (10.85.0.81) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 11 Jul 2017 06:57:37 -0700 Received: from localhost (10.80.80.8) by aphydexm01f.ap.qualcomm.com (10.252.127.15) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 11 Jul 2017 19:27:32 +0530 From: To: CC: , Manikanta Pubbisetty Subject: [PATCH 3/3] ath10k: push peer type to target for TDLS peers Date: Tue, 11 Jul 2017 19:26:18 +0530 Message-ID: <1499781378-858-4-git-send-email-mpubbise@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1499781378-858-1-git-send-email-mpubbise@qti.qualcomm.com> References: <1499781378-858-1-git-send-email-mpubbise@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01f.ap.qualcomm.com (10.252.127.15) 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 From: Manikanta Pubbisetty WMI interface for all the firmwares(except QCA6714) does not include the type of peer(default/bss/tdls) requested during peer creation, therefore target creates a default peer. TDLS implementation on 10.4 firmware requires host to configure the peer type(tdls) for TDLS peers. This patch adds peer type parameter to the existing WMI interface for peer creation to accommodate this requirement. Tested this change on QCA9888(10.4-3.5.1-00018) and QCA988x(10.2.4.70.9-2) with ping tests for AP/STA modes. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath10k/wmi.c | 1 + drivers/net/wireless/ath/ath10k/wmi.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index c91d804..b5e5a9e 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -6500,6 +6500,7 @@ void ath10k_wmi_start_scan_init(struct ath10k *ar, cmd = (struct wmi_peer_create_cmd *)skb->data; cmd->vdev_id = __cpu_to_le32(vdev_id); ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); + cmd->peer_type = __cpu_to_le32(peer_type); ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi peer create vdev_id %d peer_addr %pM\n", diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index eb95e8b..7b3a413 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -5876,6 +5876,7 @@ struct wmi_tbtt_offset_event { struct wmi_peer_create_cmd { __le32 vdev_id; struct wmi_mac_addr peer_macaddr; + __le32 peer_type; } __packed; enum wmi_peer_type {