Lines Matching refs:wiphy
117 struct wiphy *wiphy = wil_to_wiphy(wil); in update_supported_bands() local
121 wiphy->bands[NL80211_BAND_60GHZ]->n_channels = in update_supported_bands()
125 wiphy->bands[NL80211_BAND_60GHZ]->edmg_cap.channels = in update_supported_bands()
127 wiphy->bands[NL80211_BAND_60GHZ]->edmg_cap.bw_config = in update_supported_bands()
205 static int wil_rf_sector_get_cfg(struct wiphy *wiphy,
208 static int wil_rf_sector_set_cfg(struct wiphy *wiphy,
211 static int wil_rf_sector_get_selected(struct wiphy *wiphy,
214 static int wil_rf_sector_set_selected(struct wiphy *wiphy,
535 static int wil_cfg80211_get_station(struct wiphy *wiphy, in wil_cfg80211_get_station() argument
540 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_get_station()
575 static int wil_cfg80211_dump_station(struct wiphy *wiphy, in wil_cfg80211_dump_station() argument
580 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_dump_station()
596 static int wil_cfg80211_start_p2p_device(struct wiphy *wiphy, in wil_cfg80211_start_p2p_device() argument
599 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_start_p2p_device()
606 static void wil_cfg80211_stop_p2p_device(struct wiphy *wiphy, in wil_cfg80211_stop_p2p_device() argument
609 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_stop_p2p_device()
639 return cfg80211_check_combinations(wil->wiphy, ¶ms); in wil_cfg80211_validate_add_iface()
665 ret = cfg80211_check_combinations(wil->wiphy, ¶ms); in wil_cfg80211_validate_change_iface()
671 wil_cfg80211_add_iface(struct wiphy *wiphy, const char *name, in wil_cfg80211_add_iface() argument
676 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_add_iface()
699 p2p_wdev->wiphy = wiphy; in wil_cfg80211_add_iface()
708 if (!wil->wiphy->n_iface_combinations) { in wil_cfg80211_add_iface()
774 static int wil_cfg80211_del_iface(struct wiphy *wiphy, in wil_cfg80211_del_iface() argument
777 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_del_iface()
790 wil_cfg80211_stop_p2p_device(wiphy, wdev); in wil_cfg80211_del_iface()
822 static int wil_cfg80211_change_iface(struct wiphy *wiphy, in wil_cfg80211_change_iface() argument
827 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_iface()
835 if (wiphy->n_iface_combinations) { in wil_cfg80211_change_iface()
889 static int wil_cfg80211_scan(struct wiphy *wiphy, in wil_cfg80211_scan() argument
892 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_scan()
1033 static void wil_cfg80211_abort_scan(struct wiphy *wiphy, in wil_cfg80211_abort_scan() argument
1036 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_abort_scan()
1128 static int wil_ft_connect(struct wiphy *wiphy, in wil_ft_connect() argument
1132 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_ft_connect()
1213 static int wil_cfg80211_connect(struct wiphy *wiphy, in wil_cfg80211_connect() argument
1217 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_connect()
1262 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, in wil_cfg80211_connect()
1312 rc = wil_ft_connect(wiphy, ndev, sme); in wil_cfg80211_connect()
1382 cfg80211_put_bss(wiphy, bss); in wil_cfg80211_connect()
1387 static int wil_cfg80211_disconnect(struct wiphy *wiphy, in wil_cfg80211_disconnect() argument
1392 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_disconnect()
1414 static int wil_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) in wil_cfg80211_set_wiphy_params() argument
1416 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_wiphy_params()
1426 rc = wmi_set_mgmt_retry(wil, wiphy->retry_short); in wil_cfg80211_set_wiphy_params()
1434 int wil_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, in wil_cfg80211_mgmt_tx() argument
1440 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_mgmt_tx()
1498 static int wil_cfg80211_set_channel(struct wiphy *wiphy, in wil_cfg80211_set_channel() argument
1501 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_channel()
1622 static int wil_cfg80211_add_key(struct wiphy *wiphy, in wil_cfg80211_add_key() argument
1630 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_add_key()
1698 static int wil_cfg80211_del_key(struct wiphy *wiphy, in wil_cfg80211_del_key() argument
1704 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_del_key()
1725 static int wil_cfg80211_set_default_key(struct wiphy *wiphy, in wil_cfg80211_set_default_key() argument
1730 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_default_key()
1736 static int wil_remain_on_channel(struct wiphy *wiphy, in wil_remain_on_channel() argument
1742 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_remain_on_channel()
1753 static int wil_cancel_remain_on_channel(struct wiphy *wiphy, in wil_cancel_remain_on_channel() argument
1757 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cancel_remain_on_channel()
1931 static int _wil_cfg80211_start_ap(struct wiphy *wiphy, in _wil_cfg80211_start_ap() argument
1938 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in _wil_cfg80211_start_ap()
2033 struct wiphy *wiphy = wil_to_wiphy(wil); in wil_cfg80211_ap_recovery() local
2058 rc = _wil_cfg80211_start_ap(wiphy, ndev, in wil_cfg80211_ap_recovery()
2075 rc = wil_cfg80211_add_key(wiphy, ndev, -1, vif->gtk_index, in wil_cfg80211_ap_recovery()
2083 static int wil_cfg80211_change_beacon(struct wiphy *wiphy, in wil_cfg80211_change_beacon() argument
2087 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_beacon()
2109 rc = _wil_cfg80211_start_ap(wiphy, ndev, vif->ssid, in wil_cfg80211_change_beacon()
2123 static int wil_cfg80211_start_ap(struct wiphy *wiphy, in wil_cfg80211_start_ap() argument
2128 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_start_ap()
2179 rc = _wil_cfg80211_start_ap(wiphy, ndev, in wil_cfg80211_start_ap()
2188 static int wil_cfg80211_stop_ap(struct wiphy *wiphy, in wil_cfg80211_stop_ap() argument
2192 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_stop_ap()
2227 static int wil_cfg80211_add_station(struct wiphy *wiphy, in wil_cfg80211_add_station() argument
2233 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_add_station()
2252 static int wil_cfg80211_del_station(struct wiphy *wiphy, in wil_cfg80211_del_station() argument
2257 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_del_station()
2269 static int wil_cfg80211_change_station(struct wiphy *wiphy, in wil_cfg80211_change_station() argument
2275 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_station()
2382 static int wil_cfg80211_probe_client(struct wiphy *wiphy, in wil_cfg80211_probe_client() argument
2386 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_probe_client()
2413 static int wil_cfg80211_change_bss(struct wiphy *wiphy, in wil_cfg80211_change_bss() argument
2417 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_bss()
2429 static int wil_cfg80211_set_power_mgmt(struct wiphy *wiphy, in wil_cfg80211_set_power_mgmt() argument
2433 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_power_mgmt()
2447 static int wil_cfg80211_suspend(struct wiphy *wiphy, in wil_cfg80211_suspend() argument
2450 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_suspend()
2477 static int wil_cfg80211_resume(struct wiphy *wiphy) in wil_cfg80211_resume() argument
2479 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_resume()
2487 wil_cfg80211_sched_scan_start(struct wiphy *wiphy, in wil_cfg80211_sched_scan_start() argument
2491 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_sched_scan_start()
2539 wil_cfg80211_sched_scan_stop(struct wiphy *wiphy, struct net_device *dev, in wil_cfg80211_sched_scan_stop() argument
2542 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_sched_scan_stop()
2559 wil_cfg80211_update_ft_ies(struct wiphy *wiphy, struct net_device *dev, in wil_cfg80211_update_ft_ies() argument
2562 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_update_ft_ies()
2606 static int wil_cfg80211_set_multicast_to_unicast(struct wiphy *wiphy, in wil_cfg80211_set_multicast_to_unicast() argument
2610 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_multicast_to_unicast()
2621 static int wil_cfg80211_set_cqm_rssi_config(struct wiphy *wiphy, in wil_cfg80211_set_cqm_rssi_config() argument
2625 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_cqm_rssi_config()
2678 static void wil_wiphy_init(struct wiphy *wiphy) in wil_wiphy_init() argument
2680 wiphy->max_scan_ssids = 1; in wil_wiphy_init()
2681 wiphy->max_scan_ie_len = WMI_MAX_IE_LEN; in wil_wiphy_init()
2682 wiphy->max_remain_on_channel_duration = WIL_MAX_ROC_DURATION_MS; in wil_wiphy_init()
2683 wiphy->max_num_pmkids = 0 /* TODO: */; in wil_wiphy_init()
2684 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in wil_wiphy_init()
2690 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL | in wil_wiphy_init()
2694 wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME; in wil_wiphy_init()
2695 dev_dbg(wiphy_dev(wiphy), "%s : flags = 0x%08x\n", in wil_wiphy_init()
2696 __func__, wiphy->flags); in wil_wiphy_init()
2697 wiphy->probe_resp_offload = in wil_wiphy_init()
2702 wiphy->bands[NL80211_BAND_60GHZ] = &wil_band_60ghz; in wil_wiphy_init()
2705 wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC; in wil_wiphy_init()
2707 wiphy->cipher_suites = wil_cipher_suites; in wil_wiphy_init()
2708 wiphy->n_cipher_suites = ARRAY_SIZE(wil_cipher_suites); in wil_wiphy_init()
2709 wiphy->mgmt_stypes = wil_mgmt_stypes; in wil_wiphy_init()
2710 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS; in wil_wiphy_init()
2712 wiphy->n_vendor_commands = ARRAY_SIZE(wil_nl80211_vendor_commands); in wil_wiphy_init()
2713 wiphy->vendor_commands = wil_nl80211_vendor_commands; in wil_wiphy_init()
2716 wiphy->wowlan = &wil_wowlan_support; in wil_wiphy_init()
2723 struct wiphy *wiphy = wil_to_wiphy(wil); in wil_cfg80211_iface_combinations_from_fw() local
2732 if (wiphy->iface_combinations) { in wil_cfg80211_iface_combinations_from_fw()
2787 wiphy->n_iface_combinations = n_combos; in wil_cfg80211_iface_combinations_from_fw()
2788 wiphy->iface_combinations = iface_combinations; in wil_cfg80211_iface_combinations_from_fw()
2794 struct wiphy *wiphy; in wil_cfg80211_init() local
2804 wiphy = wiphy_new(&wil_cfg80211_ops, sizeof(struct wil6210_priv)); in wil_cfg80211_init()
2805 if (!wiphy) in wil_cfg80211_init()
2808 set_wiphy_dev(wiphy, dev); in wil_cfg80211_init()
2809 wil_wiphy_init(wiphy); in wil_cfg80211_init()
2811 wil = wiphy_to_wil(wiphy); in wil_cfg80211_init()
2812 wil->wiphy = wiphy; in wil_cfg80211_init()
2815 ch = wiphy->bands[NL80211_BAND_60GHZ]->channels; in wil_cfg80211_init()
2823 struct wiphy *wiphy = wil_to_wiphy(wil); in wil_cfg80211_deinit() local
2827 if (!wiphy) in wil_cfg80211_deinit()
2830 kfree(wiphy->iface_combinations); in wil_cfg80211_deinit()
2831 wiphy->iface_combinations = NULL; in wil_cfg80211_deinit()
2833 wiphy_free(wiphy); in wil_cfg80211_deinit()
2868 static int wil_rf_sector_get_cfg(struct wiphy *wiphy, in wil_rf_sector_get_cfg() argument
2944 wiphy, 64 * WMI_MAX_RF_MODULES_NUM); in wil_rf_sector_get_cfg()
2989 static int wil_rf_sector_set_cfg(struct wiphy *wiphy, in wil_rf_sector_set_cfg() argument
3101 static int wil_rf_sector_get_selected(struct wiphy *wiphy, in wil_rf_sector_get_selected() argument
3171 wiphy, 64 * WMI_MAX_RF_MODULES_NUM); in wil_rf_sector_get_selected()
3216 static int wil_rf_sector_set_selected(struct wiphy *wiphy, in wil_rf_sector_set_selected() argument