From nobody Tue Jan 31 13:41:21 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5mRP4hFVz3cXS3; Tue, 31 Jan 2023 13:41:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5mRP49LTz3n7J; Tue, 31 Jan 2023 13:41:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675172481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JAU/mwlfDSt2vKyIrVP+Fxinn7w7NBo1ovG+D81P/BQ=; b=oZwXhfXwc/bGfv8Gjm7M+D7YINWCYyQeGQiQ2VgWQqPzsq83fugllwuMcx57qF7t3LlYUQ pLU4L4hqddtchueYlxrNKxyxZ2gUOL/+p+9kqNb+6JjI0BMqx1zD6EoPJVCaZfAZjAqK0Z GZWO2OSKbSveYWL7e8e0mqEyfuAQwW0qV0OprMvxn9YbkILaOzDTrds7UGWTisT+8J3+cU zf0sqoniZOJdZsoWQMZ9IudxA8/SncX2SpG9n9xlAabUMK2eWa6q/QAWKwkLkY5yEz567E bxx/iWGfS1Vp/rHyJg8xZrkU+v4skC6f2WRhoy3v8ouvl/0/4WPn3/J4rXSO9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675172481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JAU/mwlfDSt2vKyIrVP+Fxinn7w7NBo1ovG+D81P/BQ=; b=F93WfhkFwtqDUHsDLJk8WefAoIyC4Qm8YjJXYvmYLQqKjb/8pA+cgXQ5xI1t9/hBulqUpL 7Pq9IkTgj/KGWPfmatvJ1lPq4dlUmMsjFQ91AR7oeUQtZhbZlgYxR+0bOOGBbbDZfKJMMI OMVKNwuUCZOBP1ziDr2KHFCF7IkBMlbzdSXcjDrgu+xPfp0edeDuISFOl1J7cHQ9OZO4q4 RgqK5Ecqe95ej3wq+Opb5hnk6odiuQt44TTkzgtxb1GlVvqCEQwW3KRd+NWJfSZqlOOp2p 750lXQVzaL2LY4FMuSRSGSprEjPcR/SYz/mbwK+1Cu1gw6+TnlLl22dcHyCfYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675172481; a=rsa-sha256; cv=none; b=W4r0THaiPbJKx7RtlBThaEP8KNP8hcpzf1eSeHCHFxqQeIkjaGWwWugpJrVXEayq0WXP7F GQxQuumTmVOskJTvTmR5D/JAwU/tYTy/Ucq6Qkh/2woEHK+7GKyByHMUf5g1aQjFbWPmqF Bjb3sce+0vsZG9SVbeGsgN77XuGgJ+Ypc/B79KsUctCAi1F5+xob6H6DpDVIQPnA66egmS wZMrvm7o2Xn1A70QU8gdjQ9XQlM0fmD6UsTuPD3bAZeSHuK4QrHtYcs8SnCMKgJksxCcci OcazZQ1fbJQ1f3qQxX5jB+oV0W5BCB4pHy/2phIc0TLUXnw0j434D7NvbTDNOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P5mRP3FC3zr8F; Tue, 31 Jan 2023 13:41:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30VDfL4B079185; Tue, 31 Jan 2023 13:41:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30VDfLNA079184; Tue, 31 Jan 2023 13:41:21 GMT (envelope-from git) Date: Tue, 31 Jan 2023 13:41:21 GMT Message-Id: <202301311341.30VDfLNA079184@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: a3baca22d0b7 - main - LinuxKPI: 802.11: fix types and whitespace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a3baca22d0b7789a040a60f389e3c132b6e1755b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=a3baca22d0b7789a040a60f389e3c132b6e1755b commit a3baca22d0b7789a040a60f389e3c132b6e1755b Author: Bjoern A. Zeeb AuthorDate: 2023-01-31 13:39:04 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-01-31 13:39:04 +0000 LinuxKPI: 802.11: fix types and whitespace Correct struct member types, fix whitespace, and remove superfluous return statements in void functions. No functional changes. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/cfg80211.h | 11 ++++++----- sys/compat/linuxkpi/common/include/net/mac80211.h | 6 ------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h index 55a74227a338..8b73dc1abe3f 100644 --- a/sys/compat/linuxkpi/common/include/net/cfg80211.h +++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2020-2021 The FreeBSD Foundation + * Copyright (c) 2020-2023 The FreeBSD Foundation * Copyright (c) 2021-2022 Bjoern A. Zeeb * * This software was developed by Björn Zeeb under sponsorship from @@ -265,9 +265,8 @@ struct cfg80211_roam_info { }; struct cfg80211_bss_ies { - /* XXX TODO, type is best guess. Fix if more info. */ uint8_t *data; - int len; + size_t len; }; struct cfg80211_bss { @@ -937,6 +936,7 @@ struct iface_combination_params { struct regulatory_request { /* XXX TODO */ uint8_t alpha2[2]; + enum environment_cap country_ie_env; int initiator, dfs_region; int user_reg_hint_type; }; @@ -1029,8 +1029,9 @@ struct wiphy { uint32_t rts_threshold; uint32_t frag_threshold; struct tid_config_support tid_config_support; + uint8_t available_antennas_rx; + uint8_t available_antennas_tx; - int available_antennas_rx, available_antennas_tx; int features, hw_version; int interface_modes, max_match_sets, max_remain_on_channel_duration, max_scan_ssids, max_sched_scan_ie_len, max_sched_scan_plan_interval, max_sched_scan_plan_iterations, max_sched_scan_plans, max_sched_scan_reqs, max_sched_scan_ssids; int num_iftype_ext_capab; @@ -1200,7 +1201,7 @@ cfg80211_get_bss(struct wiphy *wiphy, struct linuxkpi_ieee80211_channel *chan, { return (linuxkpi_cfg80211_get_bss(wiphy, chan, bssid, ssid, ssid_len, - bss_type, privacy)); + bss_type, privacy)); } static inline void diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h index d548b9bb956f..caf9be89281e 100644 --- a/sys/compat/linuxkpi/common/include/net/mac80211.h +++ b/sys/compat/linuxkpi/common/include/net/mac80211.h @@ -2394,7 +2394,6 @@ static __inline void ieee80211_resume_disconnect(struct ieee80211_vif *vif) { TODO(); - return; } static __inline int @@ -2410,7 +2409,6 @@ ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *key, uint32_t iv32, uint16_t *p1k) { TODO(); - return; } static __inline struct ieee80211_key_conf * @@ -2426,14 +2424,12 @@ ieee80211_gtk_rekey_notify(struct ieee80211_vif *vif, const uint8_t *bssid, const uint8_t *replay_ctr, gfp_t gfp) { TODO(); - return; } static __inline void ieee80211_remove_key(struct ieee80211_key_conf *key) { TODO(); - return; } static __inline void @@ -2441,7 +2437,6 @@ ieee80211_set_key_rx_seq(struct ieee80211_key_conf *key, int tid, struct ieee80211_key_seq *seq) { TODO(); - return; } static __inline void @@ -2449,7 +2444,6 @@ ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif, struct cfg80211_wowlan_wakeup *wakeup, gfp_t gfp) { TODO(); - return; } static __inline void