Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2741595pxj; Mon, 31 May 2021 09:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEV7NGpzEma2/Mmk2wY8sofbQZ4zj0PmmKwk324uU7CYH7yl2ab99oT/dvMl7sg+pMSCuy X-Received: by 2002:a6b:f805:: with SMTP id o5mr4755713ioh.55.1622478879420; Mon, 31 May 2021 09:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478879; cv=none; d=google.com; s=arc-20160816; b=Nii6YzLuAFtq8k7Cg9GTKlhwqeMcHtfr+i75SneNrIVubiN6PDn/6aijwjWkOnI4/4 zVHjGKQi+/J0sQY0Y/Sj+8tbOJ01V3sF7wW/PO3K7B5tHmLlxHsgPYtQM0qmj6yLAFe6 zBfB4w20+kWudaGq8mqfxfOTIfVF5DgEQfH46VH+VW9H6k5yt7zHI6DIA31sXZ4sQqX3 Dm7ZzXLLNeFRFk+0vSMEhcH06B9jZ6egaqY4vD5l0Iu+LcW4tlLY/nYX01HyFczyCmAq m5Kh9EA5KUQ5XNHRVq1dDEvMW9y7/ApxSVuxU5wratRKIIO81noBVMwT21Z8+vvntyVu l/ww== 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=gmXFMTU6zoRCIZ/3CJcf6epk8WZ9YnMr5BfWCs+bdgo=; b=IlSxOcF5okr31j09UIXKkPc5RhlgQsWZIudwCaW3YKJhtBM75hKnX5f/pFNd5HUXkk sItQAwDtOxsjrYaDwuHc7aosqw/IpH5YD/f1PL1AlvIFKvzcn/oLZEdISbl2WDte+B/W hUYpnw10JfncXT8y+n803KGINZFPkgMKdfIKRvWJQd/6UVQpIcwImSkXVocgLZxG4b5n 01jtoxJNewQ684Bdz5A11lNg54PscothzMx82RxJQ9fvHPBc9ZAgARhd721J0qY6mnk6 gthAbn1QE97zeOTuqg+DlsHUrm/hx5lCXrSakrXZvkCieeBB0WNzfDP4Uuoj6YPa86Nx +dMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ajv3LMxD; 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 l6si1417179ilf.146.2021.05.31.09.34.25; Mon, 31 May 2021 09:34:39 -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=ajv3LMxD; 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 S231485AbhEaQdj (ORCPT + 99 others); Mon, 31 May 2021 12:33:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:40824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233889AbhEaOrn (ORCPT ); Mon, 31 May 2021 10:47:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90C2961C93; Mon, 31 May 2021 13:56:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469392; bh=7G2DwLnpVIfbCwkCVkC+IydAOQBED/a3NtnPu6MG1cE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ajv3LMxDm1jqaL6hmLtMzivYDDKuaixFRVr6gFsB9L3fGbGCXLpyMBd+ehsS5pF6x K2icTuW8Sx0VUcQk4WtSkoDj3ixhfvpPR7bjOIXnEepYk33dm1Aquk+m4xGAjbnhOQ ODNeD8kyQzK2wRzFtWBZlBLoi5zah1ds7sPl57cg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anirudh Rayabharam , Kalle Valo , Sasha Levin Subject: [PATCH 5.12 181/296] ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() Date: Mon, 31 May 2021 15:13:56 +0200 Message-Id: <20210531130709.947553340@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: Anirudh Rayabharam [ Upstream commit 54433367840b46a1555c8ed36c4c0cfc5dbf1358 ] Propagate error code from failure of ath6kl_wmi_cmd_send() to the caller. Signed-off-by: Anirudh Rayabharam Cc: Kalle Valo Link: https://lore.kernel.org/r/20210503115736.2104747-44-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath6kl/debug.c | 5 ++++- drivers/net/wireless/ath/ath6kl/wmi.c | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c index 7506cea46f58..433a047f3747 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.c +++ b/drivers/net/wireless/ath/ath6kl/debug.c @@ -1027,14 +1027,17 @@ static ssize_t ath6kl_lrssi_roam_write(struct file *file, { struct ath6kl *ar = file->private_data; unsigned long lrssi_roam_threshold; + int ret; if (kstrtoul_from_user(user_buf, count, 0, &lrssi_roam_threshold)) return -EINVAL; ar->lrssi_roam_threshold = lrssi_roam_threshold; - ath6kl_wmi_set_roam_lrssi_cmd(ar->wmi, ar->lrssi_roam_threshold); + ret = ath6kl_wmi_set_roam_lrssi_cmd(ar->wmi, ar->lrssi_roam_threshold); + if (ret) + return ret; return count; } diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index aca9732ec1ee..b137e7f34397 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -776,10 +776,8 @@ 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; - ath6kl_wmi_cmd_send(wmi, 0, skb, WMI_SET_ROAM_CTRL_CMDID, + return 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