Return-path: Received: from smtprelay0162.hostedemail.com ([216.40.44.162]:56833 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932871AbdELPnK (ORCPT ); Fri, 12 May 2017 11:43:10 -0400 Message-ID: <1494603783.2028.21.camel@perches.com> (sfid-20170512_174434_594037_0595CD27) Subject: Re: [v6] qtnfmac: introduce new FullMAC driver for Quantenna chipsets From: Joe Perches To: Kalle Valo , Igor Mitsyanko Cc: "linux-wireless@vger.kernel.org" , "johannes@sipsolutions.net" , Dmitrii Lebed , Sergei Maksimenko , Sergey Matyukevich , Bindu Therthala , "hwang@quantenna.com" , Kamlesh Rath , Avinash Patil Date: Fri, 12 May 2017 08:43:03 -0700 In-Reply-To: <87shkap0e5.fsf@kamboji.qca.qualcomm.com> References: <20170511215101.15356-1-igor.mitsyanko.os@quantenna.com> <20170512151854.6F16A60953@smtp.codeaurora.org> <87shkap0e5.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, 2017-05-12 at 15:20 +0000, Kalle Valo wrote: > Kalle Valo writes: > Here's the diff between v5 and v6: trivia: > diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c [] > @@ -93,9 +94,11 @@ qtnf_change_virtual_intf(struct wiphy *wiphy, > > qtnf_scan_done(vif->mac, true); > > - if (qtnf_cmd_send_change_intf_type(vif, type, mac_addr)) { > - pr_err("failed to change interface type\n"); > - return -EFAULT; > + ret = qtnf_cmd_send_change_intf_type(vif, type, mac_addr); > + if (ret) { > + pr_err("VIF%u.%u: failed to change VIF type: %d\n", > + vif->mac->macid, vif->vifid, ret); It might make sense to add vif_ macros or functions to make sure the vif->mac->macid, vif->vifid are emitted consistently and simplify the calls For instance: vif_err(vif, "failed to change VIF type %d\n", ret); etc... Not necessarily in this patch, maybe in a future one.