Lines Matching refs:wiphy
209 static int qtnf_mac_init_single_band(struct wiphy *wiphy,
215 wiphy->bands[band] = kzalloc(sizeof(*wiphy->bands[band]), GFP_KERNEL);
216 if (!wiphy->bands[band])
219 wiphy->bands[band]->band = band;
221 ret = qtnf_cmd_band_info_get(mac, wiphy->bands[band]);
228 qtnf_band_init_rates(wiphy->bands[band]);
235 struct wiphy *wiphy = priv_to_wiphy(mac);
239 ret = qtnf_mac_init_single_band(wiphy, mac, NL80211_BAND_2GHZ);
245 ret = qtnf_mac_init_single_band(wiphy, mac, NL80211_BAND_5GHZ);
251 ret = qtnf_mac_init_single_band(wiphy, mac, NL80211_BAND_60GHZ);
340 vif->wdev.wiphy = priv_to_wiphy(mac);
399 struct wiphy *wiphy;
410 wiphy = qtnf_wiphy_allocate(bus, pdev);
411 if (!wiphy) {
417 mac = wiphy_priv(wiphy);
450 struct wiphy *wiphy = priv_to_wiphy(mac);
464 dev_net_set(dev, wiphy_net(wiphy));
479 SET_NETDEV_DEV(dev, wiphy_dev(wiphy));
493 struct wiphy *wiphy;
503 wiphy = priv_to_wiphy(mac);
511 qtnf_del_virtual_intf(wiphy, &vif->wdev);
518 wiphy_unregister(wiphy);
521 if (!wiphy->bands[band])
524 kfree((__force void *)wiphy->bands[band]->iftype_data);
525 wiphy->bands[band]->n_iftype_data = 0;
527 kfree(wiphy->bands[band]->channels);
528 wiphy->bands[band]->n_channels = 0;
530 kfree(wiphy->bands[band]);
531 wiphy->bands[band] = NULL;
540 wiphy_free(wiphy);
593 pr_err("MAC%u: wiphy registration failed\n", macid);