From patchwork Tue May 24 21:05:07 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: 9134275 X-Patchwork-Delegate: kvalo@adurom.com 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 AAFB5607D3 for ; Tue, 24 May 2016 21:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F1B528220 for ; Tue, 24 May 2016 21:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9405C2828D; Tue, 24 May 2016 21:05:40 +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 52FC528220 for ; Tue, 24 May 2016 21:05:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755058AbcEXVFU (ORCPT ); Tue, 24 May 2016 17:05:20 -0400 Received: from mail-lb0-f196.google.com ([209.85.217.196]:36028 "EHLO mail-lb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753369AbcEXVFT (ORCPT ); Tue, 24 May 2016 17:05:19 -0400 Received: by mail-lb0-f196.google.com with SMTP id r5so1665885lbj.3; Tue, 24 May 2016 14:05:17 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=nXa/i/+5UMlxkUo9IHbMhMCCb4w/Xy76n0BsJqf9K9o=; b=LAxoLxhFEVtIvUu3X31fLg01vEgmqITACPUTODg7egfNJIGfZyj/KviGy4XoTEvErm OdM4ncQFJwYkT3JRc4t8b27tcRuELK7TqeXbzx+CF10dGAyoXeRV+C5jopFnwAmufBec sFia69124BykCiiPK5zIs2Bxh2pkJMjEtuxmM2uWiimK+ISGJ+6AGZuQKn0glUJBKrut 5rJEaSfdM2RwSn6BQeGkjMaSypKFVmr6cgT0Uh5fpVOHJaHgaWp1oxEtPFJBPQ9IcTEb uklavkjXWb5YJvkqAsTHZc22+NSJrr7+PBMGVn4yhQLEgDiGUJZe3cgZ0KoITa/LrvcU chYQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=nXa/i/+5UMlxkUo9IHbMhMCCb4w/Xy76n0BsJqf9K9o=; b=Op9wbBEjDxWDKsupCMJYxpD2BWU+zIEHPDpFjsoIiTxSqqNXM6tZO6MIXvP1tmC19h KfeYsBjlaYmixW1g9mgenbD8PdsiGAqAV86pVq4ghADAcch0k56VzpWtd/wJbfatMbRB iKsgts1EbFMZARDXJ65+k1DmKFKDNhIUSsqSfVSS4Gk6ANiBpqOiuzWTTisBEgh0JptK iHHfyRoHdtYbMdOzoUNUmzh19pSGZwFsZNAsHdHLyV8PBMpuIZOlrzsFyID9SxwpJLJV eR94+1W6wkHMDDfFqv/HLGFK2IvAZqAi19GW+IIqBlZpS+iPXl78tf+ckMrCN8D4grrv xjag== X-Gm-Message-State: ALyK8tIAl8djKbDk8ATNoKaLV2mhsYNY4HdO3nVLxI266+hK2CddpK9b9p+2dkdFvVuuzQ== X-Received: by 10.112.12.101 with SMTP id x5mr60639lbb.37.1464123916848; Tue, 24 May 2016 14:05:16 -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 aa3sm809880lbc.20.2016.05.24.14.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 May 2016 14:05:16 -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 V2] brcmfmac: print error if p2p_ifadd firmware command fails Date: Tue, 24 May 2016 23:05:07 +0200 Message-Id: <1464123910-8281-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1464123728-7555-1-git-send-email-zajec5@gmail.com> References: <1464123728-7555-1-git-send-email-zajec5@gmail.com> 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 --- V2: s/in/if/ in commit message --- 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; }