Lines Matching refs:wiphy
133 static void *mwifiex_cfg80211_get_adapter(struct wiphy *wiphy) in mwifiex_cfg80211_get_adapter() argument
135 return (void *) (*(unsigned long *) wiphy_priv(wiphy)); in mwifiex_cfg80211_get_adapter()
142 mwifiex_cfg80211_del_key(struct wiphy *wiphy, struct net_device *netdev, in mwifiex_cfg80211_del_key() argument
197 mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, in mwifiex_cfg80211_mgmt_tx() argument
261 mwifiex_cfg80211_mgmt_frame_register(struct wiphy *wiphy, in mwifiex_cfg80211_mgmt_frame_register() argument
286 mwifiex_cfg80211_remain_on_channel(struct wiphy *wiphy, in mwifiex_cfg80211_remain_on_channel() argument
328 mwifiex_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy, in mwifiex_cfg80211_cancel_remain_on_channel() argument
358 mwifiex_cfg80211_set_tx_power(struct wiphy *wiphy, in mwifiex_cfg80211_set_tx_power() argument
363 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_set_tx_power()
386 mwifiex_cfg80211_set_power_mgmt(struct wiphy *wiphy, in mwifiex_cfg80211_set_power_mgmt() argument
406 mwifiex_cfg80211_set_default_key(struct wiphy *wiphy, struct net_device *netdev, in mwifiex_cfg80211_set_default_key() argument
431 mwifiex_cfg80211_add_key(struct wiphy *wiphy, struct net_device *netdev, in mwifiex_cfg80211_add_key() argument
471 int mwifiex_send_domain_info_cmd_fw(struct wiphy *wiphy) in mwifiex_send_domain_info_cmd_fw() argument
481 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_send_domain_info_cmd_fw()
491 if (!wiphy->bands[band]) { in mwifiex_send_domain_info_cmd_fw()
497 sband = wiphy->bands[band]; in mwifiex_send_domain_info_cmd_fw()
562 static void mwifiex_reg_notifier(struct wiphy *wiphy, in mwifiex_reg_notifier() argument
565 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_reg_notifier()
591 mwifiex_send_domain_info_cmd_fw(wiphy); in mwifiex_reg_notifier()
638 mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) in mwifiex_cfg80211_set_wiphy_params() argument
640 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_set_wiphy_params()
662 bss_cfg->rts_threshold = wiphy->rts_threshold; in mwifiex_cfg80211_set_wiphy_params()
664 bss_cfg->frag_threshold = wiphy->frag_threshold; in mwifiex_cfg80211_set_wiphy_params()
666 bss_cfg->retry_limit = wiphy->retry_long; in mwifiex_cfg80211_set_wiphy_params()
689 wiphy->rts_threshold); in mwifiex_cfg80211_set_wiphy_params()
695 wiphy->frag_threshold); in mwifiex_cfg80211_set_wiphy_params()
1051 mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy, in mwifiex_cfg80211_change_virtual_intf() argument
1354 mwifiex_cfg80211_get_station(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_get_station() argument
1371 mwifiex_cfg80211_dump_station(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_dump_station() argument
1401 mwifiex_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_dump_survey() argument
1418 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey()
1435 survey->channel = ieee80211_get_channel(wiphy, in mwifiex_cfg80211_dump_survey()
1574 static int mwifiex_cfg80211_set_bitrate_mask(struct wiphy *wiphy, in mwifiex_cfg80211_set_bitrate_mask() argument
1626 static int mwifiex_cfg80211_set_cqm_rssi_config(struct wiphy *wiphy, in mwifiex_cfg80211_set_cqm_rssi_config() argument
1662 static int mwifiex_cfg80211_change_beacon(struct wiphy *wiphy, in mwifiex_cfg80211_change_beacon() argument
1696 mwifiex_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_del_station() argument
1732 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument
1734 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_set_antenna()
1776 if (!adapter->wiphy->bands[band]) in mwifiex_cfg80211_set_antenna()
1779 ht_info = &adapter->wiphy->bands[band]->ht_cap; in mwifiex_cfg80211_set_antenna()
1797 static int mwifiex_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *dev) in mwifiex_cfg80211_stop_ap() argument
1836 static int mwifiex_cfg80211_start_ap(struct wiphy *wiphy, in mwifiex_cfg80211_start_ap() argument
1910 !cfg80211_chandef_dfs_required(wiphy, ¶ms->chandef, in mwifiex_cfg80211_start_ap()
1948 mwifiex_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_disconnect() argument
1997 chan = __ieee80211_get_channel(priv->wdev.wiphy, in mwifiex_cfg80211_inform_ibss_bss()
2001 bss = cfg80211_inform_bss(priv->wdev.wiphy, chan, in mwifiex_cfg80211_inform_ibss_bss()
2006 cfg80211_put_bss(priv->wdev.wiphy, bss); in mwifiex_cfg80211_inform_ibss_bss()
2128 bss = cfg80211_get_bss(priv->wdev.wiphy, channel, in mwifiex_cfg80211_assoc()
2133 bss = cfg80211_get_bss(priv->wdev.wiphy, channel, in mwifiex_cfg80211_assoc()
2176 mwifiex_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_connect() argument
2322 mwifiex_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_join_ibss() argument
2367 mwifiex_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev) in mwifiex_cfg80211_leave_ibss() argument
2389 mwifiex_cfg80211_scan(struct wiphy *wiphy, in mwifiex_cfg80211_scan() argument
2585 struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy, in mwifiex_add_virtual_intf() argument
2592 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_add_virtual_intf()
2618 priv->wdev.wiphy = wiphy; in mwifiex_add_virtual_intf()
2648 priv->wdev.wiphy = wiphy; in mwifiex_add_virtual_intf()
2675 priv->wdev.wiphy = wiphy; in mwifiex_add_virtual_intf()
2721 mwifiex_setup_ht_caps(&wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap, priv); in mwifiex_add_virtual_intf()
2724 &wiphy->bands[IEEE80211_BAND_2GHZ]->vht_cap, priv); in mwifiex_add_virtual_intf()
2728 &wiphy->bands[IEEE80211_BAND_5GHZ]->ht_cap, priv); in mwifiex_add_virtual_intf()
2732 &wiphy->bands[IEEE80211_BAND_5GHZ]->vht_cap, priv); in mwifiex_add_virtual_intf()
2734 dev_net_set(dev, wiphy_net(wiphy)); in mwifiex_add_virtual_intf()
2737 memcpy(dev->dev_addr, wiphy->perm_addr, ETH_ALEN); in mwifiex_add_virtual_intf()
2738 SET_NETDEV_DEV(dev, wiphy_dev(wiphy)); in mwifiex_add_virtual_intf()
2829 int mwifiex_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev) in mwifiex_del_virtual_intf() argument
3105 static int mwifiex_cfg80211_suspend(struct wiphy *wiphy, in mwifiex_cfg80211_suspend() argument
3108 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_suspend()
3158 static int mwifiex_cfg80211_resume(struct wiphy *wiphy) in mwifiex_cfg80211_resume() argument
3163 static void mwifiex_cfg80211_set_wakeup(struct wiphy *wiphy, in mwifiex_cfg80211_set_wakeup() argument
3166 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_set_wakeup()
3252 static int mwifiex_cfg80211_set_coalesce(struct wiphy *wiphy, in mwifiex_cfg80211_set_coalesce() argument
3255 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); in mwifiex_cfg80211_set_coalesce()
3290 mwifiex_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_tdls_mgmt() argument
3299 if (!(wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS)) in mwifiex_cfg80211_tdls_mgmt()
3365 mwifiex_cfg80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_tdls_oper() argument
3370 if (!(wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS) || in mwifiex_cfg80211_tdls_oper()
3371 !(wiphy->flags & WIPHY_FLAG_TDLS_EXTERNAL_SETUP)) in mwifiex_cfg80211_tdls_oper()
3413 mwifiex_cfg80211_tdls_chan_switch(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_tdls_chan_switch() argument
3428 wiphy_err(wiphy, "%s: Invalid TDLS peer %pM\n", in mwifiex_cfg80211_tdls_chan_switch()
3435 wiphy_err(wiphy, "%pM do not support tdls cs\n", addr); in mwifiex_cfg80211_tdls_chan_switch()
3441 wiphy_err(wiphy, "channel switch is running, abort request\n"); in mwifiex_cfg80211_tdls_chan_switch()
3454 mwifiex_cfg80211_tdls_cancel_chan_switch(struct wiphy *wiphy, in mwifiex_cfg80211_tdls_cancel_chan_switch() argument
3467 wiphy_err(wiphy, "%s: Invalid TDLS peer %pM\n", in mwifiex_cfg80211_tdls_cancel_chan_switch()
3472 wiphy_err(wiphy, "tdls chan switch not initialize by %pM\n", in mwifiex_cfg80211_tdls_cancel_chan_switch()
3479 mwifiex_cfg80211_add_station(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_add_station() argument
3495 mwifiex_cfg80211_channel_switch(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_channel_switch() argument
3552 static int mwifiex_cfg80211_get_channel(struct wiphy *wiphy, in mwifiex_cfg80211_get_channel() argument
3573 chan = ieee80211_get_channel(wiphy, freq); in mwifiex_cfg80211_get_channel()
3592 mwifiex_cfg80211_start_radar_detection(struct wiphy *wiphy, in mwifiex_cfg80211_start_radar_detection() argument
3633 mwifiex_cfg80211_change_station(struct wiphy *wiphy, struct net_device *dev, in mwifiex_cfg80211_change_station() argument
3764 struct wiphy *wiphy; in mwifiex_register_cfg80211() local
3770 wiphy = wiphy_new(&mwifiex_cfg80211_ops, in mwifiex_register_cfg80211()
3772 if (!wiphy) { in mwifiex_register_cfg80211()
3777 wiphy->max_scan_ssids = MWIFIEX_MAX_SSID_LIST_LENGTH; in mwifiex_register_cfg80211()
3778 wiphy->max_scan_ie_len = MWIFIEX_MAX_VSIE_LEN; in mwifiex_register_cfg80211()
3779 wiphy->mgmt_stypes = mwifiex_mgmt_stypes; in mwifiex_register_cfg80211()
3780 wiphy->max_remain_on_channel_duration = 5000; in mwifiex_register_cfg80211()
3781 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in mwifiex_register_cfg80211()
3787 wiphy->bands[IEEE80211_BAND_2GHZ] = &mwifiex_band_2ghz; in mwifiex_register_cfg80211()
3789 wiphy->bands[IEEE80211_BAND_5GHZ] = &mwifiex_band_5ghz; in mwifiex_register_cfg80211()
3791 wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; in mwifiex_register_cfg80211()
3794 wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta_drcs; in mwifiex_register_cfg80211()
3796 wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta_vht; in mwifiex_register_cfg80211()
3798 wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta; in mwifiex_register_cfg80211()
3799 wiphy->n_iface_combinations = 1; in mwifiex_register_cfg80211()
3802 wiphy->cipher_suites = mwifiex_cipher_suites; in mwifiex_register_cfg80211()
3803 wiphy->n_cipher_suites = ARRAY_SIZE(mwifiex_cipher_suites); in mwifiex_register_cfg80211()
3805 ether_addr_copy(wiphy->perm_addr, adapter->perm_addr); in mwifiex_register_cfg80211()
3806 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in mwifiex_register_cfg80211()
3807 wiphy->flags |= WIPHY_FLAG_HAVE_AP_SME | in mwifiex_register_cfg80211()
3815 wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS | in mwifiex_register_cfg80211()
3819 wiphy->wowlan = &mwifiex_wowlan_support; in mwifiex_register_cfg80211()
3822 wiphy->coalesce = &mwifiex_coalesce_support; in mwifiex_register_cfg80211()
3824 wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS | in mwifiex_register_cfg80211()
3828 wiphy->available_antennas_tx = BIT(adapter->number_of_antenna) - 1; in mwifiex_register_cfg80211()
3829 wiphy->available_antennas_rx = BIT(adapter->number_of_antenna) - 1; in mwifiex_register_cfg80211()
3831 wiphy->features |= NL80211_FEATURE_HT_IBSS | in mwifiex_register_cfg80211()
3836 wiphy->features |= NL80211_FEATURE_TDLS_CHANNEL_SWITCH; in mwifiex_register_cfg80211()
3839 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS; in mwifiex_register_cfg80211()
3842 wiphy->bss_priv_size = sizeof(struct mwifiex_bss_priv); in mwifiex_register_cfg80211()
3844 wiphy->reg_notifier = mwifiex_reg_notifier; in mwifiex_register_cfg80211()
3847 wdev_priv = wiphy_priv(wiphy); in mwifiex_register_cfg80211()
3850 set_wiphy_dev(wiphy, priv->adapter->dev); in mwifiex_register_cfg80211()
3852 ret = wiphy_register(wiphy); in mwifiex_register_cfg80211()
3856 wiphy_free(wiphy); in mwifiex_register_cfg80211()
3863 regulatory_hint(wiphy, reg_alpha2); in mwifiex_register_cfg80211()
3874 wiphy->frag_threshold = thr; in mwifiex_register_cfg80211()
3877 wiphy->rts_threshold = thr; in mwifiex_register_cfg80211()
3880 wiphy->retry_short = (u8) retry; in mwifiex_register_cfg80211()
3883 wiphy->retry_long = (u8) retry; in mwifiex_register_cfg80211()
3885 adapter->wiphy = wiphy; in mwifiex_register_cfg80211()