Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2704393pxj; Mon, 31 May 2021 08:39:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw88q3Wcb7MFOskgDSwVI93zIuQAKdfFzEQXbFdBgbJ1dEIGB5m7xZgjfVcha3Pjla8v1Wx X-Received: by 2002:a92:912:: with SMTP id y18mr10987014ilg.38.1622475593696; Mon, 31 May 2021 08:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475593; cv=none; d=google.com; s=arc-20160816; b=GRo8f+uWEt3vY8DrRmeg2ecs/MYBRKFCqeVxEsvS/8ZtDijV9ffOwZzL45oWXzXF1z NoYcz1BNh8fwA1RFCXR4kO0U1JY2epaBae1JlTLga7bbndkETcRXjQaiDlFkPtvfECVv Eg/ofm06n1tUz6iF6Gc3YsKRj77+TSZ2cOFFd4dUx+gBURjZ7eQWyRuiSjJVaT5sxAbQ 6bVqlPm9btJpyk2u2FvvGszJHjhR3M7YnW2mbi9x6k9NNfK7jRXjurDIq9RTT9WiNAbs Jn1e6RcdDX0BDnqNFi7Aj0tgifO9ypnVfhTp/jFg/Go8ZGX8U+mG2677N0cL0xqICybO Gr5Q== 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=5+7fNwCk85AWt7oUIMNYOp9BfwR3TJS6PKhF6myyOeo=; b=KHRjzvSJ80XC6MBZaXzdbU+Aa+oaNLzJEi1j414ozEfY/W3bUEGBc52jWQH8ZxNj8G OjmEjetQXzSH1ZATUbNSX5EX61Xf5YcrhIrs5V4bPhtqkj5za5bZf87BBGx7Nvs4a8ZU yed0WrQRSFhmhFyVWwLdEetiUd0NP9pDKi3Jg3WL/8gdUrh93s6qRbI2eAcDt4PEryba Gt/HXgsAQ2UOPsR7VibJR9fF1RGVjlQR5t2mttEJksk7sKC5z+oweNzi5WQWT/pOwj7z LC6Gzb8CSNy2x9KvW0FjAJAsgtsKz51MYLtg9l4TDDEuqaQiMeQySI15+dtZY8oifq0d 8Rjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JsvWAmax; 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 w13si6198713jao.90.2021.05.31.08.39.40; Mon, 31 May 2021 08:39:53 -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=JsvWAmax; 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 S234935AbhEaPka (ORCPT + 99 others); Mon, 31 May 2021 11:40:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:47632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233561AbhEaOXC (ORCPT ); Mon, 31 May 2021 10:23:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 07B9261554; Mon, 31 May 2021 13:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468728; bh=VB4Y1FojBfYAa5ucDtj+uTAZT4JTj8xqxuUainiCfUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JsvWAmaxBj/qtc3gzpoJMoPdFAg6ykTn+8Ie7xdg0Z8YSj73kriqyhRz0qpwYOdbZ GTP5rhzY/BL9hvDVZlLlSxF0rCFNLWN0WMy45/kyasW0KiFiLuFx9rJhSs6j2AvfE8 ByoASPjImwY+aeMJHPdwgfzqSwT14Da23y1CNTOQ= 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.4 104/177] ath6kl: return error code in ath6kl_wmi_set_roam_lrssi_cmd() Date: Mon, 31 May 2021 15:14:21 +0200 Message-Id: <20210531130651.501755649@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 54337d60f288..085a134069f7 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 d27b4088b874..c610fe21c85c 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