hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/wireless/nl80211.h
....@@ -1,4 +1,8 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
+/*
3
+ * Portions of this file
4
+ * Copyright (C) 2018 Intel Corporation
5
+ */
26 #ifndef __NET_WIRELESS_NL80211_H
37 #define __NET_WIRELESS_NL80211_H
48
....@@ -6,6 +10,28 @@
610
711 int nl80211_init(void);
812 void nl80211_exit(void);
13
+
14
+void *nl80211hdr_put(struct sk_buff *skb, u32 portid, u32 seq,
15
+ int flags, u8 cmd);
16
+bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
17
+ int attr);
18
+
19
+static inline u64 wdev_id(struct wireless_dev *wdev)
20
+{
21
+ return (u64)wdev->identifier |
22
+ ((u64)wiphy_to_rdev(wdev->wiphy)->wiphy_idx << 32);
23
+}
24
+
25
+int nl80211_prepare_wdev_dump(struct netlink_callback *cb,
26
+ struct cfg80211_registered_device **rdev,
27
+ struct wireless_dev **wdev);
28
+
29
+int nl80211_parse_chandef(struct cfg80211_registered_device *rdev,
30
+ struct genl_info *info,
31
+ struct cfg80211_chan_def *chandef);
32
+int nl80211_parse_random_mac(struct nlattr **attrs,
33
+ u8 *mac_addr, u8 *mac_addr_mask);
34
+
935 void nl80211_notify_wiphy(struct cfg80211_registered_device *rdev,
1036 enum nl80211_commands cmd);
1137 void nl80211_notify_iface(struct cfg80211_registered_device *rdev,
....@@ -39,7 +65,8 @@
3965 void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
4066 struct net_device *netdev,
4167 const u8 *buf, size_t len, gfp_t gfp,
42
- int uapsd_queues);
68
+ int uapsd_queues,
69
+ const u8 *req_ies, size_t req_ies_len);
4370 void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
4471 struct net_device *netdev,
4572 const u8 *buf, size_t len, gfp_t gfp);
....@@ -95,4 +122,8 @@
95122
96123 void cfg80211_rdev_free_coalesce(struct cfg80211_registered_device *rdev);
97124
125
+/* peer measurement */
126
+int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info);
127
+int nl80211_pmsr_dump_results(struct sk_buff *skb, struct netlink_callback *cb);
128
+
98129 #endif /* __NET_WIRELESS_NL80211_H */