From patchwork Wed Sep 25 09:38:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2941091 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 B9236BFF05 for ; Wed, 25 Sep 2013 09:38:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4DB12057E for ; Wed, 25 Sep 2013 09:38:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2582D20583 for ; Wed, 25 Sep 2013 09:38:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754848Ab3IYJi3 (ORCPT ); Wed, 25 Sep 2013 05:38:29 -0400 Received: from ebb06.tieto.com ([131.207.168.38]:61761 "EHLO ebb06.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949Ab3IYJi1 (ORCPT ); Wed, 25 Sep 2013 05:38:27 -0400 X-AuditID: 83cfa826-b7f408e000003a47-13-5242af1107e0 Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb06.tieto.com (SMTP Mailer) with SMTP id CD.82.14919.11FA2425; Wed, 25 Sep 2013 12:38:25 +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; Wed, 25 Sep 2013 12:38:24 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH 03/13] ath10k: warn if give WMI command is not supported Date: Wed, 25 Sep 2013 11:38:01 +0200 Message-ID: <1380101891-18312-4-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1380101891-18312-1-git-send-email-bartosz.markowski@tieto.com> References: <1380101891-18312-1-git-send-email-bartosz.markowski@tieto.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsXSfL5DS1dwvVOQQc8sBYtHl44xWzyZ/J3F 4s2KO+wOzB6fZ95l89i8pN7j8ya5AOYoLpuU1JzMstQifbsEroyPs4+wF7xkq3j55DVzA+MN 1i5GTg4JAROJdy3bWSBsMYkL99azdTFycQgJrGKUeNizAMpZxihx+fopdpAqNgFTifsbVoB1 iwgoSPya9JENxGYWCJd4tfUX2CRhAQ+JH10HwOIsAqoS7x/1gMV5Bbwlnn1sZ4TYJi/x9H4f WA2ngI/E0X2vweYLAdU0Tb/OClEvKHFy5hMWiPkSEgdfvGCGqNGQmLPzJcsERoFZSMpmISlb wMi0ipE/NSnJwEyvJDO1JF8vOT93EyM4CFeo7WB89kDqEKMAB6MSD++LhY5BQqyJZcWVuYcY JTmYlER576x1ChLiS8pPqcxILM6ILyrNSS0+xCjBwawkwhu+GCjHm5JYWZValA+TkuZgURLn 3dABNEkgPbEkNTs1tSC1CCYrw8GhJMG7GmSoYFFqempFWmZOCUKaiYMTZDgP0PAPIDW8xQWJ ucWZ6RD5U4yKUuK8m0ASAiCJjNI8uF5YknjFKA70ijDvSZAqHmCCget+BTSYCWiwQwfY4JJE hJRUA6OmwBP5I/fOymg234/VKVrmorQ7NSw9ZreHsvXfzb1qxZ5X7W6YuK2R4/2hsXrNjfSQ teatPrVuk8I07+k8WKkVHePHbLL93szLV5LOSeUoB58NMAnP6gtz41y8WeBhhkXok0rmnyu7 suzspwf2v5p393y17IwKrTsRX5Wevtss5humHDO9WImlOCPRUIu5qDgRAOt8WmbtAgAA Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.9 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index dd490b4..ed137b8 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -399,6 +399,11 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, { int ret = -EINVAL; + if (cmd_id == WMI_CMD_UNDEFINED) { + ath10k_warn("command not supported by given firmware\n"); + 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);