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()
1264 _new_connect_scan_req(struct wiphy *wiphy, struct cfg80211_connect_params *sme) in _new_connect_scan_req() argument
1267 int i, n_channels = ieee80211_get_num_supported_channels(wiphy); in _new_connect_scan_req()
1286 if (!wiphy->bands[band]) in _new_connect_scan_req()
1289 for (j = 0; j < wiphy->bands[band]->n_channels; j++) { in _new_connect_scan_req()
1291 if (wiphy->bands[band]->channels[j].flags & in _new_connect_scan_req()
1295 creq->channels[i] = &wiphy->bands[band]->channels[j]; in _new_connect_scan_req()
1315 static int lbs_cfg_connect(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_connect() argument
1318 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_connect()
1340 creq = _new_connect_scan_req(wiphy, sme); in lbs_cfg_connect()
1357 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, in lbs_cfg_connect()
1361 wiphy_err(wiphy, "assoc: bss %pM not in scan results\n", in lbs_cfg_connect()
1419 wiphy_err(wiphy, "unsupported cipher group 0x%x\n", in lbs_cfg_connect()
1427 wiphy_err(wiphy, "unsupported authtype 0x%x\n", sme->auth_type); in lbs_cfg_connect()
1438 cfg80211_put_bss(wiphy, bss); in lbs_cfg_connect()
1467 static int lbs_cfg_disconnect(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_disconnect() argument
1470 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_disconnect()
1483 static int lbs_cfg_set_default_key(struct wiphy *wiphy, in lbs_cfg_set_default_key() argument
1488 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_set_default_key()
1505 static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev, in lbs_cfg_add_key() argument
1509 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_add_key()
1559 wiphy_err(wiphy, "unhandled cipher 0x%x\n", params->cipher); in lbs_cfg_add_key()
1568 static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev, in lbs_cfg_del_key() argument
1578 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_del_key()
1608 static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, in lbs_cfg_get_station() argument
1611 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_cfg_get_station()
1653 static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev, in lbs_change_intf() argument
1657 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_change_intf()
1752 bss = cfg80211_inform_bss(priv->wdev->wiphy, in lbs_join_post()
1761 cfg80211_put_bss(priv->wdev->wiphy, bss); in lbs_join_post()
1977 static int lbs_join_ibss(struct wiphy *wiphy, struct net_device *dev, in lbs_join_ibss() argument
1980 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_join_ibss()
2000 bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid, in lbs_join_ibss()
2006 cfg80211_put_bss(wiphy, bss); in lbs_join_ibss()
2017 static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev) in lbs_leave_ibss() argument
2019 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_leave_ibss()
2079 wdev->wiphy = wiphy_new(&lbs_cfg80211_ops, sizeof(struct lbs_private)); in lbs_cfg_alloc()
2080 if (!wdev->wiphy) { in lbs_cfg_alloc()
2118 regulatory_hint(priv->wdev->wiphy, regmap[i].cn); in lbs_cfg_set_regulatory_hint()
2125 static void lbs_reg_notifier(struct wiphy *wiphy, in lbs_reg_notifier() argument
2128 struct lbs_private *priv = wiphy_priv(wiphy); in lbs_reg_notifier()
2153 wdev->wiphy->max_scan_ssids = 1; in lbs_cfg_register()
2154 wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in lbs_cfg_register()
2156 wdev->wiphy->interface_modes = in lbs_cfg_register()
2160 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR); in lbs_cfg_register()
2162 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MESH_POINT); in lbs_cfg_register()
2164 wdev->wiphy->bands[IEEE80211_BAND_2GHZ] = &lbs_band_2ghz; in lbs_cfg_register()
2170 wdev->wiphy->cipher_suites = cipher_suites; in lbs_cfg_register()
2171 wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in lbs_cfg_register()
2172 wdev->wiphy->reg_notifier = lbs_reg_notifier; in lbs_cfg_register()
2174 ret = wiphy_register(wdev->wiphy); in lbs_cfg_register()
2209 wiphy_unregister(wdev->wiphy); in lbs_cfg_free()
2211 if (wdev->wiphy) in lbs_cfg_free()
2212 wiphy_free(wdev->wiphy); in lbs_cfg_free()