From patchwork Thu Sep 26 15:47:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2949311 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8F2DD9F289 for ; Thu, 26 Sep 2013 15:47:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A8CE20320 for ; Thu, 26 Sep 2013 15:47:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A96B2025B for ; Thu, 26 Sep 2013 15:47:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753213Ab3IZPrh (ORCPT ); Thu, 26 Sep 2013 11:47:37 -0400 Received: from ebb05.tieto.com ([131.207.168.36]:50992 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549Ab3IZPrf (ORCPT ); Thu, 26 Sep 2013 11:47:35 -0400 X-AuditID: 83cfa824-b7f348e000004c45-32-52445713863e Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb05.tieto.com (SMTP Mailer) with SMTP id 8B.EE.19525.31754425; Thu, 26 Sep 2013 18:47:31 +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; Thu, 26 Sep 2013 18:47:31 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH v3 03/13] ath10k: warn if give WMI command is not supported Date: Thu, 26 Sep 2013 17:47:07 +0200 Message-ID: <1380210437-4391-4-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1380210437-4391-1-git-send-email-bartosz.markowski@tieto.com> References: <1380210437-4391-1-git-send-email-bartosz.markowski@tieto.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBIsWRmVeSWpSXmKPExsXSfL5DS1c43CXI4NNfGYtHl44xWzyZ/J3F 4s2KO+wOzB6fZ95l89i8pN7j8ya5AOYoLpuU1JzMstQifbsEroyH3zQL/rNVbG79y9jA+Ji1 i5GTQ0LARGLDrfNMELaYxIV769m6GLk4hARWMUpsf/GTGcJZxijR3vANrIpNwFTi/oYVYN0i AgoSvyZ9ZAOxmQXCJV5t/cUCYgsLeEvM3b2SEcRmEVCVmPl+DjuIzSvgJdH07jkzxDZ5iaf3 +8B6OYHq33SeAYpzAC3zkujo9YQoF5Q4OfMJC8R4CYmDL16AtQoJaEjM2fmSZQKjwCwkZbOQ lC1gZFrFyJ+alGRgqleSmVqSr5ecn7uJERyAK1R2MJ59IHWIUYCDUYmHd+c7pyAh1sSy4src Q4ySHExKorw7Q12ChPiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwvgwAyvGmJFZWpRblw6SkOViU xHk3djgGCQmkJ5akZqemFqQWwWRlODiUJHg7QIYKFqWmp1akZeaUIKSZODhBhvMADZ8HUsNb XJCYW5yZDpE/xagoJc67CCQhAJLIKM2D64UliFeM4kCvCPM+AKniASYXuO5XQIOZgAY7dDiB DC5JREhJNTDyyKZ6/d7Rpzb5ycffh7bY6Ri2z2j6v0A89OJOni/fDn+xztBU8lDX9OwP/MDz XKhgdm74iR/9U7U6lt2xzmqx6/7kXay9KP3YZXsvlk/XZu6ONOXStor4nz9NVDhj9oaDxfyN ZxteTVn3NCWhwIOz4jRPLafHT5ZzOZ4qFpKWL5X1JwZt1VJiKc5INNRiLipOBADL6ini6wIA AA== Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-9.3 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 This will show and make it easier to track the API differences in the new AP firmware. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/wmi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index cfb2082..8386050 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -390,6 +390,12 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, { int ret = -EINVAL; + if (cmd_id == WMI_CMD_UNDEFINED) { + ath10k_warn("wmi command %d is not supported by firmware\n", + cmd_id); + return ret; + } + wait_event_timeout(ar->wmi.tx_credits_wq, ({ /* try to send pending beacons first. they take priority */ ath10k_wmi_tx_beacons_nowait(ar);