Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2740367pxj; Mon, 31 May 2021 09:32:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjm01vAyuSTAU0UO5u9n02jOXB2osO1MNicEoHDVmDA7LWFEBEDCUb1EibHA0+xlJ8MtHo X-Received: by 2002:a6b:f118:: with SMTP id e24mr17908415iog.125.1622478770319; Mon, 31 May 2021 09:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478770; cv=none; d=google.com; s=arc-20160816; b=kjAkN/hBSaXVmbZvIroN2LK0Dd9z3bh8Y26zBDHdIBv9LBUC8utbUX22SdOhIw6DA+ SRDmsh9Xfqnsea6rN7NNvY8MNG/URUjyWbhD0Frio+R8QA9UVaZqRdcAXoUa3bN3F1fo J/KgQOKi5PTFA4tPclgR51mAzA3kBWu61MU34sYj8haSQAYxxlgJ5Ro73jWHUcpi/yfU lM/txQOIezByCVQCoSoDrFzO5EnLZW9cHjgJYpHJWw5eqJOF+lOzdmGoMglvR/0CTfq3 HqHm0yTeachodRYrEOFT+h8bfoTrVbSt2IhkBagdhZNEnEEorCZJ7XfYxyYTrxz1xOLm 77SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pfXcWpNXdKt0IIl9uvRj1Rx6QdbnjGjdel2dQ8sE5xA=; b=djCkOkpMq2ZJ4afiPXwkR/79gFJXihIr7Ye/sbP5pnwOhFky4nPxYgHWpmUZm4N9J0 g2awr/Ghepgf6QPLTYbWw8eU1pXydOw8bi5mXnGMDD54Cu2n1cqto+AozFlg0xzwdhlW Nu/jQb3/nvomqOLalvg+R4x1PxRGVT5DBgATCElQkZQxb9K0fraR8UpQQwh8UyfsO6Y+ p3jahTi6Mn2AazsscF1f1vEuz4oD4bebQBYYh7QhvtiOdRTu3ijXcLDuHFd57ai3hSaD PhFJ2/m49NnjS9FxUQiWxvpnbJtTfQVksmAjz0/Jjy1rYWgz0sajJlsDAPhUHk8zwcpq vjLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Bk1iPLbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si14521816ilv.39.2021.05.31.09.32.35; Mon, 31 May 2021 09:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=Bk1iPLbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbhEaQdd (ORCPT + 99 others); Mon, 31 May 2021 12:33:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:40794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233838AbhEaOrk (ORCPT ); Mon, 31 May 2021 10:47:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1BF161927; Mon, 31 May 2021 13:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469389; bh=o2UOksS0HVOeLjuz84GvooEFiCHXaNV0PYRXLcFFWmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bk1iPLbpcIRGJf7pevJYGnFlNM++REgcRz2tGja+cLXX7hnZVnlvFhVX3qkY04iNX x/mpF1BZmeColD+IqzlDHWWNWnJ+4z3uS5IXJFl2AaY6MeUmoqu5MtUGY/Um8K2sVz HIK7NOnvbSmt054VJqiS8YXIegMNSPn1+GSPvUPo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Kalle Valo , Sasha Levin Subject: [PATCH 5.12 180/296] Revert "ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd()" Date: Mon, 31 May 2021 15:13:55 +0200 Message-Id: <20210531130709.914038808@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit efba106f89fc6848726716c101f4c84e88720a9c ] This reverts commit fc6a6521556c8250e356ddc6a3f2391aa62dc976. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The change being reverted does NOTHING as the caller to this function does not even look at the return value of the call. So the "claim" that this fixed an an issue is not true. It will be fixed up properly in a future patch by propagating the error up the stack correctly. Cc: Kangjie Lu Cc: Kalle Valo Link: https://lore.kernel.org/r/20210503115736.2104747-43-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath6kl/wmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index b137e7f34397..aca9732ec1ee 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -776,8 +776,10 @@ int ath6kl_wmi_set_roam_lrssi_cmd(struct wmi *wmi, u8 lrssi) cmd->info.params.roam_rssi_floor = DEF_LRSSI_ROAM_FLOOR; cmd->roam_ctrl = WMI_SET_LRSSI_SCAN_PARAMS; - return ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID, + ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID, NO_SYNC_WMIFLAG); + + return 0; } int ath6kl_wmi_force_roam_cmd(struct wmi *wmi, const u8 *bssid) -- 2.30.2