Lines Matching refs:wiphy

440 static int lbs_cfg_set_monitor_channel(struct wiphy *wiphy,  in lbs_cfg_set_monitor_channel()  argument
443 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_monitor_channel()
460 static int lbs_cfg_set_mesh_channel(struct wiphy *wiphy, in lbs_cfg_set_mesh_channel() argument
464 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_mesh_channel()
640 struct wiphy *wiphy = priv->wdev->wiphy; in lbs_ret_scan() local
644 ieee80211_get_channel(wiphy, freq); in lbs_ret_scan()
652 bss = cfg80211_inform_bss(wiphy, channel, in lbs_ret_scan()
658 cfg80211_put_bss(wiphy, bss); in lbs_ret_scan()
807 static int lbs_cfg_scan(struct wiphy *wiphy, in lbs_cfg_scan() argument
810 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_scan()
1265 _new_connect_scan_req(struct wiphy *wiphy, struct cfg80211_connect_params *sme) in _new_connect_scan_req() argument
1268 int i, n_channels = ieee80211_get_num_supported_channels(wiphy); in _new_connect_scan_req()
1287 if (!wiphy->bands[band]) in _new_connect_scan_req()
1290 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in _new_connect_scan_req()
1292 if (wiphy->bands[band]->channels[j].flags & in _new_connect_scan_req()
1296 creq->channels[i] = &wiphy->bands[band]->channels[j]; in _new_connect_scan_req()
1316 static int lbs_cfg_connect(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_connect() argument
1319 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_connect()
1341 creq = _new_connect_scan_req(wiphy, sme); in lbs_cfg_connect()
1358 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, in lbs_cfg_connect()
1362 wiphy_err(wiphy, "assoc: bss %pM not in scan results\n", in lbs_cfg_connect()
1420 wiphy_err(wiphy, "unsupported cipher group 0x%x\n", in lbs_cfg_connect()
1428 wiphy_err(wiphy, "unsupported authtype 0x%x\n", sme->auth_type); in lbs_cfg_connect()
1439 cfg80211_put_bss(wiphy, bss); in lbs_cfg_connect()
1468 static int lbs_cfg_disconnect(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_disconnect() argument
1471 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_disconnect()
1484 static int lbs_cfg_set_default_key(struct wiphy *wiphy, in lbs_cfg_set_default_key() argument
1489 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_default_key()
1506 static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev, in lbs_cfg_add_key() argument
1510 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_add_key()
1560 wiphy_err(wiphy, "unhandled cipher 0x%x\n", params->cipher); in lbs_cfg_add_key()
1569 static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev, in lbs_cfg_del_key() argument
1579 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_del_key()
1609 static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_get_station() argument
1612 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_get_station()
1654 static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev, in lbs_change_intf() argument
1658 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_change_intf()
1753 bss = cfg80211_inform_bss(priv->wdev->wiphy, in lbs_join_post()
1762 cfg80211_put_bss(priv->wdev->wiphy, bss); in lbs_join_post()
1978 static int lbs_join_ibss(struct wiphy *wiphy, struct net_device *dev, in lbs_join_ibss() argument
1981 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_join_ibss()
2001 bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid, in lbs_join_ibss()
2007 cfg80211_put_bss(wiphy, bss); in lbs_join_ibss()
2018 static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev) in lbs_leave_ibss() argument
2020 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_leave_ibss()
2080 wdev->wiphy = wiphy_new(&lbs_cfg80211_ops, sizeof(struct lbs_private)); in lbs_cfg_alloc()
2081 if (!wdev->wiphy) { in lbs_cfg_alloc()
2119 regulatory_hint(priv->wdev->wiphy, regmap[i].cn); in lbs_cfg_set_regulatory_hint()
2126 static void lbs_reg_notifier(struct wiphy *wiphy, in lbs_reg_notifier() argument
2129 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_reg_notifier()
2154 wdev->wiphy->max_scan_ssids = 1; in lbs_cfg_register()
2155 wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in lbs_cfg_register()
2157 wdev->wiphy->interface_modes = in lbs_cfg_register()
2161 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR); in lbs_cfg_register()
2163 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MESH_POINT); in lbs_cfg_register()
2165 wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = &lbs_band_2ghz; in lbs_cfg_register()
2171 wdev->wiphy->cipher_suites = cipher_suites; in lbs_cfg_register()
2172 wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in lbs_cfg_register()
2173 wdev->wiphy->reg_notifier = lbs_reg_notifier; in lbs_cfg_register()
2175 ret = wiphy_register(wdev->wiphy); in lbs_cfg_register()
2210 wiphy_unregister(wdev->wiphy); in lbs_cfg_free()
2212 if (wdev->wiphy) in lbs_cfg_free()
2213 wiphy_free(wdev->wiphy); in lbs_cfg_free()