From patchwork Fri Oct 22 23:57:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Li X-Patchwork-Id: 12579189 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4D55C433FE for ; Fri, 22 Oct 2021 23:58:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CA5B608FB for ; Fri, 22 Oct 2021 23:58:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231293AbhJWAAq (ORCPT ); Fri, 22 Oct 2021 20:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232183AbhJWAAp (ORCPT ); Fri, 22 Oct 2021 20:00:45 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E2DC061766 for ; Fri, 22 Oct 2021 16:58:27 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id h196so7464387iof.2 for ; Fri, 22 Oct 2021 16:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squareup.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HDS7qDHjHOaWOFZwMpIbasUAJZB8YLyW4e2fBz6JHaQ=; b=YSzqSWMAubbhHAheo3UGfbnP6ZHGIfBUiuOKXaagQp/0NGVfyeIXSPBYRLy8DyfSB9 n73i7f6FAdN6aqM2VmycTp6+BhhlQwB+xM5c4cKl98FYC2nyc0qsf70FYQNVzlMxDF+N /MPSzk9Mv3VAPlAZOgQ2SIH56zImPqoLfgvfs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HDS7qDHjHOaWOFZwMpIbasUAJZB8YLyW4e2fBz6JHaQ=; b=ZJH2OrsRjqf0IfvqQrYmx/e43etAOwcSsbVYfDKhohVciFQgrxEX/SRUP89YKoqvJ5 rCoqvliP43wG46Sl9kaYnPHoLg1Y87r0lMcSChfT41i82tVw0hD32OfBGqIK6nFypN3y l7N8dJx3dTm0jz+XLqApHawrnV3onq8tLwo0DbenQVO20g2hqBgqAkb3yP5EJ29819Ve dB85ucdpwuwgv8TYzw8X+G+zjVA0M4RiY57mhyBfA+DMmUF54xS+5DuTr3KFzv+LxghG IZ67saTMJXVZIe6X07yf6DHSD7faz6rqc7BLi0MGwYm0Tgpb0WW+86HRcvsfm1T2fbm1 gktw== X-Gm-Message-State: AOAM533I4ieStlwLcKDWg/BcZbRZU3Nb2C8u5cubMKzWhmmfCe9HHTHc BW3LGPAw06uW6Rik1m0MhDr+lQ== X-Google-Smtp-Source: ABdhPJwlcG4U/fvs7GLKW6fhpUoafn85mCdtXLVaK6ElzfOmSbH/J7pgw/ag96lYFBXBh4KjZPu1lg== X-Received: by 2002:a6b:ce03:: with SMTP id p3mr1672879iob.163.1634947106513; Fri, 22 Oct 2021 16:58:26 -0700 (PDT) Received: from localhost ([2600:6c50:4d00:cd01::382]) by smtp.gmail.com with ESMTPSA id o1sm4993337ilj.41.2021.10.22.16.58.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Oct 2021 16:58:25 -0700 (PDT) From: Benjamin Li To: Kalle Valo Cc: Bryan O'Donoghue , Loic Poulain , linux-arm-msm@vger.kernel.org, Benjamin Li , "David S. Miller" , Jakub Kicinski , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] wcn36xx: Switch on Antenna diversity feature bit Date: Fri, 22 Oct 2021 16:57:37 -0700 Message-Id: <20211022235738.2970167-2-benl@squareup.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211022235738.2970167-1-benl@squareup.com> References: <20211022235738.2970167-1-benl@squareup.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Bryan O'Donoghue Switches on Antenna diversity feature bit. Signed-off-by: Bryan O'Donoghue Signed-off-by: Benjamin Li --- drivers/net/wireless/ath/wcn36xx/smd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 3979171c92dd..be6442b3c80b 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2394,8 +2394,10 @@ int wcn36xx_smd_feature_caps_exchange(struct wcn36xx *wcn) INIT_HAL_MSG(msg_body, WCN36XX_HAL_FEATURE_CAPS_EXCHANGE_REQ); set_feat_caps(msg_body.feat_caps, STA_POWERSAVE); - if (wcn->rf_id == RF_IRIS_WCN3680) + if (wcn->rf_id == RF_IRIS_WCN3680) { set_feat_caps(msg_body.feat_caps, DOT11AC); + set_feat_caps(msg_body.feat_caps, ANTENNA_DIVERSITY_SELECTION); + } PREPARE_HAL_BUF(wcn->hal_buf, msg_body);