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: 9848167 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 CEE2160392 for ; Tue, 18 Jul 2017 11:59:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC5C627FAC for ; Tue, 18 Jul 2017 11:59:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B134428497; Tue, 18 Jul 2017 11:59:18 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 35FC327FAC for ; Tue, 18 Jul 2017 11:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LEhc/tih/ZUQHWzBJR7Ow6X2/f1R6UztpFs0qtbjmCY=; b=Lq3wx6nqR9vWEu HH6cOfi8wL5WWmc3kIHHYXjR2hRt7CAPdVrt82ihvgDr2ezX7SNJn2VnjWkWAave4o6XJ+8v73eNi c/PYO7X9IPo37x6TB/qXc9DlIV2N+J5rltTJkYmXsF2QcLHUaqklwFFUvW59rk/gfYkNFN2lMMlla vaaeXx+uV+nV9Pk2teZZWB0XoWGAVluYBx2XbVi2U+awovrvLPM9b/vj9yXE66VkDkw3inZMD81zv dehgGNDsLFpGgxHUxH7n2ELOMhSjpJ/HiUiknnW5DIDNPwOvLaXs826JL6KpuwivVwKyTyi05aXWF oINdciAWkY/jlS1YqBpw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXR9l-00031G-40; Tue, 18 Jul 2017 11:59:13 +0000 Received: from sabertooth02.qualcomm.com ([65.197.215.38]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXR9h-0002td-JV for ath10k@lists.infradead.org; Tue, 18 Jul 2017 11:59:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1500379149; x=1531915149; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=9THd9q+mfOC2Jas1jjdmT8RxW7kUJWap2AWHPlkEACY=; b=m9CdBIYBZPY/Qrguzl9pYj/YxbzlcnNmdN4czPgyUhlSG4NXRo4wrY4N ESYS9ugq5CRlUN6qJbU4gbsMT34f8KBGUDCDzjPzrW0Gbw/lpODMGLUZd Y9kwZQwpPdR4WYoW9dYGHx815YO+bzBBfi+rhRn4lkj86+ckNjgT/zR0E I=; X-IronPort-AV: E=Sophos;i="5.40,377,1496127600"; d="scan'208";a="111798979" Received: from unknown (HELO Ironmsg04-R.qualcomm.com) ([10.53.140.108]) by sabertooth02.qualcomm.com with ESMTP; 18 Jul 2017 04:58:46 -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: 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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170718_045909_720357_525CEC4E X-CRM114-Status: UNSURE ( 7.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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 {