Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3617304imm; Thu, 17 May 2018 11:38:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrn8O2i7aLAGnI0E0/oNW/z8ImDcmyOrN6deVLBNSVqbtGpKXm5RAxpdWEH4xWENthc7TNv X-Received: by 2002:a63:380e:: with SMTP id f14-v6mr4971523pga.242.1526582284910; Thu, 17 May 2018 11:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526582284; cv=none; d=google.com; s=arc-20160816; b=EH+8pOcqQYxFXEQ6dd44A6ylB7sdjxJYIkV44xcKg3wPFO49qegS052LtZevV7W+2E GyZGyAiH5GPlqwJXFhDMyILE8OWVHylEzegjnew+WVC3ZfFtRSgVrWFAs9VPMwPO/nwO TzawR3XO1zlNJNwRifvZfm2GXGuH5/o5qFEWINEkyZoiA9BKe1yZUREOF5Pw62f+bMcq Vstzdwsld+i59yZVRgiJcz+k8W2+lnq/k4nYx0EDSlpDKUfQrdRGOSLtfpC9vzcUE9Kk KcTcnQ1eFFueTomUrxQ9PMRm1YfJXG/Ts4Q4MekJ5vFJAc96WlQqJc2NynAISM/fDOW5 Zn0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=35WCbhMwnkGis24YTLXNiOln2/RukgG3XrjScfRA4oc=; b=xxrjSYEXa+kzPtQx/cs/bJKz9H1xfQgFXuriY6vJIfHD8YaGEaOUvUzHOz9537E78z qObJJNlEL0mFkpQL1m9z7q6yRUs+IA10/ytLCIy4xN0zQYLnmcWBh4e/qZJ1TkkBHFvt TlpWvSqxgIa1vQo6eyKF2Xz7a0lw8aIl0CUIQ7skO/TDAuJ0PGO35mcBlLCxMxsdZwyE zHBpfQ3c8ZYMpUX5Y+hccVWRtgRcWbxyj3odD5GeMrvo6285KWU8/odV6Pyw3xXbAfsL 4RGr02DrkMDJUhJob9VYhTooM1LEVuUgESrUdydky8UC+pqrojsUpqVpLj+pn8lMDv1N DDDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bDm08GlT; dkim=pass header.i=@codeaurora.org header.s=default header.b=lA/CFFOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i72-v6si4439995pgd.211.2018.05.17.11.37.50; Thu, 17 May 2018 11:38:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bDm08GlT; dkim=pass header.i=@codeaurora.org header.s=default header.b=lA/CFFOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbeEQShi (ORCPT + 99 others); Thu, 17 May 2018 14:37:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44350 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbeEQShg (ORCPT ); Thu, 17 May 2018 14:37:36 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3BD7160C67; Thu, 17 May 2018 18:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526582256; bh=I+p2ICIr77F/0qC6Mf+29RZfAVdyX4GP1JBMxAV99ws=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bDm08GlTVKN9+o4DjQbePlWQ8jmlS425sjT1usrJ1loR0Vj16tad46Nt/p0dH3WAU CUm0+raOzGVBCyDS3PvWwUvFFzifJlDZDIYLSZ/8y7lEiqPP7djWwi78VGCD+eXOW5 Jq/Q9/2xhAMNFNZrwaFr2SpRogxmAmweNbhZy9OA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id A29F0609D1; Thu, 17 May 2018 18:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526582255; bh=I+p2ICIr77F/0qC6Mf+29RZfAVdyX4GP1JBMxAV99ws=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lA/CFFOBam9y/rl2dLu1ROj0dYtRDI/8vOrGRylS985DEIg1jtj9PGg3TzEmIhDQT wqLFKmSsrm/Yf7SE5wEzmvmFRoC4VktbaO0JGQOChHH5s4HO88F6hdcIsD3qA437CA uRGQQ4rytn0AQQfwc0/JlaRRwcMFndK3EsUUMhwM= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 17 May 2018 11:37:35 -0700 From: Jeff Johnson To: Ramon Fried Cc: kvalo@codeaurora.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Eyal Ilsar , linux-wireless-owner@vger.kernel.org Subject: Re: [PATCH] wcn36xx: Add support for Factory Test Mode (FTM) In-Reply-To: <20180517113250.16517-1-ramon.fried@linaro.org> References: <20180517113250.16517-1-ramon.fried@linaro.org> Message-ID: <58c8d2d16995e80f5527370e224045e2@codeaurora.org> X-Sender: jjohnson@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-17 04:32, Ramon Fried wrote: > From: Eyal Ilsar ... > +int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn, > + struct ieee80211_vif *vif, void *ptt_msg, size_t len, > + void **ptt_rsp_msg) > +{ > + struct wcn36xx_hal_process_ptt_msg_req_msg *p_msg_body; > + int ret = 0; > + > + mutex_lock(&wcn->hal_mutex); > + p_msg_body = kmalloc( > + sizeof(struct wcn36xx_hal_process_ptt_msg_req_msg) + len, > + GFP_ATOMIC); NULL check required? > + INIT_HAL_PTT_MSG(p_msg_body, len); > +