Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2042729rdh; Tue, 26 Sep 2023 10:31:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNpMfU+ehtb9+y43UNUIBQhRinfhJ4l6dmSFRIMJBDeCBIryEM4Z+13sJ4MnS4YR7is41h X-Received: by 2002:a05:6a00:148f:b0:68e:2af1:b193 with SMTP id v15-20020a056a00148f00b0068e2af1b193mr9514205pfu.28.1695749471601; Tue, 26 Sep 2023 10:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749471; cv=none; d=google.com; s=arc-20160816; b=maaxtLxcI46XkCsQpTPpFlY7xyxbXid/5lD+U0GQPJXAiNlZtRBCD1jwRV4sET2dG2 KEwu/Hx/aeAUtSl7PckC7hBpI/bawHWimiaIOOMlJ6+gwM25DadG4il+aFd1XqmCMfT1 ebO5EnN7t3v+IUp8htP1ZPadTxchRbDkj9KSxWo7IFys7BuUB9WnKA5SZVKOF99vbE5a SrvG8hrMp1FGH5L43LJguE3AmWjWVBnrS+a6qvsw1PZazGA+JeYGJnU06Fa5d5S9qOz8 ON7jrqIE5ta7aIfTYfQ5hLzmLe1Eyucjy0l+7fNeeaVpV7hkPIdx/0hZDrIcQitVO6mQ /G+w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7yIrEC6opCSOaUhaD/9TXPkPt4zsWcfwCiwZkbF8reQ=; fh=QCRMbNmxBrwEohLjUHQ8w4lzVnBUUFoRxUspyxOIxFc=; b=eaRCxIjnV7RCcYm4Hb/dWkBlic+CEzH9hafd3Ub/6fl7KBMOnT939QAYwBFlnvf2RC RTbHN14Nxc3uS2x5N/9SLuVNWyAd23dQrA8qPWGBBKAKGFldBAzbb/XBoWxJaHdjrp80 lCjB1GKpDGSlwlOoXfTMfc9RJyUl/q9gF5YsRcm8TIhi/8m+TQtz3YPzQ9bYJbX778Lm S5kDIjhOuRRQUmLd0cDGMsvDkNOV2T5mdZ9R7VAKqVKfcs5ISVfsJTTtspVEd7PZHkI7 3WB1Mt/npmFILgieVXOH37kAib72LDVWWgIsWU6TqcldGn59kwejQWIWjPzmAV0SLz3E cZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HgJk6U48; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id cm7-20020a056a00338700b0068fcb9a734fsi13375335pfb.46.2023.09.26.10.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HgJk6U48; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B368080473AF; Tue, 26 Sep 2023 07:10:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231508AbjIZOKE (ORCPT + 56 others); Tue, 26 Sep 2023 10:10:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjIZOKE (ORCPT ); Tue, 26 Sep 2023 10:10:04 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC1111F for ; Tue, 26 Sep 2023 07:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=7yIrEC6opCSOaUhaD/9TXPkPt4zsWcfwCiwZkbF8reQ=; t=1695737396; x=1696946996; b=HgJk6U48zOs1gJH5zwWCIJM9B7qXkgA39fv9Pa4EWG1Yz0wEar/1HerOVjXr68+RmDbtIh0iM9n 8uP5hwQw8qVtmWYa5YdrsgZLs428K/bBzw/MvAq4j9UHm/UdwPzaLh8BzwUu3dDIKZrBGAGodt8+/ okE2c3sYKakTYkhkcRHCzIxBRy0VpKny4RUiUwv7yyd3Z8q5FmAyOB+gTHirnvdhwJP7vcGbjboJi 7a+uPD7BveDid66xB7glgys70FkfGqOJ1tERhz8aEaal4qfbu8Vl8KqCa74u3JZmqLj3VMY7T2ZXX jFF/mmHhlZANfKRCNIrNYxs2CiV8b/+2/JMg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ql8l7-005hSY-2H; Tue, 26 Sep 2023 16:09:53 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH] wifi: nl80211: remove set_fils_aad support Date: Tue, 26 Sep 2023 16:09:51 +0200 Message-ID: <20230926160950.d698c25528e3.If118a835a25c59de20e1728ab71949fdb4172fb2@changeid> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 07:10:00 -0700 (PDT) From: Johannes Berg There's no user for this, so remove the support. Signed-off-by: Johannes Berg --- include/net/cfg80211.h | 6 ------ net/wireless/nl80211.c | 30 ------------------------------ net/wireless/rdev-ops.h | 14 -------------- net/wireless/trace.h | 18 ------------------ 4 files changed, 68 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 3a4b684f89bf..9f930750db2e 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4384,10 +4384,6 @@ struct mgmt_frame_regs { * * @color_change: Initiate a color change. * - * @set_fils_aad: Set FILS AAD data to the AP driver so that the driver can use - * those to decrypt (Re)Association Request and encrypt (Re)Association - * Response frame. - * * @set_radar_background: Configure dedicated offchannel chain available for * radar/CAC detection on some hw. This chain can't be used to transmit * or receive frames and it is bounded to a running wdev. @@ -4748,8 +4744,6 @@ struct cfg80211_ops { int (*color_change)(struct wiphy *wiphy, struct net_device *dev, struct cfg80211_color_change_settings *params); - int (*set_fils_aad)(struct wiphy *wiphy, struct net_device *dev, - struct cfg80211_fils_aad *fils_aad); int (*set_radar_background)(struct wiphy *wiphy, struct cfg80211_chan_def *chandef); int (*add_link_station)(struct wiphy *wiphy, struct net_device *dev, diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index de47838aca4f..45efc79bfa3c 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -16079,29 +16079,6 @@ static int nl80211_color_change(struct sk_buff *skb, struct genl_info *info) return err; } -static int nl80211_set_fils_aad(struct sk_buff *skb, - struct genl_info *info) -{ - struct cfg80211_registered_device *rdev = info->user_ptr[0]; - struct net_device *dev = info->user_ptr[1]; - struct cfg80211_fils_aad fils_aad = {}; - u8 *nonces; - - if (!info->attrs[NL80211_ATTR_MAC] || - !info->attrs[NL80211_ATTR_FILS_KEK] || - !info->attrs[NL80211_ATTR_FILS_NONCES]) - return -EINVAL; - - fils_aad.macaddr = nla_data(info->attrs[NL80211_ATTR_MAC]); - fils_aad.kek_len = nla_len(info->attrs[NL80211_ATTR_FILS_KEK]); - fils_aad.kek = nla_data(info->attrs[NL80211_ATTR_FILS_KEK]); - nonces = nla_data(info->attrs[NL80211_ATTR_FILS_NONCES]); - fils_aad.snonce = nonces; - fils_aad.anonce = nonces + FILS_NONCE_LEN; - - return rdev_set_fils_aad(rdev, dev, &fils_aad); -} - static int nl80211_add_link(struct sk_buff *skb, struct genl_info *info) { struct cfg80211_registered_device *rdev = info->user_ptr[0]; @@ -17452,13 +17429,6 @@ static const struct genl_small_ops nl80211_small_ops[] = { .flags = GENL_UNS_ADMIN_PERM, .internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP), }, - { - .cmd = NL80211_CMD_SET_FILS_AAD, - .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, - .doit = nl80211_set_fils_aad, - .flags = GENL_UNS_ADMIN_PERM, - .internal_flags = IFLAGS(NL80211_FLAG_NEED_NETDEV_UP), - }, { .cmd = NL80211_CMD_ADD_LINK, .doit = nl80211_add_link, diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index 90bb7ac4b930..9dbad6ecbc6d 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h @@ -1402,20 +1402,6 @@ static inline int rdev_color_change(struct cfg80211_registered_device *rdev, return ret; } -static inline int -rdev_set_fils_aad(struct cfg80211_registered_device *rdev, - struct net_device *dev, struct cfg80211_fils_aad *fils_aad) -{ - int ret = -EOPNOTSUPP; - - trace_rdev_set_fils_aad(&rdev->wiphy, dev, fils_aad); - if (rdev->ops->set_fils_aad) - ret = rdev->ops->set_fils_aad(&rdev->wiphy, dev, fils_aad); - trace_rdev_return_int(&rdev->wiphy, ret); - - return ret; -} - static inline int rdev_set_radar_background(struct cfg80211_registered_device *rdev, struct cfg80211_chan_def *chandef) diff --git a/net/wireless/trace.h b/net/wireless/trace.h index 617c0d0dfa96..c6870c311cdf 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h @@ -2706,24 +2706,6 @@ DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_abort_pmsr, TP_ARGS(wiphy, wdev, cookie) ); -TRACE_EVENT(rdev_set_fils_aad, - TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, - struct cfg80211_fils_aad *fils_aad), - TP_ARGS(wiphy, netdev, fils_aad), - TP_STRUCT__entry(WIPHY_ENTRY - NETDEV_ENTRY - __array(u8, macaddr, ETH_ALEN) - __field(u8, kek_len) - ), - TP_fast_assign(WIPHY_ASSIGN; - NETDEV_ASSIGN; - FILS_AAD_ASSIGN(fils_aad); - ), - TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " FILS_AAD_PR_FMT, - WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->macaddr, - __entry->kek_len) -); - TRACE_EVENT(rdev_update_owe_info, TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, struct cfg80211_update_owe_info *owe_info), -- 2.41.0