Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3114456pxk; Mon, 7 Sep 2020 03:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg0nrAQyOAuFpq7V3Vf5Y50J5C5FLenaAVE4WQsh67IXItG24K0RCLl1K/ibw8R47sx0Ys X-Received: by 2002:a50:ce09:: with SMTP id y9mr20527246edi.91.1599475460780; Mon, 07 Sep 2020 03:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599475460; cv=none; d=google.com; s=arc-20160816; b=SdzO6L0HUTE3qdDjNiykTUJLI2F5ecIE0I42AnTPcpnI7WaLMMtIPpAjAyhtZXUGLE YMMWE3ua26JOrEmcb0eYo5HkdWjUv8y5t23GXE2QIlB1szYzjlCku0GR8xhXpDu6rk+v LbSbBtpUbU76UTYizGzSugVUSt+eutkc5B4B/6BK41N5d0e36WM1KjuZOug//p0CCMZH tOPQu4bOz3Opz9+zhQpgsw+iZ8xQSrxLr4/lYC0UwU7G7e8S4NZuAJegdEW3/NPYvRGi uwTD8FhOvoj8ZOpKqwG0LbNxybyYBAcBmD3mpMBqNyZV1vPFJU0uBrYXOWH4ZcOa4svG Tl5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=8lKT6tyFx1lj/SQXnqLxaxwUj90PiYhm0OLq99CDOgM=; b=I1CrnlNtxg3b8iTuutEckbTP/IFIhaZt3J1rfxExysr3e0XE4kZE5ADtHF9LtEBeXy oNFVqgOQJSUH/+4jVPL57/tVWIJqkjjNfJHtAkeHJQNaGQlQPfitb+CifxYhTZjbWNVv 1PfUpQnw8m1s9pp0wi9AcJsvl+fMLwDWZlp9uRtnYHq7ruI180O78HAGreALkELNE8rk XUINhrRyo1C5GqzGBqn5mg/SyeKpRz0Pod1SJLG0VjSrIa+Zb9wGyQ5EJen6rTMV2zQr NP6Y1x2LwR8Y7TlKtcN4ZHyTqfFKVk471Gt7+ZmbF9UkdfVcfLvzluRytymPH/WqChOm gpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=AGm4S86+; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=RhdqFmT6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si9604472edw.144.2020.09.07.03.43.55; Mon, 07 Sep 2020 03:44:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=AGm4S86+; dkim=pass header.i=@amazonses.com header.s=hsbnp7p3ensaochzwyq5wwmceodymuwv header.b=RhdqFmT6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728536AbgIGKnm (ORCPT + 99 others); Mon, 7 Sep 2020 06:43:42 -0400 Received: from a27-187.smtp-out.us-west-2.amazonses.com ([54.240.27.187]:35908 "EHLO a27-187.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbgIGKnl (ORCPT ); Mon, 7 Sep 2020 06:43:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1599475418; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=BmjUyQoq0rw+Yy2ywElfw+Z4XNqZZ009J9ibudq+jxI=; b=AGm4S86+KmyZu7HQvX1D5FFlvnsGz6A6HFmqvhkJYWZdyvpxFuZWxjSbt202N6uR Mr0qJQVZZOGcbsIzULwgKtFraZVJmZEqoVgDP0Ay7gPrXBSm0xC9a7nQkwwYU4vmK72 Rc1jV1Y/XkwtU1NFfGfLHHS433rRt8xpeDIOYrvg= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=hsbnp7p3ensaochzwyq5wwmceodymuwv; d=amazonses.com; t=1599475418; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=BmjUyQoq0rw+Yy2ywElfw+Z4XNqZZ009J9ibudq+jxI=; b=RhdqFmT6gTAxcsgvaMzWhtqZdCK5s7LzyQ4cFT8MnwXesCJ44Et+NVT5TN5HCi/p oo4COz1Rr3nunFBVpmuOkvbeAb+ZRFr5oi2iAYuoTJHM8+M2/+WASJJrY85Ow8HA3Ov JcCdaQs6UGpGpjXg59qMWtFLTEGyphv80AAgVkHk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 53E40C43465 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Venkateswara Naralasetty Cc: ath11k@lists.infradead.org, Manikanta Pubbisetty , linux-wireless@vger.kernel.org Subject: Re: [PATCH] ath11k: add raw mode and software crypto support References: <1592281555-31556-1-git-send-email-vnaralas@codeaurora.org> Date: Mon, 7 Sep 2020 10:43:38 +0000 In-Reply-To: <1592281555-31556-1-git-send-email-vnaralas@codeaurora.org> (Venkateswara Naralasetty's message of "Tue, 16 Jun 2020 09:55:55 +0530") Message-ID: <01010174682a05d3-dfa28960-8a01-4b5c-996c-7af937de2db9-000000@us-west-2.amazonses.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SES-Outgoing: 2020.09.07-54.240.27.187 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Venkateswara Naralasetty writes: > From: Manikanta Pubbisetty > > Adding raw mode tx/rx support; also, adding support > for software crypto which depends on raw mode. > > To enable raw mode tx/rx: > insmod ath11k.ko frame_mode=0 > > To enable software crypto: > insmod ath11k.ko cryptmode=1 > > These modes could be helpful in debugging crypto related issues. > > Tested-on: IPQ8074 WLAN.HK.2.1.0.1-01228-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Manikanta Pubbisetty > Signed-off-by: Venkateswara Naralasetty Adds new warnings: drivers/net/wireless/ath/ath11k/core.c:23:14: warning: symbol 'cryptmode' was not declared. Should it be static? drivers/net/wireless/ath/ath11k/mac.c:46:14: warning: symbol 'ath11k_frame_mode' was not declared. Should it be static? > --- a/drivers/net/wireless/ath/ath11k/core.c > +++ b/drivers/net/wireless/ath/ath11k/core.c > @@ -13,10 +13,16 @@ > #include "debug.h" > #include "hif.h" > > +extern unsigned int ath11k_frame_mode; Please move this to core.h > unsigned int ath11k_debug_mask; > module_param_named(debug_mask, ath11k_debug_mask, uint, 0644); > MODULE_PARM_DESC(debug_mask, "Debugging mask"); > > +unsigned int cryptmode; static unsigned int ath11k_crypto_mode; > +module_param_named(cryptmode, cryptmode, uint, 0644); module_param_named(crypto_mode, ath11k_crypto_mode, uint, 0644); [...] > --- a/drivers/net/wireless/ath/ath11k/mac.c > +++ b/drivers/net/wireless/ath/ath11k/mac.c > @@ -34,7 +34,7 @@ > } > > /* frame mode values are mapped as per enum ath11k_hw_txrx_mode */ > -static unsigned int ath11k_frame_mode = ATH11K_HW_TXRX_NATIVE_WIFI; > +unsigned int ath11k_frame_mode = ATH11K_HW_TXRX_NATIVE_WIFI; > module_param_named(frame_mode, ath11k_frame_mode, uint, 0644); > MODULE_PARM_DESC(frame_mode, > "Datapath frame mode (0: raw, 1: native wifi (default), 2: ethernet)" Better to move this to core.c so that all module parameters are in one place. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches