Lines Matching defs:wiphy

117 		struct wiphy *wiphy = priv->dev->ieee80211_ptr->wiphy;
119 if (!wiphy || !info)
124 channel = ieee80211_get_channel(wiphy, freq);
128 bss = cfg80211_inform_bss_frame(wiphy, channel, info->mgmt,
132 cfg80211_put_bss(wiphy, bss);
171 struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
193 cfg80211_ref_bss(wiphy, vif->bss);
233 static int set_channel(struct wiphy *wiphy,
236 struct wilc *wl = wiphy_priv(wiphy);
260 static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
299 static int connect(struct wiphy *wiphy, struct net_device *dev,
395 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, sme->ssid,
443 cfg80211_put_bss(wiphy, bss);
447 cfg80211_put_bss(wiphy, bss);
454 static int disconnect(struct wiphy *wiphy, struct net_device *dev,
542 static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
652 static int del_key(struct wiphy *wiphy, struct net_device *netdev,
689 static int get_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
716 static int set_default_key(struct wiphy *wiphy, struct net_device *netdev,
726 static int get_station(struct wiphy *wiphy, struct net_device *dev,
780 static int change_bss(struct wiphy *wiphy, struct net_device *dev,
786 static int set_wiphy_params(struct wiphy *wiphy, u32 changed)
790 struct wilc *wl = wiphy_priv(wiphy);
806 wiphy->retry_short);
808 cfg_param_val.short_retry_limit = wiphy->retry_short;
813 wiphy->retry_long);
815 cfg_param_val.long_retry_limit = wiphy->retry_long;
818 if (wiphy->frag_threshold > 255 &&
819 wiphy->frag_threshold < 7937) {
822 wiphy->frag_threshold);
824 cfg_param_val.frag_threshold = wiphy->frag_threshold;
833 if (wiphy->rts_threshold > 255) {
836 wiphy->rts_threshold);
838 cfg_param_val.rts_threshold = wiphy->rts_threshold;
854 static int set_pmksa(struct wiphy *wiphy, struct net_device *netdev,
888 static int del_pmksa(struct wiphy *wiphy, struct net_device *netdev,
920 static int flush_pmksa(struct wiphy *wiphy, struct net_device *netdev)
1082 static int remain_on_channel(struct wiphy *wiphy,
1122 static int cancel_remain_on_channel(struct wiphy *wiphy,
1135 static int mgmt_tx(struct wiphy *wiphy,
1219 static int mgmt_tx_cancel_wait(struct wiphy *wiphy,
1243 void wilc_update_mgmt_frame_registrations(struct wiphy *wiphy,
1247 struct wilc *wl = wiphy_priv(wiphy);
1270 static int set_cqm_rssi_config(struct wiphy *wiphy, struct net_device *dev,
1276 static int dump_station(struct wiphy *wiphy, struct net_device *dev,
1295 static int set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
1309 static int change_virtual_intf(struct wiphy *wiphy, struct net_device *dev,
1313 struct wilc *wl = wiphy_priv(wiphy);
1375 static int start_ap(struct wiphy *wiphy, struct net_device *dev,
1381 ret = set_channel(wiphy, &settings->chandef);
1391 static int change_beacon(struct wiphy *wiphy, struct net_device *dev,
1399 static int stop_ap(struct wiphy *wiphy, struct net_device *dev)
1414 static int add_station(struct wiphy *wiphy, struct net_device *dev,
1433 static int del_station(struct wiphy *wiphy, struct net_device *dev,
1456 static int change_station(struct wiphy *wiphy, struct net_device *dev,
1482 static struct wireless_dev *add_virtual_intf(struct wiphy *wiphy,
1488 struct wilc *wl = wiphy_priv(wiphy);
1552 static int del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
1554 struct wilc *wl = wiphy_priv(wiphy);
1561 cfg80211_stop_iface(wiphy, wdev, GFP_KERNEL);
1574 static int wilc_suspend(struct wiphy *wiphy, struct cfg80211_wowlan *wow)
1576 struct wilc *wl = wiphy_priv(wiphy);
1586 static int wilc_resume(struct wiphy *wiphy)
1591 static void wilc_set_wakeup(struct wiphy *wiphy, bool enabled)
1593 struct wilc *wl = wiphy_priv(wiphy);
1608 static int set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
1614 struct wilc *wl = wiphy_priv(wiphy);
1640 static int get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
1775 wiphy_unregister(wl->wiphy);
1776 wiphy_free(wl->wiphy);
1783 struct wiphy *wiphy;
1787 wiphy = wiphy_new(&wilc_cfg80211_ops, sizeof(*wl));
1788 if (!wiphy)
1791 wl = wiphy_priv(wiphy);
1806 wiphy->bands[NL80211_BAND_2GHZ] = &wl->band;
1808 wiphy->max_scan_ssids = WILC_MAX_NUM_PROBED_SSID;
1810 wiphy->wowlan = &wowlan_support;
1812 wiphy->max_num_pmkids = WILC_MAX_NUM_PMKIDS;
1813 wiphy->max_scan_ie_len = 1000;
1814 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
1817 wiphy->cipher_suites = wl->cipher_suites;
1818 wiphy->n_cipher_suites = ARRAY_SIZE(wilc_cipher_suites);
1819 wiphy->mgmt_stypes = wilc_wfi_cfg80211_mgmt_types;
1821 wiphy->max_remain_on_channel_duration = 500;
1822 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
1827 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
1829 set_wiphy_dev(wiphy, dev);
1830 wl->wiphy = wiphy;
1831 ret = wiphy_register(wiphy);
1833 wiphy_free(wiphy);