Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1507993pxb; Wed, 4 Nov 2020 10:47:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxbdvGAoJowcw/F9I5GShM/g4YU1ryK6xeDnkuEjSB2ekRyG4czBnG8Ur0n/GNq/D2vkuM X-Received: by 2002:a50:bb06:: with SMTP id y6mr28627154ede.278.1604515630822; Wed, 04 Nov 2020 10:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604515630; cv=none; d=google.com; s=arc-20160816; b=Xnjr56w7xxkLVRKfj9/Z/5eeTW3oCete0FZsLNnuA25BiFKNdMe2+Fn4WhQUPpA097 nwyhv88PZ00BohZv2JVcOnTwdJubr3wUpW6N4edGBgpxGJlugzbmn6+RCCSaZJJcZjCw U9bJl7jbIOx45jX8xDdFJrt5C8EwESzEREwZ6/hCCXGlyEuXzNDsyuwkSKZWz5DN7FDP pJ17Sm+GVpjb/p+3+keOTX7ktUapl4OK1K5UMlk4ElZBwNrf32u/2EVud540BjRE1wcc ARbp7So5ydSnJjqDPnM7TiY77Ci0AoQFn1YIl+w+k5XCJSUDLOUa/eKoaRGRbI+3Eavv m+mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=2S1Ebta5UukZ4v1vDtKokuslV3WSYtgm9aD3Nxy9sdI=; b=ZxPbK9iVGgt827HTlvQFU3b+ur8cT4FqqtKVlFmux79v0zHF7HjUFDQxbmsOft7996 NXrhf/865lucoKnsVWn0BrXXydDRaZc+IFxOWFBjRA4+YEr7Xa2/JbftZ2PNDE7gMJuo kr4Oyrw+oOhwbwaAhmPwpHFVsikLGQBdXwF5JUibZ+t27JBhkTtBo465hXPtKSulEeY/ c/G/fMWdiXlKUBChhVUloWi/phTd4nG3ubXqdd3lIp/cTEyJw2TEO0hW46JgGe7sgWCd ndNet+/8exlP/3aaJ27GGDGif1rTpD7FnbcZi8i6J7HNhbTa7lNmG7GUy6TWrnQEZgE9 a5og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lDNvZu8L; 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 c19si1848150ejp.465.2020.11.04.10.46.33; Wed, 04 Nov 2020 10:47:10 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lDNvZu8L; 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 S1730145AbgKDRfy (ORCPT + 99 others); Wed, 4 Nov 2020 12:35:54 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:53522 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbgKDRfy (ORCPT ); Wed, 4 Nov 2020 12:35:54 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604511353; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=2S1Ebta5UukZ4v1vDtKokuslV3WSYtgm9aD3Nxy9sdI=; b=lDNvZu8LeV1CJNRruA7StU80YPIaLls6vishwGJXrX3kboTzc3l2wgl6OdKsAOtz6hxslWJB o87dmTOUhSTKgeSCxjgDLm7QxIVH++YoRfbjRMKRjnh1lbEftWkRNKT6+serwD2AN+fhp3+v 5F1NCXJIFLa20vyWdqW39rYj2I8= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5fa2e67846e8885ab857f353 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 04 Nov 2020 17:35:52 GMT Sender: periyasa=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 576B3C433CB; Wed, 4 Nov 2020 17:35:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from periyasa-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: periyasa) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5CAD2C433C8; Wed, 4 Nov 2020 17:35:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5CAD2C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=periyasa@codeaurora.org From: Karthikeyan Periyasamy To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Karthikeyan Periyasamy Subject: [PATCH] ath11k: Fix single phy hw mode Date: Wed, 4 Nov 2020 23:05:31 +0530 Message-Id: <1604511331-22477-1-git-send-email-periyasa@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org driver not able to bootup in the single radio configured board. single phy hw mode is converted to invalid hw mode and sent to FW through wmi init cmd. In that case driver is not receiving wmi ready event which leads to driver bootup fail. single phy hw mode is a valid for single radio configured board. so removed the conversion logic. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2 Signed-off-by: Karthikeyan Periyasamy --- drivers/net/wireless/ath/ath11k/wmi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 6e17373..1f0c517 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -3351,9 +3351,6 @@ int ath11k_wmi_cmd_init(struct ath11k_base *ab) init_param.hw_mode_id = wmi_sc->preferred_hw_mode; init_param.mem_chunks = wmi_sc->mem_chunks; - if (wmi_sc->preferred_hw_mode == WMI_HOST_HW_MODE_SINGLE) - init_param.hw_mode_id = WMI_HOST_HW_MODE_MAX; - if (ab->hw_params.needs_band_to_mac) { init_param.num_band_to_mac = ab->num_radios; ath11k_fill_band_to_mac_param(ab, init_param.band_to_mac); -- 2.7.4