Lines Matching defs:wiphy
184 * Actual channel data comes from priv->wdev->wiphy->channels.
445 static int lbs_cfg_set_monitor_channel(struct wiphy *wiphy,
448 struct lbs_private *priv = wiphy_priv(wiphy);
460 static int lbs_cfg_set_mesh_channel(struct wiphy *wiphy,
464 struct lbs_private *priv = wiphy_priv(wiphy);
634 struct wiphy *wiphy = priv->wdev->wiphy;
638 ieee80211_get_channel(wiphy, freq);
646 bss = cfg80211_inform_bss(wiphy, channel,
652 cfg80211_put_bss(wiphy, bss);
796 static int lbs_cfg_scan(struct wiphy *wiphy,
799 struct lbs_private *priv = wiphy_priv(wiphy);
1225 _new_connect_scan_req(struct wiphy *wiphy, struct cfg80211_connect_params *sme)
1228 int i, n_channels = ieee80211_get_num_supported_channels(wiphy);
1247 if (!wiphy->bands[band])
1250 for (j = 0; j < wiphy->bands[band]->n_channels; j++) {
1252 if (wiphy->bands[band]->channels[j].flags &
1256 creq->channels[i] = &wiphy->bands[band]->channels[j];
1276 static int lbs_cfg_connect(struct wiphy *wiphy, struct net_device *dev,
1279 struct lbs_private *priv = wiphy_priv(wiphy);
1299 creq = _new_connect_scan_req(wiphy, sme);
1316 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid,
1320 wiphy_err(wiphy, "assoc: bss %pM not in scan results\n",
1378 wiphy_err(wiphy, "unsupported cipher group 0x%x\n",
1386 wiphy_err(wiphy, "unsupported authtype 0x%x\n", sme->auth_type);
1397 cfg80211_put_bss(wiphy, bss);
1425 static int lbs_cfg_disconnect(struct wiphy *wiphy, struct net_device *dev,
1428 struct lbs_private *priv = wiphy_priv(wiphy);
1439 static int lbs_cfg_set_default_key(struct wiphy *wiphy,
1444 struct lbs_private *priv = wiphy_priv(wiphy);
1459 static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev,
1463 struct lbs_private *priv = wiphy_priv(wiphy);
1511 wiphy_err(wiphy, "unhandled cipher 0x%x\n", params->cipher);
1520 static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
1528 struct lbs_private *priv = wiphy_priv(wiphy);
1558 static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,
1561 struct lbs_private *priv = wiphy_priv(wiphy);
1601 static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev,
1605 struct lbs_private *priv = wiphy_priv(wiphy);
1695 bss = cfg80211_inform_bss(priv->wdev->wiphy,
1704 cfg80211_put_bss(priv->wdev->wiphy, bss);
1917 static int lbs_join_ibss(struct wiphy *wiphy, struct net_device *dev,
1920 struct lbs_private *priv = wiphy_priv(wiphy);
1938 bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid,
1944 cfg80211_put_bss(wiphy, bss);
1954 static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
1956 struct lbs_private *priv = wiphy_priv(wiphy);
1975 static int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
1978 struct lbs_private *priv = wiphy_priv(wiphy);
2036 * memory and don't initialize the wiphy further. This is postponed until we
2049 wdev->wiphy = wiphy_new(&lbs_cfg80211_ops, sizeof(struct lbs_private));
2050 if (!wdev->wiphy) {
2051 dev_err(dev, "cannot allocate wiphy\n");
2084 regulatory_hint(priv->wdev->wiphy, regmap[i].cn);
2089 static void lbs_reg_notifier(struct wiphy *wiphy,
2092 struct lbs_private *priv = wiphy_priv(wiphy);
2101 * firmware capabities. So we can setup the wiphy according to our
2109 wdev->wiphy->max_scan_ssids = 1;
2110 wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
2112 wdev->wiphy->interface_modes =
2116 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
2118 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MESH_POINT);
2120 wdev->wiphy->bands[NL80211_BAND_2GHZ] = &lbs_band_2ghz;
2126 wdev->wiphy->cipher_suites = cipher_suites;
2127 wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
2128 wdev->wiphy->reg_notifier = lbs_reg_notifier;
2130 ret = wiphy_register(wdev->wiphy);
2132 pr_err("cannot register wiphy device\n");
2161 wiphy_unregister(wdev->wiphy);
2163 if (wdev->wiphy)
2164 wiphy_free(wdev->wiphy);