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: 9834753 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 1560A602A0 for ; Tue, 11 Jul 2017 13:58:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050A126AE3 for ; Tue, 11 Jul 2017 13:58:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED77B2821F; Tue, 11 Jul 2017 13:58:10 +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 A335F26AE3 for ; Tue, 11 Jul 2017 13:58:10 +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=VMMif4KzKrsnwLPPb/Jmwx7wr0TL/9itKt3JRbG5tts=; b=KBwWgu4b8YPL8z AK3CV7R5M6UcmKWppBagk3VFst+Zvk+byYvFDzUlQDJDcbumgCCu9vbg+Jofl9dKmwotK07TCya0w GtG6EQQ80JPzayZk0ByS6FWuhpVVMHPGN9/lpuOzkexD4s4pM0wNgXmJO+ga3ZH6Hcb/F9GlaWqeL fVS+1DdZJE2BUM71wEW7e3uXm15gPwTvPn4gF8E/fNSCCOjnudXcE0qK0VDHsmGCIEu8/BvpGHrZ0 BuziB0RCkpC5h1tdWGpkvWuIAcwRvQwhJVzD1iUmAGKVLQ1gdrsKaHTW9HVk8H52VeNMkoq/SwFnl l2UWOOaZBJFDGJshb7NQ==; 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 1dUvfx-0007B1-Q4; Tue, 11 Jul 2017 13:58:05 +0000 Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dUvfq-0006lg-1L for ath10k@lists.infradead.org; Tue, 11 Jul 2017 13:58:00 +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=1499781477; x=1531317477; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=5arFlORnsGw7loPfWRdqJw8D7SeRTtl7ee+wRptjn2I=; b=lD6P4Tu/hY8cosFrtBeJnyGkSavOhj+lhRFvrtC77JP9JTaY2nbs7obd okAyLHlopVOM5V+MJ821zJ3cjizhT8T/E0W3ILxBeeSCGS4/QTaUSAy0Y W+UmU5K+MQuh+Ro8qEdp5N+rVD7yRT9b8lkfASc0Q6c7ZTia8pg6zP29g Y=; X-IronPort-AV: E=Sophos;i="5.40,346,1496127600"; d="scan'208";a="110170423" Received: from unknown (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by sabertooth01.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: 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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170711_065758_236631_6044F041 X-CRM114-Status: UNSURE ( 7.97 ) 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: Manikanta Pubbisetty , 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 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 {