Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp536226pxa; Wed, 12 Aug 2020 08:04:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5yyGeF9sQbGnqUovMaiQcyO5WzaiMmtiyCQZBzOLaARdsoBBNH3DM54oEG8Ig5oIm9zZO X-Received: by 2002:a17:906:b294:: with SMTP id q20mr176574ejz.223.1597244684185; Wed, 12 Aug 2020 08:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597244684; cv=none; d=google.com; s=arc-20160816; b=bNcWtGSmq6zE5WGPp18+SUkPyxxrDOjuHPqGr6OQvo7rQ1Yzc97OmLhVwoMEHLX5wP tfJmrnJUVpzrokS40kxn77McoR6vVFNeSQNSwzf0pPQevXYf0fsM2XLysFSaf++NyiPw zJ5ThHQ3QPfOqdUhju+qJ2gdAMqjvQiRB210NrrJsAKPzAIfuSD1rJ0qskjaJPe0Ir4N AU5IIk6YR+1udA0KwRxGo7kAA3T8w1Z/xmHMs5XStpm4dALJtu/QerYFs8UNzR3AJuX2 uq7FiiA4jN1o33iyljnalcKpfraOzZZfe3uolMgRzQP4PjN5CnyWfbYYnIBa9bi96w/4 rGfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AH8SIDm9b4errpp6gGYmRC2hdSD/wvzcW5i6CafLgKI=; b=KhuY1svQcYhgf3r3Y2K7GX/l7Pz0QxtMl3cIivpFk2M9/PlPaLDodVsudMuRkDMu3X Bx2J2RMJIs4Pzm2aphbLM8lDYciAabHwFF6gu3akGgF3lUDAmlQQEUO33I4pfR5DFaNa UP9dSCWGGAd8voul22/7HP1cOBUFx5TWgTdvYTtgysd6liAclt2B8pJbFXS1baGwncTH 17qqPps76kg+8mNFQkKsVO8InjvYqJLdyIIJs7sgCb0QsrBinakxetyuoF1+leAkJnY/ jYJD0C7dC3VWWZgVldshqga8ZPqdn+KX1o0MeYLL1KvRuuhtkJF05toaJXWUrLABAoh9 0iLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si1150433ejx.93.2020.08.12.08.04.19; Wed, 12 Aug 2020 08:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbgHLPBr (ORCPT + 99 others); Wed, 12 Aug 2020 11:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbgHLPBB (ORCPT ); Wed, 12 Aug 2020 11:01:01 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE192C061386 for ; Wed, 12 Aug 2020 08:01:00 -0700 (PDT) Received: from [149.224.82.90] (helo=localhost.localdomain) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1k5sFO-0002OP-9b; Wed, 12 Aug 2020 17:00:58 +0200 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, John Crispin Subject: [PATCH V3 6/9] ath11k: add the multiple bssid WMI commands Date: Wed, 12 Aug 2020 17:00:47 +0200 Message-Id: <20200812150050.2683396-7-john@phrozen.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200812150050.2683396-1-john@phrozen.org> References: <20200812150050.2683396-1-john@phrozen.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add the code to pass the BSS specific multiple bssid info to the FW. Signed-off-by: John Crispin --- drivers/net/wireless/ath/ath11k/wmi.c | 3 +++ drivers/net/wireless/ath/ath11k/wmi.h | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 04ef73d1f032..ffe8d7b1320b 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -641,6 +641,8 @@ int ath11k_wmi_vdev_create(struct ath11k *ar, u8 *macaddr, cmd->vdev_subtype = param->subtype; cmd->num_cfg_txrx_streams = WMI_NUM_SUPPORTED_BAND_MAX; cmd->pdev_id = param->pdev_id; + cmd->flags = param->flags; + cmd->vdevid_trans = param->vdevid_trans; ether_addr_copy(cmd->vdev_macaddr.addr, macaddr); ptr = skb->data + sizeof(*cmd); @@ -1603,6 +1605,7 @@ int ath11k_wmi_bcn_tmpl(struct ath11k *ar, u32 vdev_id, cmd->csa_switch_count_offset = offs->cntdwn_counter_offs[0]; cmd->ext_csa_switch_count_offset = offs->cntdwn_counter_offs[1]; cmd->buf_len = bcn->len; + cmd->mbssid_ie_offset = offs->multiple_bssid_offset; ptr = skb->data + sizeof(*cmd); diff --git a/drivers/net/wireless/ath/ath11k/wmi.h b/drivers/net/wireless/ath/ath11k/wmi.h index a2d81abf6356..ad741add1ebe 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.h +++ b/drivers/net/wireless/ath/ath11k/wmi.h @@ -119,6 +119,12 @@ enum { WMI_HOST_WLAN_2G_5G_CAP = 0x3, }; +enum { + WMI_HOST_VDEV_FLAGS_NON_MBSSID_AP = 1, + WMI_HOST_VDEV_FLAGS_TRANSMIT_AP = 2, + WMI_HOST_VDEV_FLAGS_NON_TRANSMIT_AP = 4, +}; + /* * wmi command groups. */ @@ -2456,6 +2462,8 @@ struct vdev_create_params { u8 rx; } chains[NUM_NL80211_BANDS]; u32 pdev_id; + u32 flags; + u32 vdevid_trans; }; struct wmi_vdev_create_cmd { @@ -2466,6 +2474,8 @@ struct wmi_vdev_create_cmd { struct wmi_mac_addr vdev_macaddr; u32 num_cfg_txrx_streams; u32 pdev_id; + u32 flags; + u32 vdevid_trans; } __packed; struct wmi_vdev_txrx_streams { -- 2.25.1