~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/wireless/nl80211.h

Version: ~ [ linux-5.11-rc3 ] ~ [ linux-5.10.7 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.89 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.167 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.215 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.251 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.251 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Portions of this file
  4  * Copyright (C) 2018 Intel Corporation
  5  */
  6 #ifndef __NET_WIRELESS_NL80211_H
  7 #define __NET_WIRELESS_NL80211_H
  8 
  9 #include "core.h"
 10 
 11 int nl80211_init(void);
 12 void nl80211_exit(void);
 13 
 14 extern const struct nla_policy nl80211_policy[NUM_NL80211_ATTR];
 15 
 16 void *nl80211hdr_put(struct sk_buff *skb, u32 portid, u32 seq,
 17                      int flags, u8 cmd);
 18 bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
 19                           int attr);
 20 
 21 static inline u64 wdev_id(struct wireless_dev *wdev)
 22 {
 23         return (u64)wdev->identifier |
 24                ((u64)wiphy_to_rdev(wdev->wiphy)->wiphy_idx << 32);
 25 }
 26 
 27 int nl80211_prepare_wdev_dump(struct netlink_callback *cb,
 28                               struct cfg80211_registered_device **rdev,
 29                               struct wireless_dev **wdev);
 30 
 31 int nl80211_parse_chandef(struct cfg80211_registered_device *rdev,
 32                           struct genl_info *info,
 33                           struct cfg80211_chan_def *chandef);
 34 int nl80211_parse_random_mac(struct nlattr **attrs,
 35                              u8 *mac_addr, u8 *mac_addr_mask);
 36 
 37 void nl80211_notify_wiphy(struct cfg80211_registered_device *rdev,
 38                           enum nl80211_commands cmd);
 39 void nl80211_notify_iface(struct cfg80211_registered_device *rdev,
 40                           struct wireless_dev *wdev,
 41                           enum nl80211_commands cmd);
 42 void nl80211_send_scan_start(struct cfg80211_registered_device *rdev,
 43                              struct wireless_dev *wdev);
 44 struct sk_buff *nl80211_build_scan_msg(struct cfg80211_registered_device *rdev,
 45                                        struct wireless_dev *wdev, bool aborted);
 46 void nl80211_send_scan_msg(struct cfg80211_registered_device *rdev,
 47                            struct sk_buff *msg);
 48 void nl80211_send_sched_scan(struct cfg80211_sched_scan_request *req, u32 cmd);
 49 void nl80211_common_reg_change_event(enum nl80211_commands cmd_id,
 50                                      struct regulatory_request *request);
 51 
 52 static inline void
 53 nl80211_send_reg_change_event(struct regulatory_request *request)
 54 {
 55         nl80211_common_reg_change_event(NL80211_CMD_REG_CHANGE, request);
 56 }
 57 
 58 static inline void
 59 nl80211_send_wiphy_reg_change_event(struct regulatory_request *request)
 60 {
 61         nl80211_common_reg_change_event(NL80211_CMD_WIPHY_REG_CHANGE, request);
 62 }
 63 
 64 void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
 65                           struct net_device *netdev,
 66                           const u8 *buf, size_t len, gfp_t gfp);
 67 void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
 68                            struct net_device *netdev,
 69                            const u8 *buf, size_t len, gfp_t gfp,
 70                            int uapsd_queues,
 71                            const u8 *req_ies, size_t req_ies_len);
 72 void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
 73                          struct net_device *netdev,
 74                          const u8 *buf, size_t len, gfp_t gfp);
 75 void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
 76                            struct net_device *netdev,
 77                            const u8 *buf, size_t len, gfp_t gfp);
 78 void nl80211_send_auth_timeout(struct cfg80211_registered_device *rdev,
 79                                struct net_device *netdev,
 80                                const u8 *addr, gfp_t gfp);
 81 void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
 82                                 struct net_device *netdev,
 83                                 const u8 *addr, gfp_t gfp);
 84 void nl80211_send_connect_result(struct cfg80211_registered_device *rdev,
 85                                  struct net_device *netdev,
 86                                  struct cfg80211_connect_resp_params *params,
 87                                  gfp_t gfp);
 88 void nl80211_send_roamed(struct cfg80211_registered_device *rdev,
 89                          struct net_device *netdev,
 90                          struct cfg80211_roam_info *info, gfp_t gfp);
 91 void nl80211_send_port_authorized(struct cfg80211_registered_device *rdev,
 92                                   struct net_device *netdev, const u8 *bssid);
 93 void nl80211_send_disconnected(struct cfg80211_registered_device *rdev,
 94                                struct net_device *netdev, u16 reason,
 95                                const u8 *ie, size_t ie_len, bool from_ap);
 96 
 97 void
 98 nl80211_michael_mic_failure(struct cfg80211_registered_device *rdev,
 99                             struct net_device *netdev, const u8 *addr,
100                             enum nl80211_key_type key_type,
101                             int key_id, const u8 *tsc, gfp_t gfp);
102 
103 void
104 nl80211_send_beacon_hint_event(struct wiphy *wiphy,
105                                struct ieee80211_channel *channel_before,
106                                struct ieee80211_channel *channel_after);
107 
108 void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev,
109                              struct net_device *netdev, const u8 *bssid,
110                              gfp_t gfp);
111 
112 int nl80211_send_mgmt(struct cfg80211_registered_device *rdev,
113                       struct wireless_dev *wdev, u32 nlpid,
114                       int freq, int sig_dbm,
115                       const u8 *buf, size_t len, u32 flags, gfp_t gfp);
116 
117 void
118 nl80211_radar_notify(struct cfg80211_registered_device *rdev,
119                      const struct cfg80211_chan_def *chandef,
120                      enum nl80211_radar_event event,
121                      struct net_device *netdev, gfp_t gfp);
122 
123 void nl80211_send_ap_stopped(struct wireless_dev *wdev);
124 
125 void cfg80211_rdev_free_coalesce(struct cfg80211_registered_device *rdev);
126 
127 /* peer measurement */
128 int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info);
129 int nl80211_pmsr_dump_results(struct sk_buff *skb, struct netlink_callback *cb);
130 
131 #endif /* __NET_WIRELESS_NL80211_H */
132 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp