Lines Matching refs:wiphy
174 static int wil_cfg80211_get_station(struct wiphy *wiphy, in wil_cfg80211_get_station() argument
178 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_get_station()
210 static int wil_cfg80211_dump_station(struct wiphy *wiphy, in wil_cfg80211_dump_station() argument
214 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_dump_station()
229 static int wil_cfg80211_change_iface(struct wiphy *wiphy, in wil_cfg80211_change_iface() argument
234 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_iface()
259 static int wil_cfg80211_scan(struct wiphy *wiphy, in wil_cfg80211_scan() argument
262 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_scan()
396 static int wil_cfg80211_connect(struct wiphy *wiphy, in wil_cfg80211_connect() argument
400 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_connect()
425 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, in wil_cfg80211_connect()
524 cfg80211_put_bss(wiphy, bss); in wil_cfg80211_connect()
529 static int wil_cfg80211_disconnect(struct wiphy *wiphy, in wil_cfg80211_disconnect() argument
534 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_disconnect()
543 int wil_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, in wil_cfg80211_mgmt_tx() argument
549 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_mgmt_tx()
581 static int wil_cfg80211_set_channel(struct wiphy *wiphy, in wil_cfg80211_set_channel() argument
584 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_set_channel()
625 static int wil_cfg80211_add_key(struct wiphy *wiphy, in wil_cfg80211_add_key() argument
631 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_add_key()
641 static int wil_cfg80211_del_key(struct wiphy *wiphy, in wil_cfg80211_del_key() argument
646 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_del_key()
656 static int wil_cfg80211_set_default_key(struct wiphy *wiphy, in wil_cfg80211_set_default_key() argument
664 static int wil_remain_on_channel(struct wiphy *wiphy, in wil_remain_on_channel() argument
670 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_remain_on_channel()
685 static int wil_cancel_remain_on_channel(struct wiphy *wiphy, in wil_cancel_remain_on_channel() argument
689 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cancel_remain_on_channel()
738 static int _wil_cfg80211_set_ies(struct wiphy *wiphy, in _wil_cfg80211_set_ies() argument
742 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in _wil_cfg80211_set_ies()
761 static int _wil_cfg80211_start_ap(struct wiphy *wiphy, in _wil_cfg80211_start_ap() argument
768 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in _wil_cfg80211_start_ap()
786 rc = _wil_cfg80211_set_ies(wiphy, bcon); in _wil_cfg80211_start_ap()
815 static int wil_cfg80211_change_beacon(struct wiphy *wiphy, in wil_cfg80211_change_beacon() argument
819 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_beacon()
843 rc = _wil_cfg80211_start_ap(wiphy, ndev, wdev->ssid, in wil_cfg80211_change_beacon()
849 rc = _wil_cfg80211_set_ies(wiphy, bcon); in wil_cfg80211_change_beacon()
855 static int wil_cfg80211_start_ap(struct wiphy *wiphy, in wil_cfg80211_start_ap() argument
860 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_start_ap()
908 rc = _wil_cfg80211_start_ap(wiphy, ndev, in wil_cfg80211_start_ap()
916 static int wil_cfg80211_stop_ap(struct wiphy *wiphy, in wil_cfg80211_stop_ap() argument
919 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_stop_ap()
937 static int wil_cfg80211_del_station(struct wiphy *wiphy, in wil_cfg80211_del_station() argument
941 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_del_station()
1014 static int wil_cfg80211_probe_client(struct wiphy *wiphy, in wil_cfg80211_probe_client() argument
1018 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_probe_client()
1043 static int wil_cfg80211_change_bss(struct wiphy *wiphy, in wil_cfg80211_change_bss() argument
1047 struct wil6210_priv *wil = wiphy_to_wil(wiphy); in wil_cfg80211_change_bss()
1081 static void wil_wiphy_init(struct wiphy *wiphy) in wil_wiphy_init() argument
1083 wiphy->max_scan_ssids = 1; in wil_wiphy_init()
1084 wiphy->max_scan_ie_len = WMI_MAX_IE_LEN; in wil_wiphy_init()
1085 wiphy->max_num_pmkids = 0 /* TODO: */; in wil_wiphy_init()
1086 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in wil_wiphy_init()
1092 wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME | in wil_wiphy_init()
1094 dev_dbg(wiphy_dev(wiphy), "%s : flags = 0x%08x\n", in wil_wiphy_init()
1095 __func__, wiphy->flags); in wil_wiphy_init()
1096 wiphy->probe_resp_offload = in wil_wiphy_init()
1101 wiphy->bands[IEEE80211_BAND_60GHZ] = &wil_band_60ghz; in wil_wiphy_init()
1104 wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC; in wil_wiphy_init()
1106 wiphy->cipher_suites = wil_cipher_suites; in wil_wiphy_init()
1107 wiphy->n_cipher_suites = ARRAY_SIZE(wil_cipher_suites); in wil_wiphy_init()
1108 wiphy->mgmt_stypes = wil_mgmt_stypes; in wil_wiphy_init()
1109 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS; in wil_wiphy_init()
1123 wdev->wiphy = wiphy_new(&wil_cfg80211_ops, in wil_cfg80211_init()
1125 if (!wdev->wiphy) { in wil_cfg80211_init()
1130 set_wiphy_dev(wdev->wiphy, dev); in wil_cfg80211_init()
1131 wil_wiphy_init(wdev->wiphy); in wil_cfg80211_init()
1133 rc = wiphy_register(wdev->wiphy); in wil_cfg80211_init()
1140 wiphy_free(wdev->wiphy); in wil_cfg80211_init()
1156 wiphy_unregister(wdev->wiphy); in wil_wdev_free()
1157 wiphy_free(wdev->wiphy); in wil_wdev_free()