Lines Matching refs:wiphy

108 	monitor_sdata = wiphy_dereference(local->hw.wiphy,  in ieee80211_set_mon_options()
172 static struct wireless_dev *ieee80211_add_iface(struct wiphy *wiphy, in ieee80211_add_iface() argument
178 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_add_iface()
200 static int ieee80211_del_iface(struct wiphy *wiphy, struct wireless_dev *wdev) in ieee80211_del_iface() argument
207 static int ieee80211_change_iface(struct wiphy *wiphy, in ieee80211_change_iface() argument
217 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_change_iface()
258 static int ieee80211_start_p2p_device(struct wiphy *wiphy, in ieee80211_start_p2p_device() argument
264 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_start_p2p_device()
273 static void ieee80211_stop_p2p_device(struct wiphy *wiphy, in ieee80211_stop_p2p_device() argument
279 static int ieee80211_start_nan(struct wiphy *wiphy, in ieee80211_start_nan() argument
286 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_start_nan()
305 static void ieee80211_stop_nan(struct wiphy *wiphy, in ieee80211_stop_nan() argument
314 static int ieee80211_nan_change_conf(struct wiphy *wiphy, in ieee80211_nan_change_conf() argument
344 static int ieee80211_add_nan_func(struct wiphy *wiphy, in ieee80211_add_nan_func() argument
399 static void ieee80211_del_nan_func(struct wiphy *wiphy, in ieee80211_del_nan_func() argument
422 static int ieee80211_set_noack_map(struct wiphy *wiphy, in ieee80211_set_noack_map() argument
443 if (!wiphy_ext_feature_isset(local->hw.wiphy, in ieee80211_set_tx()
455 key = wiphy_dereference(local->hw.wiphy, sta->ptk[key_idx]); in ieee80211_set_tx()
463 static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_key() argument
475 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_add_key()
597 lockdep_is_held(&local->hw.wiphy->mtx)); in ieee80211_lookup_key()
605 return wiphy_dereference(local->hw.wiphy, in ieee80211_lookup_key()
612 return wiphy_dereference(local->hw.wiphy, in ieee80211_lookup_key()
619 return wiphy_dereference(local->hw.wiphy, sdata->keys[key_idx]); in ieee80211_lookup_key()
621 key = wiphy_dereference(local->hw.wiphy, link->gtk[key_idx]); in ieee80211_lookup_key()
627 return wiphy_dereference(local->hw.wiphy, sdata->keys[key_idx]); in ieee80211_lookup_key()
632 static int ieee80211_del_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_key() argument
640 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_del_key()
651 static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev, in ieee80211_get_key() argument
753 static int ieee80211_config_default_key(struct wiphy *wiphy, in ieee80211_config_default_key() argument
770 static int ieee80211_config_default_mgmt_key(struct wiphy *wiphy, in ieee80211_config_default_mgmt_key() argument
786 static int ieee80211_config_default_beacon_key(struct wiphy *wiphy, in ieee80211_config_default_beacon_key() argument
834 static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_dump_station() argument
842 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_dump_station()
854 static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev, in ieee80211_dump_survey() argument
862 static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_get_station() argument
870 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_get_station()
881 static int ieee80211_set_monitor_channel(struct wiphy *wiphy, in ieee80211_set_monitor_channel() argument
884 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_monitor_channel()
889 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_set_monitor_channel()
895 sdata = wiphy_dereference(local->hw.wiphy, in ieee80211_set_monitor_channel()
1265 static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, in ieee80211_start_ap() argument
1285 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_start_ap()
1455 if (wiphy_ext_feature_isset(local->hw.wiphy, in ieee80211_start_ap()
1516 static int ieee80211_change_beacon(struct wiphy *wiphy, struct net_device *dev, in ieee80211_change_beacon() argument
1528 lockdep_assert_wiphy(wiphy); in ieee80211_change_beacon()
1583 static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev, in ieee80211_stop_ap() argument
1599 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_stop_ap()
1667 wiphy_delayed_work_cancel(wiphy, &link->dfs_cac_timer_work); in ieee80211_stop_ap()
1828 lockdep_is_held(&local->hw.wiphy->mtx)); in sta_link_apply_parameters()
2070 static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_station() argument
2074 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_add_station()
2079 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_add_station()
2142 static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_station() argument
2156 static int ieee80211_change_station(struct wiphy *wiphy, in ieee80211_change_station() argument
2161 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_change_station()
2167 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_change_station()
2204 err = cfg80211_check_station_change(wiphy, params, statype); in ieee80211_change_station()
2252 static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_mpath() argument
2280 static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_mpath() argument
2292 static int ieee80211_change_mpath(struct wiphy *wiphy, struct net_device *dev, in ieee80211_change_mpath() argument
2367 static int ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev, in ieee80211_get_mpath() argument
2388 static int ieee80211_dump_mpath(struct wiphy *wiphy, struct net_device *dev, in ieee80211_dump_mpath() argument
2418 static int ieee80211_get_mpp(struct wiphy *wiphy, struct net_device *dev, in ieee80211_get_mpp() argument
2439 static int ieee80211_dump_mpp(struct wiphy *wiphy, struct net_device *dev, in ieee80211_dump_mpp() argument
2460 static int ieee80211_get_mesh_config(struct wiphy *wiphy, in ieee80211_get_mesh_config() argument
2520 if (wiphy_ext_feature_isset(sdata->local->hw.wiphy, in copy_mesh_setup()
2533 static int ieee80211_update_mesh_config(struct wiphy *wiphy, in ieee80211_update_mesh_config() argument
2653 static int ieee80211_join_mesh(struct wiphy *wiphy, struct net_device *dev, in ieee80211_join_mesh() argument
2662 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_join_mesh()
2683 static int ieee80211_leave_mesh(struct wiphy *wiphy, struct net_device *dev) in ieee80211_leave_mesh() argument
2687 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_leave_mesh()
2697 static int ieee80211_change_bss(struct wiphy *wiphy, in ieee80211_change_bss() argument
2719 wiphy->bands[sband->band], in ieee80211_change_bss()
2785 static int ieee80211_set_txq_params(struct wiphy *wiphy, in ieee80211_set_txq_params() argument
2789 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_txq_params()
2820 wiphy_debug(local->hw.wiphy, in ieee80211_set_txq_params()
2833 static int ieee80211_suspend(struct wiphy *wiphy, in ieee80211_suspend() argument
2836 return __ieee80211_suspend(wiphy_priv(wiphy), wowlan); in ieee80211_suspend()
2839 static int ieee80211_resume(struct wiphy *wiphy) in ieee80211_resume() argument
2841 return __ieee80211_resume(wiphy_priv(wiphy)); in ieee80211_resume()
2848 static int ieee80211_scan(struct wiphy *wiphy, in ieee80211_scan() argument
2880 (!(wiphy->features & NL80211_FEATURE_AP_SCAN) || in ieee80211_scan()
2892 static void ieee80211_abort_scan(struct wiphy *wiphy, struct wireless_dev *wdev) in ieee80211_abort_scan() argument
2894 ieee80211_scan_cancel(wiphy_priv(wiphy)); in ieee80211_abort_scan()
2898 ieee80211_sched_scan_start(struct wiphy *wiphy, in ieee80211_sched_scan_start() argument
2911 ieee80211_sched_scan_stop(struct wiphy *wiphy, struct net_device *dev, in ieee80211_sched_scan_stop() argument
2914 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_sched_scan_stop()
2922 static int ieee80211_auth(struct wiphy *wiphy, struct net_device *dev, in ieee80211_auth() argument
2928 static int ieee80211_assoc(struct wiphy *wiphy, struct net_device *dev, in ieee80211_assoc() argument
2934 static int ieee80211_deauth(struct wiphy *wiphy, struct net_device *dev, in ieee80211_deauth() argument
2940 static int ieee80211_disassoc(struct wiphy *wiphy, struct net_device *dev, in ieee80211_disassoc() argument
2946 static int ieee80211_join_ibss(struct wiphy *wiphy, struct net_device *dev, in ieee80211_join_ibss() argument
2952 static int ieee80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev) in ieee80211_leave_ibss() argument
2957 static int ieee80211_join_ocb(struct wiphy *wiphy, struct net_device *dev, in ieee80211_join_ocb() argument
2963 static int ieee80211_leave_ocb(struct wiphy *wiphy, struct net_device *dev) in ieee80211_leave_ocb() argument
2968 static int ieee80211_set_mcast_rate(struct wiphy *wiphy, struct net_device *dev, in ieee80211_set_mcast_rate() argument
2983 static int ieee80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) in ieee80211_set_wiphy_params() argument
2985 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_wiphy_params()
2991 err = drv_set_frag_threshold(local, wiphy->frag_threshold); in ieee80211_set_wiphy_params()
3004 wiphy->coverage_class : -1; in ieee80211_set_wiphy_params()
3012 err = drv_set_rts_threshold(local, wiphy->rts_threshold); in ieee80211_set_wiphy_params()
3019 if (wiphy->retry_short > IEEE80211_MAX_TX_RETRY) in ieee80211_set_wiphy_params()
3021 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; in ieee80211_set_wiphy_params()
3024 if (wiphy->retry_long > IEEE80211_MAX_TX_RETRY) in ieee80211_set_wiphy_params()
3026 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; in ieee80211_set_wiphy_params()
3040 static int ieee80211_set_tx_power(struct wiphy *wiphy, in ieee80211_set_tx_power() argument
3044 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_tx_power()
3051 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_set_tx_power()
3060 sdata = wiphy_dereference(local->hw.wiphy, in ieee80211_set_tx_power()
3120 sdata = wiphy_dereference(local->hw.wiphy, in ieee80211_set_tx_power()
3139 static int ieee80211_get_tx_power(struct wiphy *wiphy, in ieee80211_get_tx_power() argument
3143 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_get_tx_power()
3162 static void ieee80211_rfkill_poll(struct wiphy *wiphy) in ieee80211_rfkill_poll() argument
3164 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_rfkill_poll()
3170 static int ieee80211_testmode_cmd(struct wiphy *wiphy, in ieee80211_testmode_cmd() argument
3174 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_testmode_cmd()
3191 static int ieee80211_testmode_dump(struct wiphy *wiphy, in ieee80211_testmode_dump() argument
3196 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_testmode_dump()
3215 lockdep_assert_wiphy(sdata->local->hw.wiphy); in __ieee80211_request_smps_mgd()
3278 static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, in ieee80211_set_power_mgmt() argument
3351 static int ieee80211_set_cqm_rssi_config(struct wiphy *wiphy, in ieee80211_set_cqm_rssi_config() argument
3375 static int ieee80211_set_cqm_rssi_range_config(struct wiphy *wiphy, in ieee80211_set_cqm_rssi_range_config() argument
3398 static int ieee80211_set_bitrate_mask(struct wiphy *wiphy, in ieee80211_set_bitrate_mask() argument
3435 struct ieee80211_supported_band *sband = wiphy->bands[i]; in ieee80211_set_bitrate_mask()
3468 static int ieee80211_start_radar_detection(struct wiphy *wiphy, in ieee80211_start_radar_detection() argument
3479 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_start_radar_detection()
3497 wiphy_delayed_work_queue(wiphy, &link_data->dfs_cac_timer_work, in ieee80211_start_radar_detection()
3503 static void ieee80211_end_cac(struct wiphy *wiphy, in ieee80211_end_cac() argument
3510 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_end_cac()
3517 wiphy_delayed_work_cancel(wiphy, in ieee80211_end_cac()
3667 wiphy_work_queue(iter->local->hw.wiphy, in ieee80211_csa_finish()
3671 wiphy_work_queue(local->hw.wiphy, &link_data->csa.finalize_work); in ieee80211_csa_finish()
3685 wiphy_work_queue(local->hw.wiphy, &ifmgd->csa_connection_drop_work); in ieee80211_channel_switch_disconnect()
3736 lockdep_assert_wiphy(local->hw.wiphy); in __ieee80211_csa_finalize()
3788 cfg80211_stop_iface(sdata->local->hw.wiphy, &sdata->wdev, in ieee80211_csa_finalize()
3793 void ieee80211_csa_finalize_work(struct wiphy *wiphy, struct wiphy_work *work) in ieee80211_csa_finalize_work() argument
3800 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_csa_finalize_work()
3955 __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, in __ieee80211_channel_switch() argument
3972 lockdep_assert_wiphy(local->hw.wiphy); in __ieee80211_channel_switch()
3983 link_data = wiphy_dereference(wiphy, sdata->link[link_id]); in __ieee80211_channel_switch()
3996 conf = wiphy_dereference(wiphy, link_conf->chanctx_conf); in __ieee80211_channel_switch()
4065 int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, in ieee80211_channel_switch() argument
4071 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_channel_switch()
4073 return __ieee80211_channel_switch(wiphy, dev, params); in ieee80211_channel_switch()
4078 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_mgmt_tx_cookie()
4120 ieee80211_update_mgmt_frame_registrations(struct wiphy *wiphy, in ieee80211_update_mgmt_frame_registrations() argument
4124 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_update_mgmt_frame_registrations()
4158 static int ieee80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in ieee80211_set_antenna() argument
4160 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_antenna()
4174 static int ieee80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in ieee80211_get_antenna() argument
4176 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_get_antenna()
4181 static int ieee80211_set_rekey_data(struct wiphy *wiphy, in ieee80211_set_rekey_data() argument
4185 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_rekey_data()
4196 static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, in ieee80211_probe_client() argument
4213 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_probe_client()
4288 static int ieee80211_cfg_get_channel(struct wiphy *wiphy, in ieee80211_cfg_get_channel() argument
4294 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_cfg_get_channel()
4323 static void ieee80211_set_wakeup(struct wiphy *wiphy, bool enabled) in ieee80211_set_wakeup() argument
4325 drv_set_wakeup(wiphy_priv(wiphy), enabled); in ieee80211_set_wakeup()
4329 static int ieee80211_set_qos_map(struct wiphy *wiphy, in ieee80211_set_qos_map() argument
4354 static int ieee80211_set_ap_chanwidth(struct wiphy *wiphy, in ieee80211_set_ap_chanwidth() argument
4374 static int ieee80211_add_tx_ts(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_tx_ts() argument
4400 static int ieee80211_del_tx_ts(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_tx_ts() argument
4405 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_del_tx_ts()
4501 static int ieee80211_set_multicast_to_unicast(struct wiphy *wiphy, in ieee80211_set_multicast_to_unicast() argument
4561 static int ieee80211_get_txq_stats(struct wiphy *wiphy, in ieee80211_get_txq_stats() argument
4565 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_get_txq_stats()
4603 ieee80211_get_ftm_responder_stats(struct wiphy *wiphy, in ieee80211_get_ftm_responder_stats() argument
4607 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_get_ftm_responder_stats()
4614 ieee80211_start_pmsr(struct wiphy *wiphy, struct wireless_dev *dev, in ieee80211_start_pmsr() argument
4617 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_start_pmsr()
4624 ieee80211_abort_pmsr(struct wiphy *wiphy, struct wireless_dev *dev, in ieee80211_abort_pmsr() argument
4627 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_abort_pmsr()
4633 static int ieee80211_set_tid_config(struct wiphy *wiphy, in ieee80211_set_tid_config() argument
4640 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_set_tid_config()
4655 static int ieee80211_reset_tid_config(struct wiphy *wiphy, in ieee80211_reset_tid_config() argument
4662 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_reset_tid_config()
4677 static int ieee80211_set_sar_specs(struct wiphy *wiphy, in ieee80211_set_sar_specs() argument
4680 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_sar_specs()
4765 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_color_change_bss_config_notify()
4795 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_color_change_finalize()
4813 void ieee80211_color_change_finalize_work(struct wiphy *wiphy, in ieee80211_color_change_finalize_work() argument
4823 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_color_change_finalize_work()
4835 void ieee80211_color_collision_detection_work(struct wiphy *wiphy, in ieee80211_color_collision_detection_work() argument
4863 wiphy_work_queue(sdata->local->hw.wiphy, in ieee80211_color_change_finish()
4893 if (wiphy_delayed_work_pending(sdata->local->hw.wiphy, in ieee80211_obss_color_collision_notify()
4903 wiphy_delayed_work_queue(sdata->local->hw.wiphy, in ieee80211_obss_color_collision_notify()
4912 ieee80211_color_change(struct wiphy *wiphy, struct net_device *dev, in ieee80211_color_change() argument
4923 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_color_change()
4928 link = wiphy_dereference(wiphy, sdata->link[link_id]); in ieee80211_color_change()
4966 ieee80211_set_radar_background(struct wiphy *wiphy, in ieee80211_set_radar_background() argument
4969 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_set_radar_background()
4977 static int ieee80211_add_intf_link(struct wiphy *wiphy, in ieee80211_add_intf_link() argument
4983 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_add_intf_link()
4991 static void ieee80211_del_intf_link(struct wiphy *wiphy, in ieee80211_del_intf_link() argument
4997 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_del_intf_link()
5003 ieee80211_add_link_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_add_link_station() argument
5007 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_add_link_station()
5011 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_add_link_station()
5038 ieee80211_mod_link_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_mod_link_station() argument
5042 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_mod_link_station()
5045 lockdep_assert_wiphy(local->hw.wiphy); in ieee80211_mod_link_station()
5059 ieee80211_del_link_station(struct wiphy *wiphy, struct net_device *dev, in ieee80211_del_link_station() argument
5065 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_del_link_station()
5083 static int ieee80211_set_hw_timestamp(struct wiphy *wiphy, in ieee80211_set_hw_timestamp() argument
5100 ieee80211_set_ttlm(struct wiphy *wiphy, struct net_device *dev, in ieee80211_set_ttlm() argument
5105 lockdep_assert_wiphy(sdata->local->hw.wiphy); in ieee80211_set_ttlm()