1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* << 3 * Portions of this file << 4 * Copyright (C) 2018, 2020-2024 Intel Corpora << 5 */ << 6 #ifndef __NET_WIRELESS_NL80211_H 1 #ifndef __NET_WIRELESS_NL80211_H 7 #define __NET_WIRELESS_NL80211_H 2 #define __NET_WIRELESS_NL80211_H 8 3 9 #include "core.h" 4 #include "core.h" 10 5 11 int nl80211_init(void); 6 int nl80211_init(void); 12 void nl80211_exit(void); 7 void nl80211_exit(void); 13 !! 8 void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev); 14 void *nl80211hdr_put(struct sk_buff *skb, u32 << 15 int flags, u8 cmd); << 16 bool nl80211_put_sta_rate(struct sk_buff *msg, << 17 int attr); << 18 << 19 static inline u64 wdev_id(struct wireless_dev << 20 { << 21 return (u64)wdev->identifier | << 22 ((u64)wiphy_to_rdev(wdev->wiphy << 23 } << 24 << 25 int nl80211_parse_chandef(struct cfg80211_regi << 26 struct genl_info *in << 27 struct cfg80211_chan << 28 int nl80211_parse_random_mac(struct nlattr **a << 29 u8 *mac_addr, u8 << 30 << 31 void nl80211_notify_wiphy(struct cfg80211_regi << 32 enum nl80211_command << 33 void nl80211_notify_iface(struct cfg80211_regi << 34 struct wireless_dev << 35 enum nl80211_command << 36 void nl80211_send_scan_start(struct cfg80211_r 9 void nl80211_send_scan_start(struct cfg80211_registered_device *rdev, 37 struct wireless_d !! 10 struct net_device *netdev); 38 struct sk_buff *nl80211_build_scan_msg(struct !! 11 void nl80211_send_scan_done(struct cfg80211_registered_device *rdev, 39 struct !! 12 struct net_device *netdev); 40 void nl80211_send_scan_msg(struct cfg80211_reg !! 13 void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev, 41 struct sk_buff *msg !! 14 struct net_device *netdev); 42 void nl80211_send_sched_scan(struct cfg80211_s !! 15 void nl80211_send_reg_change_event(struct regulatory_request *request); 43 void nl80211_common_reg_change_event(enum nl80 << 44 struct re << 45 << 46 static inline void << 47 nl80211_send_reg_change_event(struct regulator << 48 { << 49 nl80211_common_reg_change_event(NL8021 << 50 } << 51 << 52 static inline void << 53 nl80211_send_wiphy_reg_change_event(struct reg << 54 { << 55 nl80211_common_reg_change_event(NL8021 << 56 } << 57 << 58 void nl80211_send_rx_auth(struct cfg80211_regi 16 void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev, 59 struct net_device *n 17 struct net_device *netdev, 60 const u8 *buf, size_ 18 const u8 *buf, size_t len, gfp_t gfp); 61 void nl80211_send_rx_assoc(struct cfg80211_reg 19 void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev, 62 struct net_device * 20 struct net_device *netdev, 63 const struct cfg802 !! 21 const u8 *buf, size_t len, gfp_t gfp); 64 void nl80211_send_deauth(struct cfg80211_regis 22 void nl80211_send_deauth(struct cfg80211_registered_device *rdev, 65 struct net_device *ne 23 struct net_device *netdev, 66 const u8 *buf, size_t !! 24 const u8 *buf, size_t len, gfp_t gfp); 67 bool reconnect, gfp_t << 68 void nl80211_send_disassoc(struct cfg80211_reg 25 void nl80211_send_disassoc(struct cfg80211_registered_device *rdev, 69 struct net_device * 26 struct net_device *netdev, 70 const u8 *buf, size !! 27 const u8 *buf, size_t len, gfp_t gfp); 71 bool reconnect, gfp << 72 void nl80211_send_auth_timeout(struct cfg80211 28 void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev, 73 struct net_devi 29 struct net_device *netdev, 74 const u8 *addr, 30 const u8 *addr, gfp_t gfp); 75 void nl80211_send_assoc_timeout(struct cfg8021 31 void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev, 76 struct net_dev 32 struct net_device *netdev, 77 const u8 *addr 33 const u8 *addr, gfp_t gfp); 78 void nl80211_send_connect_result(struct cfg802 34 void nl80211_send_connect_result(struct cfg80211_registered_device *rdev, 79 struct net_de !! 35 struct net_device *netdev, const u8 *bssid, 80 struct cfg802 !! 36 const u8 *req_ie, size_t req_ie_len, 81 gfp_t gfp); !! 37 const u8 *resp_ie, size_t resp_ie_len, >> 38 u16 status, gfp_t gfp); 82 void nl80211_send_roamed(struct cfg80211_regis 39 void nl80211_send_roamed(struct cfg80211_registered_device *rdev, 83 struct net_device *ne !! 40 struct net_device *netdev, const u8 *bssid, 84 struct cfg80211_roam_ !! 41 const u8 *req_ie, size_t req_ie_len, 85 /* For STA/GC, indicate port authorized with A !! 42 const u8 *resp_ie, size_t resp_ie_len, gfp_t gfp); 86 * For GO/AP, use peer GC/STA mac_addr. << 87 */ << 88 void nl80211_send_port_authorized(struct cfg80 << 89 struct net_d << 90 const u8 *td << 91 void nl80211_send_disconnected(struct cfg80211 43 void nl80211_send_disconnected(struct cfg80211_registered_device *rdev, 92 struct net_devi 44 struct net_device *netdev, u16 reason, 93 const u8 *ie, s 45 const u8 *ie, size_t ie_len, bool from_ap); 94 46 95 void 47 void 96 nl80211_michael_mic_failure(struct cfg80211_re 48 nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev, 97 struct net_device 49 struct net_device *netdev, const u8 *addr, 98 enum nl80211_key_t 50 enum nl80211_key_type key_type, 99 int key_id, const 51 int key_id, const u8 *tsc, gfp_t gfp); 100 52 101 void 53 void 102 nl80211_send_beacon_hint_event(struct wiphy *w 54 nl80211_send_beacon_hint_event(struct wiphy *wiphy, 103 struct ieee8021 55 struct ieee80211_channel *channel_before, 104 struct ieee8021 56 struct ieee80211_channel *channel_after); 105 57 106 void nl80211_send_ibss_bssid(struct cfg80211_r 58 void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev, 107 struct net_device 59 struct net_device *netdev, const u8 *bssid, 108 gfp_t gfp); 60 gfp_t gfp); 109 << 110 int nl80211_send_mgmt(struct cfg80211_register << 111 struct wireless_dev *wde << 112 struct cfg80211_rx_info << 113 << 114 void << 115 nl80211_radar_notify(struct cfg80211_registere << 116 const struct cfg80211_cha << 117 enum nl80211_radar_event << 118 struct net_device *netdev << 119 << 120 void nl80211_send_ap_stopped(struct wireless_d << 121 << 122 void cfg80211_free_coalesce(struct cfg80211_co << 123 << 124 /* peer measurement */ << 125 int nl80211_pmsr_start(struct sk_buff *skb, st << 126 61 127 #endif /* __NET_WIRELESS_NL80211_H */ 62 #endif /* __NET_WIRELESS_NL80211_H */ 128 63
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.