From patchwork Tue May 24 21:01:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9134271 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 91DFE607D3 for ; Tue, 24 May 2016 21:03:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A4628220 for ; Tue, 24 May 2016 21:03:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77B402825C; Tue, 24 May 2016 21:03:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F10828220 for ; Tue, 24 May 2016 21:03:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755430AbcEXVCs (ORCPT ); Tue, 24 May 2016 17:02:48 -0400 Received: from mail-lb0-f196.google.com ([209.85.217.196]:32896 "EHLO mail-lb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752577AbcEXVCr (ORCPT ); Tue, 24 May 2016 17:02:47 -0400 Received: by mail-lb0-f196.google.com with SMTP id u2so1664499lbo.0; Tue, 24 May 2016 14:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fbEw7e6TT8r9jL3RAyO069ZD8J8mg7O0IlxYBM0hmkw=; b=fu1qXPzN882K9zOQAUqCoSRlo1Z3JrLQHT+ePpjfIii9D4Swn3c+4zr31zRKk21gyy Zjp5m71Kz+ie9ljnhBMMrZEcwdIGda0qNGHyJKB0J972nc/hHpETUt2KeLSmnVPUZfG4 ntE8XDkWQ+X3oOKcIqzLonTEXHEjbByhA0sedurNAfUxiSRwKi3T9PwOkWPqKAcHTeC0 vHklYzCQIJHIpsFUa9ynsGf21nrNRE4RLruKJKy45fukTy4fqaMDa9CQgR2iOPD6gyzK C9UM6ZIfkJb0dxTMZNYuefunZh3LQLtT67kJvHlpL3b6phe5uRvfW3WrWtSJqvo7AjcI zbsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fbEw7e6TT8r9jL3RAyO069ZD8J8mg7O0IlxYBM0hmkw=; b=KGAzJVNPF7ETUCk4x8uvX3wAt686+CrTqL+taP20hSwe3UyJNFI34+mO8OZxL2SFEH 6wSJ1SVgWj0/KFWyVCTcez7tZho0U3+vcoK+f5K5oeKV0EvIYtBOE5UhKWWS5Rqgwx58 DQmC2uwHi4Vi07020PTBiNC7kcET4UEN0wyTKWC0EnlzV84f2sLIHg63ICPjwid2jICv urfabZB7ICw2LqH7OBSR36kKbQ/yTQ4Jp/fsjSEck5t4LKAuVglfOZDh2uiGQj4WZPQu vRvqEJQwtL0JV8HnVRrujWPIZ9sClR0LU7wRAO+xOZm+u+7fR2xOCo2QEkA8YM05aCDE eGiw== X-Gm-Message-State: ALyK8tIQxLeqdkxz4+KyJCloC+JxCDCaJBW8/UtFv7uThjSBM0OhJDDCtsUrAYI6X9D2Dg== X-Received: by 10.112.136.194 with SMTP id qc2mr74207lbb.60.1464123765113; Tue, 24 May 2016 14:02:45 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id f6sm24405lbt.31.2016.05.24.14.02.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2016 14:02:44 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Brett Rudley , Arend van Spriel , "Franky (Zhenhui) Lin" , Hante Meuleman , Pieter-Paul Giesberts , linux-wireless@vger.kernel.org (open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER), brcm80211-dev-list@broadcom.com (open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER), netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] brcmfmac: print error in p2p_ifadd firmware command fails Date: Tue, 24 May 2016 23:01:49 +0200 Message-Id: <1464123728-7555-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is helpful for debugging, without this all I was getting from "iw" command on device with BCM43602 was: > command failed: Too many open files in system (-23) Signed-off-by: Rafał Miłecki --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c index 1652a48..f7b7e29 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c @@ -2031,7 +2031,7 @@ static int brcmf_p2p_request_p2p_if(struct brcmf_p2p_info *p2p, err = brcmf_fil_iovar_data_set(ifp, "p2p_ifadd", &if_request, sizeof(if_request)); if (err) - return err; + brcmf_err("p2p_ifadd failed %d\n", err); return err; }