Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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