From patchwork Tue Oct 15 07:55:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 3043951 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7E480BF924 for ; Tue, 15 Oct 2013 07:55:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A5FB200D4 for ; Tue, 15 Oct 2013 07:55:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 69D3F201F4 for ; Tue, 15 Oct 2013 07:55:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757732Ab3JOHzt (ORCPT ); Tue, 15 Oct 2013 03:55:49 -0400 Received: from ebb06.tieto.com ([131.207.168.38]:65451 "EHLO ebb06.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276Ab3JOHzs (ORCPT ); Tue, 15 Oct 2013 03:55:48 -0400 X-AuditID: 83cfa826-b7f628e000004b87-cf-525cf5024985 Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb06.tieto.com (SMTP Mailer) with SMTP id 64.95.19335.205FC525; Tue, 15 Oct 2013 10:55:46 +0300 (EEST) Received: from uw000975.eu.tieto.com (10.28.19.100) by inbound.tieto.com (131.207.136.49) with Microsoft SMTP Server id 8.3.298.1; Tue, 15 Oct 2013 10:55:45 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH 2/2] ath10k: return better errno for unsupported pdev params Date: Tue, 15 Oct 2013 09:55:32 +0200 Message-ID: <1381823732-10128-2-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1381823732-10128-1-git-send-email-bartosz.markowski@tieto.com> References: <1381823732-10128-1-git-send-email-bartosz.markowski@tieto.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJIsWRmVeSWpSXmKPExsXSfL5DS5fpa0yQQc9ceYtHl44xWzyZ/J3F 4s2KO+wOzB6fZ95l89i8pN7j8ya5AOYoLpuU1JzMstQifbsEroyPx+oLGtkq5qw6xdLA2MHa xcjJISFgInHhz0E2CFtM4sK99UA2F4eQwCpGib8PtrBAOMsYJY53d4FVsQmYStzfsAKsW0RA QeLXpI9gcWaBcIlXW3+xgNjCAj4S75fuBIuzCKhKLHy2lwnE5hXwlpj6/woTxDZ5iaf3+8Bq OIHqp/WvZgSxhYBqvlz5ygJRLyhxcuYTFoj5EhIHX7xghqjRkJiz8yXLBEaBWUjKZiEpW8DI tIqRPzUpycBMryQztSRfLzk/dxMjOARXqO1gfPZA6hCjAAejEg8vg2hMkBBrYllxZe4hRkkO JiVR3rufgUJ8SfkplRmJxRnxRaU5qcWHGCU4mJVEeL/fB8rxpiRWVqUW5cOkpDlYlMR57z6N DhISSE8sSc1OTS1ILYLJynBwKEnwGoIMFSxKTU+tSMvMKUFIM3FwggznARreBFLDW1yQmFuc mQ6RP8WoKCXOOxMkIQCSyCjNg+uFpYhXjOJArwjz9oJU8QDTC1z3K6DBTECDv90GG1ySiJCS amCcbXg4wZq77rvnuzavJuZ5tT5cL/7mn1xmetxn4bI13X/3tp5b+7VXbcWi338Urtrp3Dgm eEfdzuNZUsBSRaP/m7dzHf3U+8TmqNBzZytTlVN7flV9nfxZ/F6PlLDPxWU6y88K6Rds0bni /Lko7dRFsZLTh88tlt32wGH6uXiL2NdOtgacOanNSizFGYmGWsxFxYkAlsfea+wCAAA= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Return -EOPNOTSUPP if given parameter is not supported by firmware. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index ea2669b..b28bd2d3 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2119,7 +2119,7 @@ int ath10k_wmi_pdev_set_param(struct ath10k *ar, u32 id, u32 value) if (id == WMI_PDEV_PARAM_UNSUPPORTED) { ath10k_warn("pdev param %d not supported by firmware\n", id); - return -EINVAL; + return -EOPNOTSUPP; } skb = ath10k_wmi_alloc_skb(sizeof(*cmd));