Lines Matching refs:wiphy

65 struct wiphy;
656 void wiphy_read_of_freq_limits(struct wiphy *wiphy);
658 static inline void wiphy_read_of_freq_limits(struct wiphy *wiphy) in wiphy_read_of_freq_limits() argument
925 bool cfg80211_chandef_usable(struct wiphy *wiphy,
937 int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
1012 bool cfg80211_any_usable_channels(struct wiphy *wiphy,
1647 int cfg80211_check_station_change(struct wiphy *wiphy,
2480 struct wiphy *wiphy; member
2626 struct wiphy *wiphy; member
4335 int (*suspend)(struct wiphy *wiphy, struct cfg80211_wowlan *wow);
4336 int (*resume)(struct wiphy *wiphy);
4337 void (*set_wakeup)(struct wiphy *wiphy, bool enabled);
4339 struct wireless_dev * (*add_virtual_intf)(struct wiphy *wiphy,
4344 int (*del_virtual_intf)(struct wiphy *wiphy,
4346 int (*change_virtual_intf)(struct wiphy *wiphy,
4351 int (*add_intf_link)(struct wiphy *wiphy,
4354 void (*del_intf_link)(struct wiphy *wiphy,
4358 int (*add_key)(struct wiphy *wiphy, struct net_device *netdev,
4361 int (*get_key)(struct wiphy *wiphy, struct net_device *netdev,
4365 int (*del_key)(struct wiphy *wiphy, struct net_device *netdev,
4368 int (*set_default_key)(struct wiphy *wiphy,
4371 int (*set_default_mgmt_key)(struct wiphy *wiphy,
4374 int (*set_default_beacon_key)(struct wiphy *wiphy,
4379 int (*start_ap)(struct wiphy *wiphy, struct net_device *dev,
4381 int (*change_beacon)(struct wiphy *wiphy, struct net_device *dev,
4383 int (*stop_ap)(struct wiphy *wiphy, struct net_device *dev,
4387 int (*add_station)(struct wiphy *wiphy, struct net_device *dev,
4390 int (*del_station)(struct wiphy *wiphy, struct net_device *dev,
4392 int (*change_station)(struct wiphy *wiphy, struct net_device *dev,
4395 int (*get_station)(struct wiphy *wiphy, struct net_device *dev,
4397 int (*dump_station)(struct wiphy *wiphy, struct net_device *dev,
4400 int (*add_mpath)(struct wiphy *wiphy, struct net_device *dev,
4402 int (*del_mpath)(struct wiphy *wiphy, struct net_device *dev,
4404 int (*change_mpath)(struct wiphy *wiphy, struct net_device *dev,
4406 int (*get_mpath)(struct wiphy *wiphy, struct net_device *dev,
4408 int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev,
4411 int (*get_mpp)(struct wiphy *wiphy, struct net_device *dev,
4413 int (*dump_mpp)(struct wiphy *wiphy, struct net_device *dev,
4416 int (*get_mesh_config)(struct wiphy *wiphy,
4419 int (*update_mesh_config)(struct wiphy *wiphy,
4422 int (*join_mesh)(struct wiphy *wiphy, struct net_device *dev,
4425 int (*leave_mesh)(struct wiphy *wiphy, struct net_device *dev);
4427 int (*join_ocb)(struct wiphy *wiphy, struct net_device *dev,
4429 int (*leave_ocb)(struct wiphy *wiphy, struct net_device *dev);
4431 int (*change_bss)(struct wiphy *wiphy, struct net_device *dev,
4434 int (*set_txq_params)(struct wiphy *wiphy, struct net_device *dev,
4437 int (*libertas_set_mesh_channel)(struct wiphy *wiphy,
4441 int (*set_monitor_channel)(struct wiphy *wiphy,
4444 int (*scan)(struct wiphy *wiphy,
4446 void (*abort_scan)(struct wiphy *wiphy, struct wireless_dev *wdev);
4448 int (*auth)(struct wiphy *wiphy, struct net_device *dev,
4450 int (*assoc)(struct wiphy *wiphy, struct net_device *dev,
4452 int (*deauth)(struct wiphy *wiphy, struct net_device *dev,
4454 int (*disassoc)(struct wiphy *wiphy, struct net_device *dev,
4457 int (*connect)(struct wiphy *wiphy, struct net_device *dev,
4459 int (*update_connect_params)(struct wiphy *wiphy,
4463 int (*disconnect)(struct wiphy *wiphy, struct net_device *dev,
4466 int (*join_ibss)(struct wiphy *wiphy, struct net_device *dev,
4468 int (*leave_ibss)(struct wiphy *wiphy, struct net_device *dev);
4470 int (*set_mcast_rate)(struct wiphy *wiphy, struct net_device *dev,
4473 int (*set_wiphy_params)(struct wiphy *wiphy, u32 changed);
4475 int (*set_tx_power)(struct wiphy *wiphy, struct wireless_dev *wdev,
4477 int (*get_tx_power)(struct wiphy *wiphy, struct wireless_dev *wdev,
4480 void (*rfkill_poll)(struct wiphy *wiphy);
4483 int (*testmode_cmd)(struct wiphy *wiphy, struct wireless_dev *wdev,
4485 int (*testmode_dump)(struct wiphy *wiphy, struct sk_buff *skb,
4490 int (*set_bitrate_mask)(struct wiphy *wiphy,
4496 int (*dump_survey)(struct wiphy *wiphy, struct net_device *netdev,
4499 int (*set_pmksa)(struct wiphy *wiphy, struct net_device *netdev,
4501 int (*del_pmksa)(struct wiphy *wiphy, struct net_device *netdev,
4503 int (*flush_pmksa)(struct wiphy *wiphy, struct net_device *netdev);
4505 int (*remain_on_channel)(struct wiphy *wiphy,
4510 int (*cancel_remain_on_channel)(struct wiphy *wiphy,
4514 int (*mgmt_tx)(struct wiphy *wiphy, struct wireless_dev *wdev,
4517 int (*mgmt_tx_cancel_wait)(struct wiphy *wiphy,
4521 int (*set_power_mgmt)(struct wiphy *wiphy, struct net_device *dev,
4524 int (*set_cqm_rssi_config)(struct wiphy *wiphy,
4528 int (*set_cqm_rssi_range_config)(struct wiphy *wiphy,
4532 int (*set_cqm_txe_config)(struct wiphy *wiphy,
4536 void (*update_mgmt_frame_registrations)(struct wiphy *wiphy,
4540 int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant);
4541 int (*get_antenna)(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant);
4543 int (*sched_scan_start)(struct wiphy *wiphy,
4546 int (*sched_scan_stop)(struct wiphy *wiphy, struct net_device *dev,
4549 int (*set_rekey_data)(struct wiphy *wiphy, struct net_device *dev,
4552 int (*tdls_mgmt)(struct wiphy *wiphy, struct net_device *dev,
4556 int (*tdls_oper)(struct wiphy *wiphy, struct net_device *dev,
4559 int (*probe_client)(struct wiphy *wiphy, struct net_device *dev,
4562 int (*set_noack_map)(struct wiphy *wiphy,
4566 int (*get_channel)(struct wiphy *wiphy,
4571 int (*start_p2p_device)(struct wiphy *wiphy,
4573 void (*stop_p2p_device)(struct wiphy *wiphy,
4576 int (*set_mac_acl)(struct wiphy *wiphy, struct net_device *dev,
4579 int (*start_radar_detection)(struct wiphy *wiphy,
4583 void (*end_cac)(struct wiphy *wiphy,
4585 int (*update_ft_ies)(struct wiphy *wiphy, struct net_device *dev,
4587 int (*crit_proto_start)(struct wiphy *wiphy,
4591 void (*crit_proto_stop)(struct wiphy *wiphy,
4593 int (*set_coalesce)(struct wiphy *wiphy,
4596 int (*channel_switch)(struct wiphy *wiphy,
4600 int (*set_qos_map)(struct wiphy *wiphy,
4604 int (*set_ap_chanwidth)(struct wiphy *wiphy, struct net_device *dev,
4608 int (*add_tx_ts)(struct wiphy *wiphy, struct net_device *dev,
4611 int (*del_tx_ts)(struct wiphy *wiphy, struct net_device *dev,
4614 int (*tdls_channel_switch)(struct wiphy *wiphy,
4618 void (*tdls_cancel_channel_switch)(struct wiphy *wiphy,
4621 int (*start_nan)(struct wiphy *wiphy, struct wireless_dev *wdev,
4623 void (*stop_nan)(struct wiphy *wiphy, struct wireless_dev *wdev);
4624 int (*add_nan_func)(struct wiphy *wiphy, struct wireless_dev *wdev,
4626 void (*del_nan_func)(struct wiphy *wiphy, struct wireless_dev *wdev,
4628 int (*nan_change_conf)(struct wiphy *wiphy,
4633 int (*set_multicast_to_unicast)(struct wiphy *wiphy,
4637 int (*get_txq_stats)(struct wiphy *wiphy,
4641 int (*set_pmk)(struct wiphy *wiphy, struct net_device *dev,
4643 int (*del_pmk)(struct wiphy *wiphy, struct net_device *dev,
4645 int (*external_auth)(struct wiphy *wiphy, struct net_device *dev,
4648 int (*tx_control_port)(struct wiphy *wiphy,
4655 int (*get_ftm_responder_stats)(struct wiphy *wiphy,
4659 int (*start_pmsr)(struct wiphy *wiphy, struct wireless_dev *wdev,
4661 void (*abort_pmsr)(struct wiphy *wiphy, struct wireless_dev *wdev,
4663 int (*update_owe_info)(struct wiphy *wiphy, struct net_device *dev,
4665 int (*probe_mesh_link)(struct wiphy *wiphy, struct net_device *dev,
4667 int (*set_tid_config)(struct wiphy *wiphy, struct net_device *dev,
4669 int (*reset_tid_config)(struct wiphy *wiphy, struct net_device *dev,
4671 int (*set_sar_specs)(struct wiphy *wiphy,
4673 int (*color_change)(struct wiphy *wiphy,
4676 int (*set_fils_aad)(struct wiphy *wiphy, struct net_device *dev,
4678 int (*set_radar_background)(struct wiphy *wiphy,
4680 int (*add_link_station)(struct wiphy *wiphy, struct net_device *dev,
4682 int (*mod_link_station)(struct wiphy *wiphy, struct net_device *dev,
4684 int (*del_link_station)(struct wiphy *wiphy, struct net_device *dev,
5047 int (*doit)(struct wiphy *wiphy, struct wireless_dev *wdev,
5049 int (*dumpit)(struct wiphy *wiphy, struct wireless_dev *wdev,
5084 cfg80211_get_iftype_ext_capa(struct wiphy *wiphy, enum nl80211_iftype type);
5352 struct wiphy { struct
5435 void (*reg_notifier)(struct wiphy *wiphy, argument
5502 static inline struct net *wiphy_net(struct wiphy *wiphy) in wiphy_net() argument
5504 return read_pnet(&wiphy->_net); in wiphy_net()
5507 static inline void wiphy_net_set(struct wiphy *wiphy, struct net *net) in wiphy_net_set() argument
5509 write_pnet(&wiphy->_net, net); in wiphy_net_set()
5518 static inline void *wiphy_priv(struct wiphy *wiphy) in wiphy_priv() argument
5520 BUG_ON(!wiphy); in wiphy_priv()
5521 return &wiphy->priv; in wiphy_priv()
5530 static inline struct wiphy *priv_to_wiphy(void *priv) in priv_to_wiphy()
5533 return container_of(priv, struct wiphy, priv); in priv_to_wiphy()
5542 static inline void set_wiphy_dev(struct wiphy *wiphy, struct device *dev) in set_wiphy_dev() argument
5544 wiphy->dev.parent = dev; in set_wiphy_dev()
5553 static inline struct device *wiphy_dev(struct wiphy *wiphy) in wiphy_dev() argument
5555 return wiphy->dev.parent; in wiphy_dev()
5564 static inline const char *wiphy_name(const struct wiphy *wiphy) in wiphy_name() argument
5566 return dev_name(&wiphy->dev); in wiphy_name()
5583 struct wiphy *wiphy_new_nm(const struct cfg80211_ops *ops, int sizeof_priv,
5598 static inline struct wiphy *wiphy_new(const struct cfg80211_ops *ops, in wiphy_new()
5611 int wiphy_register(struct wiphy *wiphy);
5614 #define lockdep_assert_wiphy(wiphy) lockdep_assert_held(&(wiphy)->mtx) argument
5624 #define rcu_dereference_wiphy(wiphy, p) \ argument
5625 rcu_dereference_check(p, lockdep_is_held(&wiphy->mtx))
5635 #define wiphy_dereference(wiphy, p) \ argument
5636 rcu_dereference_protected(p, lockdep_is_held(&wiphy->mtx))
5642 const struct ieee80211_regdomain *get_wiphy_regdom(struct wiphy *wiphy);
5653 void wiphy_unregister(struct wiphy *wiphy);
5660 void wiphy_free(struct wiphy *wiphy);
5679 static inline void wiphy_lock(struct wiphy *wiphy) in wiphy_lock() argument
5680 __acquires(&wiphy->mtx) in wiphy_lock()
5682 mutex_lock(&wiphy->mtx); in wiphy_lock()
5683 __acquire(&wiphy->mtx); in wiphy_lock()
5690 static inline void wiphy_unlock(struct wiphy *wiphy) in wiphy_unlock() argument
5691 __releases(&wiphy->mtx) in wiphy_unlock()
5693 __release(&wiphy->mtx); in wiphy_unlock()
5694 mutex_unlock(&wiphy->mtx); in wiphy_unlock()
5780 struct wiphy *wiphy; member
5917 return wiphy_priv(wdev->wiphy); in wdev_priv()
6034 ieee80211_get_channel_khz(struct wiphy *wiphy, u32 freq);
6044 ieee80211_get_channel(struct wiphy *wiphy, int freq) in ieee80211_get_channel() argument
6046 return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq)); in ieee80211_get_channel()
6547 int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
6560 int regulatory_set_wiphy_regd(struct wiphy *wiphy,
6574 int regulatory_set_wiphy_regd_sync(struct wiphy *wiphy,
6592 void wiphy_apply_custom_regulatory(struct wiphy *wiphy,
6613 const struct ieee80211_reg_rule *freq_reg_info(struct wiphy *wiphy,
6631 bool regulatory_pre_cac_allowed(struct wiphy *wiphy);
6678 void cfg80211_sched_scan_results(struct wiphy *wiphy, u64 reqid);
6690 void cfg80211_sched_scan_stopped(struct wiphy *wiphy, u64 reqid);
6703 void cfg80211_sched_scan_stopped_locked(struct wiphy *wiphy, u64 reqid);
6720 cfg80211_inform_bss_frame_data(struct wiphy *wiphy,
6726 cfg80211_inform_bss_width_frame(struct wiphy *wiphy, in cfg80211_inform_bss_width_frame() argument
6738 return cfg80211_inform_bss_frame_data(wiphy, &data, mgmt, len, gfp); in cfg80211_inform_bss_width_frame()
6742 cfg80211_inform_bss_frame(struct wiphy *wiphy, in cfg80211_inform_bss_frame() argument
6753 return cfg80211_inform_bss_frame_data(wiphy, &data, mgmt, len, gfp); in cfg80211_inform_bss_frame()
6846 cfg80211_inform_bss_data(struct wiphy *wiphy,
6854 cfg80211_inform_bss_width(struct wiphy *wiphy, in cfg80211_inform_bss_width() argument
6868 return cfg80211_inform_bss_data(wiphy, &data, ftype, bssid, tsf, in cfg80211_inform_bss_width()
6874 cfg80211_inform_bss(struct wiphy *wiphy, in cfg80211_inform_bss() argument
6887 return cfg80211_inform_bss_data(wiphy, &data, ftype, bssid, tsf, in cfg80211_inform_bss()
6902 struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy,
6909 cfg80211_get_ibss(struct wiphy *wiphy, in cfg80211_get_ibss() argument
6913 return cfg80211_get_bss(wiphy, channel, NULL, ssid, ssid_len, in cfg80211_get_ibss()
6925 void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *bss);
6934 void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *bss);
6946 void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *bss);
6961 void cfg80211_bss_iter(struct wiphy *wiphy,
6963 void (*iter)(struct wiphy *wiphy,
7186 void wiphy_rfkill_set_hw_state_reason(struct wiphy *wiphy, bool blocked,
7189 static inline void wiphy_rfkill_set_hw_state(struct wiphy *wiphy, bool blocked) in wiphy_rfkill_set_hw_state() argument
7191 wiphy_rfkill_set_hw_state_reason(wiphy, blocked, in wiphy_rfkill_set_hw_state()
7199 void wiphy_rfkill_start_polling(struct wiphy *wiphy);
7205 static inline void wiphy_rfkill_stop_polling(struct wiphy *wiphy) in wiphy_rfkill_stop_polling() argument
7207 rfkill_pause_polling(wiphy->rfkill); in wiphy_rfkill_stop_polling()
7230 struct sk_buff *__cfg80211_alloc_reply_skb(struct wiphy *wiphy,
7235 struct sk_buff *__cfg80211_alloc_event_skb(struct wiphy *wiphy,
7269 cfg80211_vendor_cmd_alloc_reply_skb(struct wiphy *wiphy, int approxlen) in cfg80211_vendor_cmd_alloc_reply_skb() argument
7271 return __cfg80211_alloc_reply_skb(wiphy, NL80211_CMD_VENDOR, in cfg80211_vendor_cmd_alloc_reply_skb()
7296 unsigned int cfg80211_vendor_cmd_get_sender(struct wiphy *wiphy);
7320 cfg80211_vendor_event_alloc(struct wiphy *wiphy, struct wireless_dev *wdev, in cfg80211_vendor_event_alloc() argument
7323 return __cfg80211_alloc_event_skb(wiphy, wdev, NL80211_CMD_VENDOR, in cfg80211_vendor_event_alloc()
7353 cfg80211_vendor_event_alloc_ucast(struct wiphy *wiphy, in cfg80211_vendor_event_alloc_ucast() argument
7358 return __cfg80211_alloc_event_skb(wiphy, wdev, NL80211_CMD_VENDOR, in cfg80211_vendor_event_alloc_ucast()
7412 cfg80211_testmode_alloc_reply_skb(struct wiphy *wiphy, int approxlen) in cfg80211_testmode_alloc_reply_skb() argument
7414 return __cfg80211_alloc_reply_skb(wiphy, NL80211_CMD_TESTMODE, in cfg80211_testmode_alloc_reply_skb()
7457 cfg80211_testmode_alloc_event_skb(struct wiphy *wiphy, int approxlen, gfp_t gfp) in cfg80211_testmode_alloc_event_skb() argument
7459 return __cfg80211_alloc_event_skb(wiphy, NULL, NL80211_CMD_TESTMODE, in cfg80211_testmode_alloc_event_skb()
8176 void __cfg80211_radar_event(struct wiphy *wiphy,
8181 cfg80211_radar_event(struct wiphy *wiphy, in cfg80211_radar_event() argument
8185 __cfg80211_radar_event(wiphy, chandef, false, gfp); in cfg80211_radar_event()
8189 cfg80211_background_radar_event(struct wiphy *wiphy, in cfg80211_background_radar_event() argument
8193 __cfg80211_radar_event(wiphy, chandef, true, gfp); in cfg80211_background_radar_event()
8232 void cfg80211_background_cac_abort(struct wiphy *wiphy);
8312 void cfg80211_report_obss_beacon_khz(struct wiphy *wiphy, const u8 *frame,
8327 static inline void cfg80211_report_obss_beacon(struct wiphy *wiphy, in cfg80211_report_obss_beacon() argument
8331 cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq), in cfg80211_report_obss_beacon()
8344 bool cfg80211_reg_can_beacon(struct wiphy *wiphy,
8361 bool cfg80211_reg_can_beacon_relax(struct wiphy *wiphy,
8644 unsigned int ieee80211_get_num_supported_channels(struct wiphy *wiphy);
8656 int cfg80211_check_combinations(struct wiphy *wiphy,
8671 int cfg80211_iter_combinations(struct wiphy *wiphy,
8689 void cfg80211_stop_iface(struct wiphy *wiphy, struct wireless_dev *wdev,
8704 void cfg80211_shutdown_all_interfaces(struct wiphy *wiphy);
8715 static inline void wiphy_ext_feature_set(struct wiphy *wiphy, in wiphy_ext_feature_set() argument
8720 ft_byte = &wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_set()
8734 wiphy_ext_feature_isset(struct wiphy *wiphy, in wiphy_ext_feature_isset() argument
8739 ft_byte = wiphy->ext_features[ftidx / 8]; in wiphy_ext_feature_isset()
8854 bool cfg80211_iftype_allowed(struct wiphy *wiphy, enum nl80211_iftype iftype,
8874 #define wiphy_printk(level, wiphy, format, args...) \ argument
8875 dev_printk(level, &(wiphy)->dev, format, ##args)
8876 #define wiphy_emerg(wiphy, format, args...) \ argument
8877 dev_emerg(&(wiphy)->dev, format, ##args)
8878 #define wiphy_alert(wiphy, format, args...) \ argument
8879 dev_alert(&(wiphy)->dev, format, ##args)
8880 #define wiphy_crit(wiphy, format, args...) \ argument
8881 dev_crit(&(wiphy)->dev, format, ##args)
8882 #define wiphy_err(wiphy, format, args...) \ argument
8883 dev_err(&(wiphy)->dev, format, ##args)
8884 #define wiphy_warn(wiphy, format, args...) \ argument
8885 dev_warn(&(wiphy)->dev, format, ##args)
8886 #define wiphy_notice(wiphy, format, args...) \ argument
8887 dev_notice(&(wiphy)->dev, format, ##args)
8888 #define wiphy_info(wiphy, format, args...) \ argument
8889 dev_info(&(wiphy)->dev, format, ##args)
8890 #define wiphy_info_once(wiphy, format, args...) \ argument
8891 dev_info_once(&(wiphy)->dev, format, ##args)
8893 #define wiphy_err_ratelimited(wiphy, format, args...) \ argument
8894 dev_err_ratelimited(&(wiphy)->dev, format, ##args)
8895 #define wiphy_warn_ratelimited(wiphy, format, args...) \ argument
8896 dev_warn_ratelimited(&(wiphy)->dev, format, ##args)
8898 #define wiphy_debug(wiphy, format, args...) \ argument
8899 wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
8901 #define wiphy_dbg(wiphy, format, args...) \ argument
8902 dev_dbg(&(wiphy)->dev, format, ##args)
8907 #define wiphy_vdbg(wiphy, format, args...) \ argument
8910 wiphy_printk(KERN_DEBUG, wiphy, format, ##args); \
8920 #define wiphy_WARN(wiphy, format, args...) \ argument
8921 WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args);
8937 void cfg80211_bss_flush(struct wiphy *wiphy);