From patchwork Mon Jun 17 13:04:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 10999233 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-2.web.codeaurora.org (Postfix) with ESMTP id F00B214B6 for ; Mon, 17 Jun 2019 13:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E03072866C for ; Mon, 17 Jun 2019 13:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4AE72890C; Mon, 17 Jun 2019 13:04:33 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8BCC228904 for ; Mon, 17 Jun 2019 13:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MunIo1vZmH6m4v2/31X/2s1pj0jCf9pjrMF2UGBuIrw=; b=WMqYEfFQRZ0zp9 QHa5fQ7pPPJ4yNsbNT9EKcIUi4KM7YWQj9RU72ybnvRxTQYQlYWcNM9X7ngtuxpE7d9RGTHP9uz9F i6VFHcqz5wSwvTrE97HdjF7vFchrvyhetIJfNP41O3AUwyS/pVwQ/+eXY+7nGUGChFKAhtS4lkPUu 2rbtmuVxhCYGv0/S3XoJoV0TKPEPb8ICa+Uc3r40Xx2VhKR9vWhC7MHxEEiRBbWeSqxPeoBg2Nvzh 2lV5hWVxbFMrzeNy1Bs92eIQ8VlCR4ioS0O3LvrIu8qmOg88ag4T7y+dxNGXNZsUQwny3ZjrPBIS0 3fB6Aw26Q+uztcTinMRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcrJI-0003PE-QQ; Mon, 17 Jun 2019 13:04:32 +0000 Received: from nbd.name ([2a01:4f8:221:3d45::2]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcrJG-0003Oe-OX for ath11k@lists.infradead.org; Mon, 17 Jun 2019 13:04:32 +0000 Received: from p5dcfbbb8.dip0.t-ipconnect.de ([93.207.187.184] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1hcrJE-00086L-QV; Mon, 17 Jun 2019 15:04:28 +0200 From: John Crispin To: Kalle Valo Subject: [PATCH] mac80211: fix ieee80211_he_oper_size() comment Date: Mon, 17 Jun 2019 15:04:25 +0200 Message-Id: <20190617130425.14014-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_060430_949923_24A8C31F X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ath11k@lists.infradead.org, John Crispin Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Johannes mentioned that the comment should not reference mac80211 as other subsystems might call the helper. Signed-off-by: John Crispin --- include/linux/ieee80211.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index e7d23a2cacd8..9b62c3744ed5 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2062,8 +2062,8 @@ ieee80211_he_ppe_size(u8 ppe_thres_hdr, const u8 *phy_cap_info) * ieee80211_he_oper_size - calculate 802.11ax HE Operations IE size * @he_oper_ie: byte data of the He Operations IE, stating from the the byte * after the ext ID byte. It is assumed that he_oper_ie has at least - * sizeof(struct ieee80211_he_operation) bytes, checked already in - * ieee802_11_parse_elems_crc() + * sizeof(struct ieee80211_he_operation) bytes, the caller must have + * validated this. * @return the actual size of the IE data (not including header), or 0 on error */ static inline u8