From patchwork Tue Jul 18 11:58:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 9848163 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 0023B60392 for ; Tue, 18 Jul 2017 11:58:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2A5927FAC for ; Tue, 18 Jul 2017 11:58:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D78F728497; Tue, 18 Jul 2017 11:58:49 +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 5C1C927FAC for ; Tue, 18 Jul 2017 11:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbdGRL6s (ORCPT ); Tue, 18 Jul 2017 07:58:48 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:61849 "EHLO alexa-out-lv-01.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751403AbdGRL6r (ORCPT ); Tue, 18 Jul 2017 07:58:47 -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=1500379127; x=1531915127; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=9THd9q+mfOC2Jas1jjdmT8RxW7kUJWap2AWHPlkEACY=; b=kJs0MAvDdiMuOJc9SUzgMZRZuICCQifFLV3co4qzCPy5tKLLGdziMtNa 9q5bW3vDXypV/J2W/6zghwKDiP9lmtYcW6r2t6/WNmf9fEzN+2h5ZYVXO MJJpDQhgwu+3kLIa9hVeZ8gWoGjr5ekVGfw7i3a6c4igvj/1LD84UIzW6 Q=; X-IronPort-AV: E=Sophos;i="5.40,377,1496127600"; d="scan'208";a="1237409" Received: from ironmsg04-r-new.qualcomm.com (HELO Ironmsg04-R.qualcomm.com) ([10.53.140.108]) by alexa-out-lv-01.qualcomm.com with ESMTP; 18 Jul 2017 04:58:47 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8594"; a="1458535047" X-MGA-submission: =?us-ascii?q?MDEcrlLM/KlNlIZPmKwFgKmlrq/VaRdRXU8pwD?= =?us-ascii?q?dojzbGifp19MaJGtxXeJUojC/wu8o6SDLWwGQSg6T+K8mZPWavvO3Ur7?= =?us-ascii?q?EFaQjPRqWYNEmbJ+idZhxUdmPsNQYAKy0GOoXN1rSz0UtVTTVVN1GoPf?= =?us-ascii?q?YG?= Received: from nasanexm01h.na.qualcomm.com ([10.85.0.34]) by Ironmsg04-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 18 Jul 2017 04:58:46 -0700 Received: from aphydexm01f.ap.qualcomm.com (10.252.127.15) by NASANEXM01H.na.qualcomm.com (10.85.0.34) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 18 Jul 2017 04:58:45 -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, 18 Jul 2017 17:28:40 +0530 From: To: CC: Subject: [PATCHv2 3/3] ath10k: push peer type to target for TDLS peers Date: Tue, 18 Jul 2017 17:28:14 +0530 Message-ID: <1500379094-2373-4-git-send-email-mpubbise@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1500379094-2373-1-git-send-email-mpubbise@qti.qualcomm.com> References: <1500379094-2373-1-git-send-email-mpubbise@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) 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 QCA6174) 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 da0e719..54dabf4 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 {