From patchwork Thu Sep 26 09:29:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2947231 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 D4C46BFF05 for ; Thu, 26 Sep 2013 09:30:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F92F20333 for ; Thu, 26 Sep 2013 09:30:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CEB920336 for ; Thu, 26 Sep 2013 09:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756231Ab3IZJaJ (ORCPT ); Thu, 26 Sep 2013 05:30:09 -0400 Received: from ebb05.tieto.com ([131.207.168.36]:61615 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092Ab3IZJaC (ORCPT ); Thu, 26 Sep 2013 05:30:02 -0400 X-AuditID: 83cfa824-b7f348e000004c45-69-5243fe962402 Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb05.tieto.com (SMTP Mailer) with SMTP id BE.61.19525.69EF3425; Thu, 26 Sep 2013 12:29:59 +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 12:29:58 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH v2 03/13] ath10k: warn if give WMI command is not supported Date: Thu, 26 Sep 2013 11:29:42 +0200 Message-ID: <1380187792-25626-4-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1380187792-25626-1-git-send-email-bartosz.markowski@tieto.com> References: <1380187792-25626-1-git-send-email-bartosz.markowski@tieto.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsXSfL5DS3f6P+cgg4mfhSweXTrGbPFk8ncW izcr7rA7MHt8nnmXzWPzknqPz5vkApijuGxSUnMyy1KL9O0SuDJ+v3zDUvCSreLH1HaWBsYb rF2MnBwSAiYSR9ddYoGwxSQu3FvP1sXIxSEksIpR4sDes4wQzjJGie1XnoF1sAmYStzfsALM FhFQkPg16SMbiM0sEC7xausvsEnCAt4Spx6eZgKxWQRUJb5f38YMYvMCxf8/eg61TV7i6f0+ sF5OAR+J0/vPMILYQkA1Ez4eYIGoF5Q4OfMJC8R8CYmDL14wQ9RoSMzZ+ZJlAqPALCRls5CU LWBkWsXIn5qUZGCqV5KZWpKvl5yfu4kRHIQrVHYwnn0gdYhRgINRiYd35zunICHWxLLiytxD jJIcTEqivNp/nYOE+JLyUyozEosz4otKc1KLDzFKcDArifCu+wiU401JrKxKLcqHSUlzsCiJ 827scAwSEkhPLEnNTk0tSC2CycpwcChJ8Nb/AWoULEpNT61Iy8wpQUgzcXCCDOcBGi4Aspi3 uCAxtzgzHSJ/ilFRSpw3CqRZACSRUZoH1wtLEq8YxYFeEebtBWnnASYYuO5XQIOZgAY7dDiB DC5JREhJNTCyBE5fkDj1X9HFP2ePb01Zw3RfX6Bk7pHSK8aRiRekbN56xXHGWyXveci3Y4lG 7uSVDHY3n0TUtP0N/H/EiOXM35jJrQIOfY+lvFUZ3uge/Be1nynt1OXseSwfKg92Mksxz6iw CjjiVJAboTllgsW/v9KOnb37eN2+qcapflh1QWB7/fryUB4lluKMREMt5qLiRACyW1oA7QIA 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 | 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 cfb2082..fe55360 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -390,6 +390,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);