Lines Matching defs:wiphy

184  * Actual channel data comes from priv->wdev->wiphy->channels.
488 static int lbs_cfg_set_monitor_channel(struct wiphy *wiphy,
491 struct lbs_private *priv = wiphy_priv(wiphy);
503 static int lbs_cfg_set_mesh_channel(struct wiphy *wiphy,
507 struct lbs_private *priv = wiphy_priv(wiphy);
677 struct wiphy *wiphy = priv->wdev->wiphy;
681 ieee80211_get_channel(wiphy, freq);
689 bss = cfg80211_inform_bss(wiphy, channel,
695 cfg80211_put_bss(wiphy, bss);
845 static int lbs_cfg_scan(struct wiphy *wiphy,
848 struct lbs_private *priv = wiphy_priv(wiphy);
1272 _new_connect_scan_req(struct wiphy *wiphy, struct cfg80211_connect_params *sme)
1275 int i, n_channels = ieee80211_get_num_supported_channels(wiphy);
1294 if (!wiphy->bands[band])
1297 for (j = 0; j < wiphy->bands[band]->n_channels; j++) {
1299 if (wiphy->bands[band]->channels[j].flags &
1303 creq->channels[i] = &wiphy->bands[band]->channels[j];
1323 static int lbs_cfg_connect(struct wiphy *wiphy, struct net_device *dev,
1326 struct lbs_private *priv = wiphy_priv(wiphy);
1346 creq = _new_connect_scan_req(wiphy, sme);
1363 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid,
1367 wiphy_err(wiphy, "assoc: bss %pM not in scan results\n",
1425 wiphy_err(wiphy, "unsupported cipher group 0x%x\n",
1433 wiphy_err(wiphy, "unsupported authtype 0x%x\n", sme->auth_type);
1444 cfg80211_put_bss(wiphy, bss);
1472 static int lbs_cfg_disconnect(struct wiphy *wiphy, struct net_device *dev,
1475 struct lbs_private *priv = wiphy_priv(wiphy);
1486 static int lbs_cfg_set_default_key(struct wiphy *wiphy,
1491 struct lbs_private *priv = wiphy_priv(wiphy);
1506 static int lbs_cfg_add_key(struct wiphy *wiphy, struct net_device *netdev,
1510 struct lbs_private *priv = wiphy_priv(wiphy);
1558 wiphy_err(wiphy, "unhandled cipher 0x%x\n", params->cipher);
1567 static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
1576 struct lbs_private *priv = wiphy_priv(wiphy);
1606 static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,
1609 struct lbs_private *priv = wiphy_priv(wiphy);
1649 static int lbs_change_intf(struct wiphy *wiphy, struct net_device *dev,
1653 struct lbs_private *priv = wiphy_priv(wiphy);
1743 bss = cfg80211_inform_bss(priv->wdev->wiphy,
1752 cfg80211_put_bss(priv->wdev->wiphy, bss);
1965 static int lbs_join_ibss(struct wiphy *wiphy, struct net_device *dev,
1968 struct lbs_private *priv = wiphy_priv(wiphy);
1986 bss = cfg80211_get_bss(wiphy, params->chandef.chan, params->bssid,
1992 cfg80211_put_bss(wiphy, bss);
2002 static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
2004 struct lbs_private *priv = wiphy_priv(wiphy);
2023 static int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
2026 struct lbs_private *priv = wiphy_priv(wiphy);
2084 * memory and don't initialize the wiphy further. This is postponed until we
2097 wdev->wiphy = wiphy_new(&lbs_cfg80211_ops, sizeof(struct lbs_private));
2098 if (!wdev->wiphy) {
2099 dev_err(dev, "cannot allocate wiphy\n");
2132 regulatory_hint(priv->wdev->wiphy, regmap[i].cn);
2137 static void lbs_reg_notifier(struct wiphy *wiphy,
2140 struct lbs_private *priv = wiphy_priv(wiphy);
2149 * firmware capabities. So we can setup the wiphy according to our
2157 wdev->wiphy->max_scan_ssids = 1;
2158 wdev->wiphy->max_scan_ie_len = 256;
2159 wdev->wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
2161 wdev->wiphy->interface_modes =
2165 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
2167 wdev->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MESH_POINT);
2169 wdev->wiphy->bands[NL80211_BAND_2GHZ] = &lbs_band_2ghz;
2175 wdev->wiphy->cipher_suites = cipher_suites;
2176 wdev->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
2177 wdev->wiphy->reg_notifier = lbs_reg_notifier;
2179 ret = wiphy_register(wdev->wiphy);
2181 pr_err("cannot register wiphy device\n");
2210 wiphy_unregister(wdev->wiphy);
2212 if (wdev->wiphy)
2213 wiphy_free(wdev->wiphy);