Lines Matching refs:wiphy

117 		struct wiphy *wiphy = priv->dev->ieee80211_ptr->wiphy;  in cfg_scan_result()  local
119 if (!wiphy || !info) in cfg_scan_result()
124 channel = ieee80211_get_channel(wiphy, freq); in cfg_scan_result()
128 bss = cfg80211_inform_bss_frame(wiphy, channel, info->mgmt, in cfg_scan_result()
132 cfg80211_put_bss(wiphy, bss); in cfg_scan_result()
171 struct wiphy *wiphy = dev->ieee80211_ptr->wiphy; in cfg_connect_result() local
193 cfg80211_ref_bss(wiphy, vif->bss); in cfg_connect_result()
233 static int set_channel(struct wiphy *wiphy, in set_channel() argument
236 struct wilc *wl = wiphy_priv(wiphy); in set_channel()
260 static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) in scan() argument
299 static int connect(struct wiphy *wiphy, struct net_device *dev, in connect() argument
395 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, sme->ssid, in connect()
443 cfg80211_put_bss(wiphy, bss); in connect()
447 cfg80211_put_bss(wiphy, bss); in connect()
454 static int disconnect(struct wiphy *wiphy, struct net_device *dev, in disconnect() argument
542 static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, in add_key() argument
652 static int del_key(struct wiphy *wiphy, struct net_device *netdev, in del_key() argument
689 static int get_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, in get_key() argument
716 static int set_default_key(struct wiphy *wiphy, struct net_device *netdev, in set_default_key() argument
726 static int get_station(struct wiphy *wiphy, struct net_device *dev, in get_station() argument
784 static int change_bss(struct wiphy *wiphy, struct net_device *dev, in change_bss() argument
790 static int set_wiphy_params(struct wiphy *wiphy, u32 changed) in set_wiphy_params() argument
794 struct wilc *wl = wiphy_priv(wiphy); in set_wiphy_params()
810 wiphy->retry_short); in set_wiphy_params()
812 cfg_param_val.short_retry_limit = wiphy->retry_short; in set_wiphy_params()
817 wiphy->retry_long); in set_wiphy_params()
819 cfg_param_val.long_retry_limit = wiphy->retry_long; in set_wiphy_params()
822 if (wiphy->frag_threshold > 255 && in set_wiphy_params()
823 wiphy->frag_threshold < 7937) { in set_wiphy_params()
826 wiphy->frag_threshold); in set_wiphy_params()
828 cfg_param_val.frag_threshold = wiphy->frag_threshold; in set_wiphy_params()
837 if (wiphy->rts_threshold > 255) { in set_wiphy_params()
840 wiphy->rts_threshold); in set_wiphy_params()
842 cfg_param_val.rts_threshold = wiphy->rts_threshold; in set_wiphy_params()
858 static int set_pmksa(struct wiphy *wiphy, struct net_device *netdev, in set_pmksa() argument
892 static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev, in del_pmksa() argument
924 static int flush_pmksa(struct wiphy *wiphy, struct net_device *netdev) in flush_pmksa() argument
1064 static int remain_on_channel(struct wiphy *wiphy, in remain_on_channel() argument
1104 static int cancel_remain_on_channel(struct wiphy *wiphy, in cancel_remain_on_channel() argument
1117 static int mgmt_tx(struct wiphy *wiphy, in mgmt_tx() argument
1201 static int mgmt_tx_cancel_wait(struct wiphy *wiphy, in mgmt_tx_cancel_wait() argument
1225 void wilc_update_mgmt_frame_registrations(struct wiphy *wiphy, in wilc_update_mgmt_frame_registrations() argument
1229 struct wilc *wl = wiphy_priv(wiphy); in wilc_update_mgmt_frame_registrations()
1252 static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev, in set_cqm_rssi_config() argument
1258 static int dump_station(struct wiphy *wiphy, struct net_device *dev, in dump_station() argument
1277 static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, in set_power_mgmt() argument
1291 static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev, in change_virtual_intf() argument
1295 struct wilc *wl = wiphy_priv(wiphy); in change_virtual_intf()
1357 static int start_ap(struct wiphy *wiphy, struct net_device *dev, in start_ap() argument
1363 ret = set_channel(wiphy, &settings->chandef); in start_ap()
1373 static int change_beacon(struct wiphy *wiphy, struct net_device *dev, in change_beacon() argument
1381 static int stop_ap(struct wiphy *wiphy, struct net_device *dev) in stop_ap() argument
1396 static int add_station(struct wiphy *wiphy, struct net_device *dev, in add_station() argument
1415 static int del_station(struct wiphy *wiphy, struct net_device *dev, in del_station() argument
1438 static int change_station(struct wiphy *wiphy, struct net_device *dev, in change_station() argument
1464 static struct wireless_dev *add_virtual_intf(struct wiphy *wiphy, in add_virtual_intf() argument
1470 struct wilc *wl = wiphy_priv(wiphy); in add_virtual_intf()
1534 static int del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev) in del_virtual_intf() argument
1536 struct wilc *wl = wiphy_priv(wiphy); in del_virtual_intf()
1543 cfg80211_stop_iface(wiphy, wdev, GFP_KERNEL); in del_virtual_intf()
1556 static int wilc_suspend(struct wiphy *wiphy, struct cfg80211_wowlan *wow) in wilc_suspend() argument
1558 struct wilc *wl = wiphy_priv(wiphy); in wilc_suspend()
1568 static int wilc_resume(struct wiphy *wiphy) in wilc_resume() argument
1573 static void wilc_set_wakeup(struct wiphy *wiphy, bool enabled) in wilc_set_wakeup() argument
1575 struct wilc *wl = wiphy_priv(wiphy); in wilc_set_wakeup()
1591 static int set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, in set_tx_power() argument
1597 struct wilc *wl = wiphy_priv(wiphy); in set_tx_power()
1623 static int get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, in get_tx_power() argument
1762 wiphy_unregister(wl->wiphy); in wilc_cfg80211_init()
1763 wiphy_free(wl->wiphy); in wilc_cfg80211_init()
1770 struct wiphy *wiphy; in wilc_create_wiphy() local
1774 wiphy = wiphy_new(&wilc_cfg80211_ops, sizeof(*wl)); in wilc_create_wiphy()
1775 if (!wiphy) in wilc_create_wiphy()
1778 wl = wiphy_priv(wiphy); in wilc_create_wiphy()
1793 wiphy->bands[NL80211_BAND_2GHZ] = &wl->band; in wilc_create_wiphy()
1795 wiphy->max_scan_ssids = WILC_MAX_NUM_PROBED_SSID; in wilc_create_wiphy()
1797 wiphy->wowlan = &wowlan_support; in wilc_create_wiphy()
1799 wiphy->max_num_pmkids = WILC_MAX_NUM_PMKIDS; in wilc_create_wiphy()
1800 wiphy->max_scan_ie_len = 1000; in wilc_create_wiphy()
1801 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in wilc_create_wiphy()
1804 wiphy->cipher_suites = wl->cipher_suites; in wilc_create_wiphy()
1805 wiphy->n_cipher_suites = ARRAY_SIZE(wilc_cipher_suites); in wilc_create_wiphy()
1806 wiphy->mgmt_stypes = wilc_wfi_cfg80211_mgmt_types; in wilc_create_wiphy()
1808 wiphy->max_remain_on_channel_duration = 500; in wilc_create_wiphy()
1809 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in wilc_create_wiphy()
1814 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in wilc_create_wiphy()
1816 set_wiphy_dev(wiphy, dev); in wilc_create_wiphy()
1817 wl->wiphy = wiphy; in wilc_create_wiphy()
1818 ret = wiphy_register(wiphy); in wilc_create_wiphy()
1820 wiphy_free(wiphy); in wilc_create_wiphy()