From patchwork Mon May 27 13:14:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sriram R X-Patchwork-Id: 10963033 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 01D1476 for ; Mon, 27 May 2019 13:14:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E338228898 for ; Mon, 27 May 2019 13:14:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7CE628B6B; Mon, 27 May 2019 13:14:33 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 60B0728B68 for ; Mon, 27 May 2019 13:14:33 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=Qb1oWH8XtOSnNVH+KgQXeFr9Lq5JqyHDJiS37vvwNPM=; b=aaU 1FWjJ1w4oE7piUkZvr52JLzrPZfzAI9dvsW8J1adBUa2lgF/LEdGg9K/pA1cwg888Wg6DTd+OdHMk wPUhgbtHtOvmdm4i6jd6Ccz29Xbm1prEHP3K1SkYct/IfeT0xpMs/Hz9EM+N84RDvEFx+1kpl5S6/ OZGPkXNXHnagHsmeZqAIK3izWPH4PtoOg06h30SfaCREGaPiELressDYnYYmC5fEep9gkPeBaueet rRbdj//EszPQzLcpf/gN34NJVnwYSIEshCt3BTOS6bKj+OwaFNrOMpnvE51gDGkHdDyV/kIG3fBHW 9r2+DNG8D6iE9hDOyTGDsH9SB9l/oPg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVFSS-0006tf-DN; Mon, 27 May 2019 13:14:32 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVFSP-0006tJ-Nn for ath11k@lists.infradead.org; Mon, 27 May 2019 13:14:30 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7F641602F2; Mon, 27 May 2019 13:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558962868; bh=yu/r+CU+4m4sdV1XRX9vUvCqDlle+t7tKc0Q9ikRgXk=; h=From:To:Cc:Subject:Date:From; b=nLb9GqhtsJsNjbuanhva75Y8iCcaJ3UXy7O/he96GtiWOCnK2MqRAjwYtv/PijhZ5 eknvVr4marG0KDFkAaqxaWqJBOa0aBjqYzctXNtyXr25mGNEpD2/+D04uHD8hRL2Z3 GN876RlD2ArQmCYUAtbs7WB0bOW9bRFl5tQhrGck= Received: from checstp253621-lin.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: srirrama@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1B67B60213; Mon, 27 May 2019 13:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558962868; bh=yu/r+CU+4m4sdV1XRX9vUvCqDlle+t7tKc0Q9ikRgXk=; h=From:To:Cc:Subject:Date:From; b=nLb9GqhtsJsNjbuanhva75Y8iCcaJ3UXy7O/he96GtiWOCnK2MqRAjwYtv/PijhZ5 eknvVr4marG0KDFkAaqxaWqJBOa0aBjqYzctXNtyXr25mGNEpD2/+D04uHD8hRL2Z3 GN876RlD2ArQmCYUAtbs7WB0bOW9bRFl5tQhrGck= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1B67B60213 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=srirrama@codeaurora.org From: Sriram R To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: Avoid frequency offset based sanity check in radar detection event Date: Mon, 27 May 2019 18:44:05 +0530 Message-Id: <1558962845-12903-1-git-send-email-srirrama@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190527_061429_794025_C423BBEC X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sriram R MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the detected radar is indicated to mac80211 only when the active rx channel is indicated in the event through channel frequency and offset. But in case there is a minor difference in this offset provided,say +/- 1, the event will rejected. Hence avoid having these checks to indicate radar to mac80211. Basically the event from firmware is highly reliable and such sanity checks are not necessary. Signed-off-by: Sriram R --- drivers/net/wireless/ath/ath11k/wmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index 4f2ac21..90d9560 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -5809,12 +5809,6 @@ ath11k_wmi_pdev_dfs_radar_detected_event(struct ath11k_base *ab, goto exit; } - if (ar->rx_channel && ar->rx_channel->center_freq != (ev->chan_freq - - ev->freq_offset)) { - ath11k_warn(ab, "Radar detected in non-operating channel"); - goto exit; - } - ath11k_dbg(ar->ab, ATH11K_DBG_REG, "DFS Radar Detected in pdev %d\n", ev->pdev_id); @@ -5826,6 +5820,7 @@ ath11k_wmi_pdev_dfs_radar_detected_event(struct ath11k_base *ab, exit: kfree(tb); } + static void ath11k_wmi_tlv_op_rx(struct ath11k_base *ab, struct sk_buff *skb) { struct wmi_cmd_hdr *cmd_hdr;