Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp839539rdg; Fri, 13 Oct 2023 02:45:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbWQAfIWcTON8cpGqLa5ui960RRrgWm8uhrfcc1FEN8yqvvfr3NdlahMmHAdiklVZCztfl X-Received: by 2002:a05:6871:610d:b0:1e9:bd5c:ae40 with SMTP id ra13-20020a056871610d00b001e9bd5cae40mr4534646oab.38.1697190358501; Fri, 13 Oct 2023 02:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697190358; cv=none; d=google.com; s=arc-20160816; b=MbHk3eyAxM5FTsrbEQ+CQwk2tc+zN7dUQzL3dXMPsk68giX4crcSixX/TRp8o+Mbz2 ZeVJ4yhZnm8em8O9/P+P0rnvWrhFvIbnSwTTMoFzYMn+ANFSYZbDWEWz6gt3X7Wl9wI4 3aNWn2WXxQdwyuoN9bm4zSJOSTHVpWHzFxiZaX3IIVrcMu8L6Ya89vubeebW9g8OML7i TANKl4oii7pOqLjBwFTrTBfESVTgc6vhR4yscDr7mv/Qir+A5CAv3yLULhVQXthckEwq cALBqdCcaWD4/P3j8zZS7zZsvCoPNnrcQiU6f4vEoHNA4R85vYpkdmkwmQjHao+wWM67 0rsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Dkchay1cYVKC616wRZ1azvnefXnxahZ5t9EhXHuu/Uo=; fh=cOckVxVjrM5jmf86/i5eTTw5wBLyeTzAmcCgKIUtB0I=; b=twCsgu29/lrZWx2nCdRmqFQdUltkVtaie80N6YevL+amqChSG9e9YrOOn9Naxm4ibN mQsPzpP0H3a1ufWrnUGtJv/5JoBwaOxnsa2s4sCSgHqrHnxByeFxkkoJjlXdHHkT7xTM rk5pWn7ebDQwbD/AEuDTs4QF8HJVpQsnqo11nm0UdiYe9GfDTCKu7hDpYXsEXgUX+tWK M0cdeDSY9XOzlzlRqs815AACIm8WHbMsM762dFh44FlUtyoIRWmirGBHxBo1dkgTYTdL SFwCfgGnXo2HCxY90eRdMdn9GEHkZ0wUL98vEfg/bX/KDmFiSRd72vmBPW0DEbTxQYmM OVbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DvBkjMTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o9-20020a656a49000000b005aa0e024d5esi1691989pgu.656.2023.10.13.02.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DvBkjMTq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D0D708087B5D; Fri, 13 Oct 2023 02:45:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbjJMJpK (ORCPT + 99 others); Fri, 13 Oct 2023 05:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjJMJpJ (ORCPT ); Fri, 13 Oct 2023 05:45:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A1B395 for ; Fri, 13 Oct 2023 02:45:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E3A5C433C7; Fri, 13 Oct 2023 09:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697190307; bh=Kq+efvoffOt5jS47RsqUV97caihjUuG3Sct/ZpxjosI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DvBkjMTqu+0f9BSQmHmmpZeFzeZ829jM2YqwDO6mpjFV5wUzUBfxWT9M2T/3lbKVO DzD0uvoO8NUQVc8ghd9v/W7ClKKhbTBgjWP0Sx873dh2VVmlwmWYvyXaoAX8to/4NK AkGfp5syn3N/TIepGZcaRDx8LmQF4QtYGMXZaQYZ4/nqIwrlOTHND17pCoc8R1BNfB 62Y03uCDLZBL1NQAv4/c2Xm1XTzAQ5iimtZ5IJ+y8/QVkiFPYQVrTI24/6HawIotQG vZei8Wr5wu38PNNDcQC6qPiLxkOYQ19mOm46o33562ZrKnRHMqOiNUG/oWvS1GXa2u p7I/X4Pg/wHIA== Date: Fri, 13 Oct 2023 11:45:03 +0200 From: Andi Shyti To: Calvince Otieno Cc: outreachy@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Luke Koch , Bagas Sanjaya , Simon Horman , linux-staging@lists.linux.dev Subject: Re: [PATCH] staging: wlan-ng: remove helper function prism2sta_inf_handover() Message-ID: <20231013094503.6xnohuoivlysmlpp@zenone.zhora.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:45:23 -0700 (PDT) Hi Calvince, ... > -/* > - * prism2sta_inf_handover > - * > - * Handles the receipt of a Handover info frame. Should only be present > - * in APs only. > - * > - * Arguments: > - * wlandev wlan device structure > - * inf ptr to info frame (contents in hfa384x order) > - * > - * Returns: > - * nothing > - * > - * Side effects: > - * > - * Call context: > - * interrupt > - */ > -static void prism2sta_inf_handover(struct wlandevice *wlandev, > - struct hfa384x_inf_frame *inf) > -{ > - pr_debug("received infoframe:HANDOVER (unhandled)\n"); > -} > - > /* > * prism2sta_inf_tallies > * > @@ -1724,7 +1697,7 @@ void prism2sta_ev_info(struct wlandevice *wlandev, > /* Dispatch */ > switch (inf->infotype) { > case HFA384x_IT_HANDOVERADDR: > - prism2sta_inf_handover(wlandev, inf); > + pr_debug("received infoframe:HANDOVER (unhandled)\n"); while I think the patch is correct, I believe you should take this opportunity to use a better printing function. I am not a network developer, but I believe network people would prefer netdev_dbg() at this point. The pr_*() family is one of the most generic printing method, useful for debug and few other situations. Other printing functions should be preferred because the provide more context. Andi