Lines Matching full:wiphy

110 		monitor_sdata = wiphy_dereference(local->hw.wiphy,
189 static struct wireless_dev *ieee80211_add_iface(struct wiphy *wiphy,
195 struct ieee80211_local *local = wiphy_priv(wiphy);
235 static int ieee80211_del_iface(struct wiphy *wiphy, struct wireless_dev *wdev)
242 static int ieee80211_change_iface(struct wiphy *wiphy,
252 lockdep_assert_wiphy(local->hw.wiphy);
293 static int ieee80211_start_p2p_device(struct wiphy *wiphy,
299 lockdep_assert_wiphy(sdata->local->hw.wiphy);
308 static void ieee80211_stop_p2p_device(struct wiphy *wiphy,
322 static void ieee80211_stop_nan(struct wiphy *wiphy,
404 static int ieee80211_start_nan(struct wiphy *wiphy,
411 lockdep_assert_wiphy(sdata->local->hw.wiphy);
435 ieee80211_stop_nan(wiphy, wdev);
442 static int ieee80211_nan_change_conf(struct wiphy *wiphy,
483 static int ieee80211_add_nan_func(struct wiphy *wiphy,
538 static void ieee80211_del_nan_func(struct wiphy *wiphy,
561 static int ieee80211_set_noack_map(struct wiphy *wiphy,
582 if (!wiphy_ext_feature_isset(local->hw.wiphy,
594 key = wiphy_dereference(local->hw.wiphy, sta->ptk[key_idx]);
602 static int ieee80211_add_key(struct wiphy *wiphy, struct net_device *dev,
614 lockdep_assert_wiphy(local->hw.wiphy);
741 lockdep_is_held(&local->hw.wiphy->mtx));
749 return wiphy_dereference(local->hw.wiphy,
756 return wiphy_dereference(local->hw.wiphy,
763 return wiphy_dereference(local->hw.wiphy, sdata->keys[key_idx]);
765 key = wiphy_dereference(local->hw.wiphy, link->gtk[key_idx]);
771 return wiphy_dereference(local->hw.wiphy, sdata->keys[key_idx]);
776 static int ieee80211_del_key(struct wiphy *wiphy, struct net_device *dev,
784 lockdep_assert_wiphy(local->hw.wiphy);
795 static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
897 static int ieee80211_config_default_key(struct wiphy *wiphy,
914 static int ieee80211_config_default_mgmt_key(struct wiphy *wiphy,
930 static int ieee80211_config_default_beacon_key(struct wiphy *wiphy,
978 static int ieee80211_dump_station(struct wiphy *wiphy, struct net_device *dev,
986 lockdep_assert_wiphy(local->hw.wiphy);
1005 static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev,
1013 static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev,
1021 lockdep_assert_wiphy(local->hw.wiphy);
1038 static int ieee80211_set_monitor_channel(struct wiphy *wiphy,
1042 struct ieee80211_local *local = wiphy_priv(wiphy);
1047 lockdep_assert_wiphy(local->hw.wiphy);
1055 sdata = wiphy_dereference(wiphy, local->monitor_sdata);
1470 static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
1491 lockdep_assert_wiphy(local->hw.wiphy);
1661 if (wiphy_ext_feature_isset(local->hw.wiphy,
1734 static int ieee80211_change_beacon(struct wiphy *wiphy, struct net_device *dev,
1746 lockdep_assert_wiphy(wiphy);
1808 static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev,
1825 lockdep_assert_wiphy(local->hw.wiphy);
1901 wiphy_delayed_work_cancel(wiphy, &link->dfs_cac_timer_work);
2062 lockdep_is_held(&local->hw.wiphy->mtx));
2332 static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
2336 struct ieee80211_local *local = wiphy_priv(wiphy);
2341 lockdep_assert_wiphy(local->hw.wiphy);
2404 static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev,
2418 static int ieee80211_change_station(struct wiphy *wiphy,
2423 struct ieee80211_local *local = wiphy_priv(wiphy);
2429 lockdep_assert_wiphy(local->hw.wiphy);
2466 err = cfg80211_check_station_change(wiphy, params, statype);
2514 static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev,
2542 static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
2554 static int ieee80211_change_mpath(struct wiphy *wiphy, struct net_device *dev,
2629 static int ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev,
2650 static int ieee80211_dump_mpath(struct wiphy *wiphy, struct net_device *dev,
2680 static int ieee80211_get_mpp(struct wiphy *wiphy, struct net_device *dev,
2701 static int ieee80211_dump_mpp(struct wiphy *wiphy, struct net_device *dev,
2722 static int ieee80211_get_mesh_config(struct wiphy *wiphy,
2782 if (wiphy_ext_feature_isset(sdata->local->hw.wiphy,
2795 static int ieee80211_update_mesh_config(struct wiphy *wiphy,
2915 static int ieee80211_join_mesh(struct wiphy *wiphy, struct net_device *dev,
2924 lockdep_assert_wiphy(sdata->local->hw.wiphy);
2945 static int ieee80211_leave_mesh(struct wiphy *wiphy, struct net_device *dev)
2949 lockdep_assert_wiphy(sdata->local->hw.wiphy);
2959 static int ieee80211_change_bss(struct wiphy *wiphy,
2981 wiphy->bands[sband->band],
3047 static int ieee80211_set_txq_params(struct wiphy *wiphy,
3051 struct ieee80211_local *local = wiphy_priv(wiphy);
3082 wiphy_debug(local->hw.wiphy,
3095 static int ieee80211_suspend(struct wiphy *wiphy,
3098 return __ieee80211_suspend(wiphy_priv(wiphy), wowlan);
3101 static int ieee80211_resume(struct wiphy *wiphy)
3103 return __ieee80211_resume(wiphy_priv(wiphy));
3110 static int ieee80211_scan(struct wiphy *wiphy,
3150 radio_idx = cfg80211_get_radio_idx_by_chan(wiphy, chan);
3152 if (ieee80211_is_radio_idx_in_scan_req(wiphy, req,
3154 (!(wiphy->features & NL80211_FEATURE_AP_SCAN) ||
3167 static void ieee80211_abort_scan(struct wiphy *wiphy, struct wireless_dev *wdev)
3169 ieee80211_scan_cancel(wiphy_priv(wiphy));
3173 ieee80211_sched_scan_start(struct wiphy *wiphy,
3186 ieee80211_sched_scan_stop(struct wiphy *wiphy, struct net_device *dev,
3189 struct ieee80211_local *local = wiphy_priv(wiphy);
3197 static int ieee80211_auth(struct wiphy *wiphy, struct net_device *dev,
3203 static int ieee80211_assoc(struct wiphy *wiphy, struct net_device *dev,
3209 static int ieee80211_deauth(struct wiphy *wiphy, struct net_device *dev,
3215 static int ieee80211_disassoc(struct wiphy *wiphy, struct net_device *dev,
3221 static int ieee80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
3227 static int ieee80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
3232 static int ieee80211_join_ocb(struct wiphy *wiphy, struct net_device *dev,
3238 static int ieee80211_leave_ocb(struct wiphy *wiphy, struct net_device *dev)
3243 static int ieee80211_set_mcast_rate(struct wiphy *wiphy, struct net_device *dev,
3258 static int ieee80211_set_wiphy_params(struct wiphy *wiphy, int radio_idx,
3261 struct ieee80211_local *local = wiphy_priv(wiphy);
3268 wiphy->frag_threshold);
3281 wiphy->coverage_class : -1;
3292 if ((radio_idx == -1) || (radio_idx >= wiphy->n_radio))
3293 rts_threshold = wiphy->rts_threshold;
3296 wiphy->radio_cfg[radio_idx].rts_threshold;
3305 if (wiphy->retry_short > IEEE80211_MAX_TX_RETRY)
3307 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
3310 if (wiphy->retry_long > IEEE80211_MAX_TX_RETRY)
3312 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
3327 static int ieee80211_set_tx_power(struct wiphy *wiphy,
3331 struct ieee80211_local *local = wiphy_priv(wiphy);
3339 lockdep_assert_wiphy(local->hw.wiphy);
3364 sdata = wiphy_dereference(local->hw.wiphy,
3374 wiphy_dereference(wiphy, sdata->link[link_id]);
3404 wiphy_dereference(wiphy, sdata->link[link_id]);
3424 wiphy_dereference(wiphy, sdata->link[link_id]);
3434 sdata = wiphy_dereference(local->hw.wiphy,
3454 static int ieee80211_get_tx_power(struct wiphy *wiphy,
3460 struct ieee80211_local *local = wiphy_priv(wiphy);
3471 link_data = wiphy_dereference(wiphy, sdata->link[link_id]);
3486 static void ieee80211_rfkill_poll(struct wiphy *wiphy)
3488 struct ieee80211_local *local = wiphy_priv(wiphy);
3494 static int ieee80211_testmode_cmd(struct wiphy *wiphy,
3498 struct ieee80211_local *local = wiphy_priv(wiphy);
3515 static int ieee80211_testmode_dump(struct wiphy *wiphy,
3520 struct ieee80211_local *local = wiphy_priv(wiphy);
3539 lockdep_assert_wiphy(sdata->local->hw.wiphy);
3602 static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
3675 static int ieee80211_set_cqm_rssi_config(struct wiphy *wiphy,
3699 static int ieee80211_set_cqm_rssi_range_config(struct wiphy *wiphy,
3722 static int ieee80211_set_bitrate_mask(struct wiphy *wiphy,
3759 struct ieee80211_supported_band *sband = wiphy->bands[i];
3792 static bool ieee80211_is_scan_ongoing(struct wiphy *wiphy,
3803 req_radio_idx = cfg80211_get_radio_idx_by_chan(wiphy, chandef->chan);
3806 scan_req = wiphy_dereference(wiphy, local->scan_req);
3815 return ieee80211_is_radio_idx_in_scan_req(wiphy, scan_req,
3820 chan_radio_idx = cfg80211_get_radio_idx_by_chan(wiphy,
3829 static int ieee80211_start_radar_detection(struct wiphy *wiphy,
3840 lockdep_assert_wiphy(local->hw.wiphy);
3842 if (ieee80211_is_scan_ongoing(wiphy, local, chandef))
3858 wiphy_delayed_work_queue(wiphy, &link_data->dfs_cac_timer_work,
3864 static void ieee80211_end_cac(struct wiphy *wiphy,
3871 lockdep_assert_wiphy(local->hw.wiphy);
3878 wiphy_delayed_work_cancel(wiphy,
4027 wiphy_work_queue(iter->sdata->local->hw.wiphy,
4032 wiphy_work_queue(local->hw.wiphy, &link_data->csa.finalize_work);
4045 wiphy_work_queue(local->hw.wiphy, &ifmgd->csa_connection_drop_work);
4096 lockdep_assert_wiphy(local->hw.wiphy);
4148 cfg80211_stop_iface(sdata->local->hw.wiphy, &sdata->wdev,
4153 void ieee80211_csa_finalize_work(struct wiphy *wiphy, struct wiphy_work *work)
4160 lockdep_assert_wiphy(local->hw.wiphy);
4315 __ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev,
4332 lockdep_assert_wiphy(local->hw.wiphy);
4334 if (ieee80211_is_scan_ongoing(wiphy, local, &params->chandef))
4343 link_data = wiphy_dereference(wiphy, sdata->link[link_id]);
4356 conf = wiphy_dereference(wiphy, link_conf->chanctx_conf);
4431 int ieee80211_channel_switch(struct wiphy *wiphy, struct net_device *dev,
4437 lockdep_assert_wiphy(local->hw.wiphy);
4439 return __ieee80211_channel_switch(wiphy, dev, params);
4444 lockdep_assert_wiphy(local->hw.wiphy);
4486 ieee80211_update_mgmt_frame_registrations(struct wiphy *wiphy,
4490 struct ieee80211_local *local = wiphy_priv(wiphy);
4524 static int ieee80211_set_antenna(struct wiphy *wiphy, int radio_idx,
4527 struct ieee80211_local *local = wiphy_priv(wiphy);
4541 static int ieee80211_get_antenna(struct wiphy *wiphy, int radio_idx,
4544 struct ieee80211_local *local = wiphy_priv(wiphy);
4549 static int ieee80211_set_rekey_data(struct wiphy *wiphy,
4553 struct ieee80211_local *local = wiphy_priv(wiphy);
4564 static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
4581 lockdep_assert_wiphy(local->hw.wiphy);
4656 static int ieee80211_cfg_get_channel(struct wiphy *wiphy,
4662 struct ieee80211_local *local = wiphy_priv(wiphy);
4691 static void ieee80211_set_wakeup(struct wiphy *wiphy, bool enabled)
4693 drv_set_wakeup(wiphy_priv(wiphy), enabled);
4697 static int ieee80211_set_qos_map(struct wiphy *wiphy,
4722 static int ieee80211_set_ap_chanwidth(struct wiphy *wiphy,
4742 static int ieee80211_add_tx_ts(struct wiphy *wiphy, struct net_device *dev,
4768 static int ieee80211_del_tx_ts(struct wiphy *wiphy, struct net_device *dev,
4773 struct ieee80211_local *local = wiphy_priv(wiphy);
4869 static int ieee80211_set_multicast_to_unicast(struct wiphy *wiphy,
4929 static int ieee80211_get_txq_stats(struct wiphy *wiphy,
4933 struct ieee80211_local *local = wiphy_priv(wiphy);
4969 ieee80211_get_ftm_responder_stats(struct wiphy *wiphy,
4973 struct ieee80211_local *local = wiphy_priv(wiphy);
4980 ieee80211_start_pmsr(struct wiphy *wiphy, struct wireless_dev *dev,
4983 struct ieee80211_local *local = wiphy_priv(wiphy);
4990 ieee80211_abort_pmsr(struct wiphy *wiphy, struct wireless_dev *dev,
4993 struct ieee80211_local *local = wiphy_priv(wiphy);
4999 static int ieee80211_set_tid_config(struct wiphy *wiphy,
5006 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5021 static int ieee80211_reset_tid_config(struct wiphy *wiphy,
5028 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5043 static int ieee80211_set_sar_specs(struct wiphy *wiphy,
5046 struct ieee80211_local *local = wiphy_priv(wiphy);
5131 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5163 lockdep_assert_wiphy(local->hw.wiphy);
5181 void ieee80211_color_change_finalize_work(struct wiphy *wiphy,
5191 lockdep_assert_wiphy(local->hw.wiphy);
5203 void ieee80211_color_collision_detection_work(struct wiphy *wiphy,
5231 wiphy_work_queue(sdata->local->hw.wiphy,
5261 if (wiphy_delayed_work_pending(sdata->local->hw.wiphy,
5271 wiphy_delayed_work_queue(sdata->local->hw.wiphy,
5280 ieee80211_color_change(struct wiphy *wiphy, struct net_device *dev,
5291 lockdep_assert_wiphy(local->hw.wiphy);
5296 link = wiphy_dereference(wiphy, sdata->link[link_id]);
5340 ieee80211_set_radar_background(struct wiphy *wiphy,
5343 struct ieee80211_local *local = wiphy_priv(wiphy);
5351 static int ieee80211_add_intf_link(struct wiphy *wiphy,
5357 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5365 static void ieee80211_del_intf_link(struct wiphy *wiphy,
5372 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5383 ieee80211_add_link_station(struct wiphy *wiphy, struct net_device *dev,
5387 struct ieee80211_local *local = wiphy_priv(wiphy);
5391 lockdep_assert_wiphy(local->hw.wiphy);
5425 ieee80211_mod_link_station(struct wiphy *wiphy, struct net_device *dev,
5429 struct ieee80211_local *local = wiphy_priv(wiphy);
5432 lockdep_assert_wiphy(local->hw.wiphy);
5446 ieee80211_del_link_station(struct wiphy *wiphy, struct net_device *dev,
5452 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5470 static int ieee80211_set_hw_timestamp(struct wiphy *wiphy,
5487 ieee80211_set_ttlm(struct wiphy *wiphy, struct net_device *dev,
5492 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5498 ieee80211_assoc_ml_reconf(struct wiphy *wiphy, struct net_device *dev,
5503 lockdep_assert_wiphy(sdata->local->hw.wiphy);
5509 ieee80211_set_epcs(struct wiphy *wiphy, struct net_device *dev, bool enable)