Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2675824pxj; Mon, 31 May 2021 08:01:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrhRHVgHrf8UNK5QPCdkiVu5o+TE3vMTqy5HlmIf6cYbnpNh7qb2i0QlBo55aKNu08jmGG X-Received: by 2002:aa7:dc4f:: with SMTP id g15mr7439414edu.277.1622473307312; Mon, 31 May 2021 08:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473307; cv=none; d=google.com; s=arc-20160816; b=0Lq7eWcy/K8dvK1O23ec3wgXD8AoZ4yDM+G+XvhFReNiLRfXiYGuTY0U1rmVwXtnyA Nw2Y6T6PrB4kYto6U2QiO3ew4jrZnqo6YWGp/JtxinZ5j5Q0kh1LsqgItIr6QyVPkMwj JVv473Z1Ji1g/5FINE/3na3O2Pu1rwPMG4sN6M7C96jQPFXrJzpffR9wRvv44yQabyrl u1aOVGlcmOCGS1lk0edPwYS2A5ibaYDzQ3eOf3Z395i0Z9Tu6sSKTrysxDa5bvkBaje1 2H36k0Bd2CrnVx5JrhJz2ixGYuJhf1xOMJRvRzBe5Sv7MGdYWVBMXGEKXc03F5GxGiYb hvlA== 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=0NHqChC1AUGFNl0/COYtuH7r5uB25OAb6upUQOO4YFE=; b=BW39LQeBKwPRy0BmoxjEY5su+LWJYwJTcFT+ks6P7I2iUEuOeNctnEcuERyi9/E1Ff DAYIOXjtuMvEQlt41aJ8o+ZPmST+fpxOJBze+jLmCnU0W5uClfuSJz2FgfdePdvhmJWi p6aBRkSB3JWcVAP1Le9JoGc46PHzb9ZgLxIe6GuoSuNNcfVp4005XctHS1b5Pq5paJRD zP92z6ykE856QKHtCrc0PFDHXftM2N30Jx7sCumole7D5P3d94icQhfFta8XDMccbv26 Y2uM02PFfoRx3vdXMYesnRkVp2mEUlZv3fbTw52SQeuCfJ+K88TQBgtATzNNjXciR96u TCwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fhVf3xSv; 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 y12si923744eje.174.2021.05.31.08.01.24; Mon, 31 May 2021 08:01:47 -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=fhVf3xSv; 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 S233955AbhEaO7I (ORCPT + 99 others); Mon, 31 May 2021 10:59:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232292AbhEaOFX (ORCPT ); Mon, 31 May 2021 10:05:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AB1C61956; Mon, 31 May 2021 13:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468312; bh=0Gs3QaBX5NpBiFEW+dVVgdX5Zdxzj0UaiT1XmKN/qHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fhVf3xSv1wansAAlqm8rfAEcFlp6vLEg3EEKp2aZbbfF+e3SfXWSatKQUEuX5C2dQ pzwZOgNlL1BT20lCSUUJWtHNfPgyGQxvyk9XGnAhPmFn/cjFfPJ+EdqSZA0txQ7EZj KPbjiDqXBJvbteP4Bq/T3ifqTFNpc8RRFkAmywL0= 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.10 151/252] ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() Date: Mon, 31 May 2021 15:13:36 +0200 Message-Id: <20210531130703.136037228@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 99be0d20f9a5..dbc47702a268 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