Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2023481rdb; Mon, 9 Oct 2023 10:01:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+SuXGV5TKp0F8TcEweJ3ALWASjd7jgF3a60hhh514GdjuXY/9r+biRIf9NRpfVHp1ro5o X-Received: by 2002:a05:6358:290f:b0:143:9b23:e850 with SMTP id y15-20020a056358290f00b001439b23e850mr19293832rwb.24.1696870892362; Mon, 09 Oct 2023 10:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696870892; cv=none; d=google.com; s=arc-20160816; b=oYY2uV6zHEjz2CyOG6tZO+hoN/Azgp/5dT/G1pduw5ORX3tUT1qtuB4kdNnMyrYZfo RlJEh4tH5C5GPdPYqNGDyhYj8AqSXdgCuuSRdJdGupzo/0do63rq9YijtW3EJ3GW1ugB LMBYMJ2UlfbCVUYmTvKR4ipH0iFJwfO6cu30mJA2iyfP2zBhA8KVJvfrHahQd33M9kEM 03SQW7nhlPZNuOVtpTbvHmFnRJMRFAtkCB3dQPLOois9twmd8Y+k7nzxRGEM6Cb2ulBh Z5wlP6esTMKvhcDa7+UcE9dlkUsiVUjQmRdODIeZVeR0xuAvbmOR5OCDhWC2EvYzkvNP ATfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=l5mTGmtBPRpK6+2wClXgYxaJBveoYB0vUj8dhgoQRBc=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=WMeKbiXP7qD6j37zrc/QdSUfX1Dvq9Vmdf4T7PG+QP0j1G2vuBRL/BlPYfpg8zH/wn irkiR4uVixZ/5eV4r6X2LEpzxmlEBCqJktvKY6WG4OxetKLvxM0Qjf9BdXDdLpTGB5qL c5yZgFul+WlI3NzJdO66QWc7iPpZEIBO4aYMx12yNyXKraeg98xOlRo+Tt58kRcMXNoV m+LCJ/FJhBlDzVEP2W8nwoDSqTtsfaRjcZRiZnUR2ZcCrZsRYYOC6uDV9buy5WFgS95K 8WyZ27tymYY5lVrZEC/nl5yuVkusYipP5oWpi6dSA7LPfoMyeA6UszIbtV03taCbd3NE X1Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJDk8pOG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f24-20020a656298000000b00578aa7b0e03si9787791pgv.695.2023.10.09.10.01.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJDk8pOG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-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 lipwig.vger.email (Postfix) with ESMTP id AE3BB804039E; Mon, 9 Oct 2023 10:01:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377353AbjJIRB0 (ORCPT + 52 others); Mon, 9 Oct 2023 13:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376840AbjJIRBZ (ORCPT ); Mon, 9 Oct 2023 13:01:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087D49D for ; Mon, 9 Oct 2023 10:01:24 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B7B1C433C8 for ; Mon, 9 Oct 2023 17:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696870883; bh=ts8roYjwOsV4Tr/ONn5bpXTgWkLn16rXzzAYMhWAtPI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PJDk8pOGHHKSXPgSJ5l0c+x2bc/zYdB/F/DA2H0ss+PfXekBNTaNiS4ljCMvsVNxf TjmUfAtDIKtWEn5b5aqT35jLwOjlnuoaLajESYka+UBTHb6wRWgFRT29kOm23ADaIU VJriWUZkwfgmLFAPBHQgI4WR5eQVAzGzfTuQVn37594iy2zj51ccrfG+vZ7y48OESF DHTtdrltr7IahLXCKIm3477oGDKqd0cxMh6c+z5P7VCsHv4GfD3awYQo/0F+NTrtwF n4CtkhBmxmxbfxd9BoPeh6hFaiTXUwg5u52Wug8Ayjm7TCTngdl2Dy39Hf9ezNbv+f gFvierSEPvnMw== From: Kalle Valo To: linux-wireless@vger.kernel.org Subject: [PATCH RFC 2/2] wifi: mac80211: rename cfg80211_rx_assoc_resp() to cfg80211_rx_assoc_response() Date: Mon, 9 Oct 2023 20:01:20 +0300 Message-Id: <20231009170120.2522470-2-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231009170120.2522470-1-kvalo@kernel.org> References: <20231009170120.2522470-1-kvalo@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 10:01:28 -0700 (PDT) X-Spam-Level: ** From: Kalle Valo make htmldocs warns: Documentation/driver-api/80211/cfg80211:48: ./include/net/cfg80211.h:7290: WARNING: Duplicate C declaration, also defined at cfg80211:7251. Declaration is '.. c:function:: void cfg80211_rx_assoc_resp (struct net_device *dev, struct cfg80211_rx_assoc_resp *data)'. This is because there's a function named cfg80211_rx_assoc_resp() and a struct named cfg80211_rx_assoc_resp, see previous patch for more info. To workaround this rename the function to cfg80211_rx_assoc_response(). The function name is a bit longer now but still IMHO not too long. Compile tested only. Signed-off-by: Kalle Valo --- Documentation/driver-api/80211/cfg80211.rst | 2 +- include/net/cfg80211.h | 8 ++++---- net/mac80211/mlme.c | 2 +- net/wireless/mlme.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/driver-api/80211/cfg80211.rst b/Documentation/driver-api/80211/cfg80211.rst index 836f609c3f75..66900f3cd102 100644 --- a/Documentation/driver-api/80211/cfg80211.rst +++ b/Documentation/driver-api/80211/cfg80211.rst @@ -73,7 +73,7 @@ Actions and configuration cfg80211_pmksa cfg80211_rx_mlme_mgmt cfg80211_auth_timeout - cfg80211_rx_assoc_resp + cfg80211_rx_assoc_response cfg80211_assoc_timeout cfg80211_tx_mlme_mgmt cfg80211_ibss_joined diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index a9ef43b33748..0ca208884675 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -7271,7 +7271,7 @@ void cfg80211_auth_timeout(struct net_device *dev, const u8 *addr); /** * struct cfg80211_rx_assoc_resp - association response data * @bss: the BSS that association was requested with, ownership of the pointer - * moves to cfg80211 in the call to cfg80211_rx_assoc_resp() + * moves to cfg80211 in the call to cfg80211_rx_assoc_response() * @buf: (Re)Association Response frame (header + body) * @len: length of the frame data * @uapsd_queues: bitmap of queues configured for uapsd. Same format @@ -7299,7 +7299,7 @@ struct cfg80211_rx_assoc_resp { }; /** - * cfg80211_rx_assoc_resp - notification of processed association response + * cfg80211_rx_assoc_response - notification of processed association response * @dev: network device * @data: association response data, &struct cfg80211_rx_assoc_resp * @@ -7308,8 +7308,8 @@ struct cfg80211_rx_assoc_resp { * * This function may sleep. The caller must hold the corresponding wdev's mutex. */ -void cfg80211_rx_assoc_resp(struct net_device *dev, - struct cfg80211_rx_assoc_resp *data); +void cfg80211_rx_assoc_response(struct net_device *dev, + struct cfg80211_rx_assoc_resp *data); /** * struct cfg80211_assoc_failure - association failure data diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 8d2514a9a6c4..699864da5ae6 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5454,7 +5454,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, resp.len = len; resp.req_ies = ifmgd->assoc_req_ies; resp.req_ies_len = ifmgd->assoc_req_ies_len; - cfg80211_rx_assoc_resp(sdata->dev, &resp); + cfg80211_rx_assoc_response(sdata->dev, &resp); notify_driver: drv_mgd_complete_tx(sdata->local, sdata, &info); kfree(elems); diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 579fea2f3548..418f3d6a4a34 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -21,8 +21,8 @@ #include "rdev-ops.h" -void cfg80211_rx_assoc_resp(struct net_device *dev, - struct cfg80211_rx_assoc_resp *data) +void cfg80211_rx_assoc_response(struct net_device *dev, + struct cfg80211_rx_assoc_resp *data) { struct wireless_dev *wdev = dev->ieee80211_ptr; struct wiphy *wiphy = wdev->wiphy; @@ -94,7 +94,7 @@ void cfg80211_rx_assoc_resp(struct net_device *dev, /* update current_bss etc., consumes the bss reference */ __cfg80211_connect_result(dev, &cr, cr.status == WLAN_STATUS_SUCCESS); } -EXPORT_SYMBOL(cfg80211_rx_assoc_resp); +EXPORT_SYMBOL(cfg80211_rx_assoc_response); static void cfg80211_process_auth(struct wireless_dev *wdev, const u8 *buf, size_t len) -- 2.39.2