Lines Matching refs:wiphy

18 static struct wiphy *common_wiphy;
139 static void virt_wifi_inform_bss(struct wiphy *wiphy) in virt_wifi_inform_bss() argument
153 informed_bss = cfg80211_inform_bss(wiphy, &channel_5ghz, in virt_wifi_inform_bss()
159 cfg80211_put_bss(wiphy, informed_bss); in virt_wifi_inform_bss()
163 static int virt_wifi_scan(struct wiphy *wiphy, in virt_wifi_scan() argument
166 struct virt_wifi_wiphy_priv *priv = wiphy_priv(wiphy); in virt_wifi_scan()
168 wiphy_debug(wiphy, "scan\n"); in virt_wifi_scan()
185 struct wiphy *wiphy = priv_to_wiphy(priv); in virt_wifi_scan_result() local
188 virt_wifi_inform_bss(wiphy); in virt_wifi_scan_result()
196 static void virt_wifi_cancel_scan(struct wiphy *wiphy) in virt_wifi_cancel_scan() argument
198 struct virt_wifi_wiphy_priv *priv = wiphy_priv(wiphy); in virt_wifi_cancel_scan()
223 static int virt_wifi_connect(struct wiphy *wiphy, struct net_device *netdev, in virt_wifi_connect() argument
239 virt_wifi_inform_bss(wiphy); in virt_wifi_connect()
243 wiphy_debug(wiphy, "connect\n"); in virt_wifi_connect()
288 static int virt_wifi_disconnect(struct wiphy *wiphy, struct net_device *netdev, in virt_wifi_disconnect() argument
296 wiphy_debug(wiphy, "disconnect\n"); in virt_wifi_disconnect()
307 static int virt_wifi_get_station(struct wiphy *wiphy, struct net_device *dev, in virt_wifi_get_station() argument
312 wiphy_debug(wiphy, "get_station\n"); in virt_wifi_get_station()
332 static int virt_wifi_dump_station(struct wiphy *wiphy, struct net_device *dev, in virt_wifi_dump_station() argument
337 wiphy_debug(wiphy, "dump_station\n"); in virt_wifi_dump_station()
343 return virt_wifi_get_station(wiphy, dev, fake_router_bssid, sinfo); in virt_wifi_dump_station()
357 static struct wiphy *virt_wifi_make_wiphy(void) in virt_wifi_make_wiphy()
359 struct wiphy *wiphy; in virt_wifi_make_wiphy() local
363 wiphy = wiphy_new(&virt_wifi_cfg80211_ops, sizeof(*priv)); in virt_wifi_make_wiphy()
365 if (!wiphy) in virt_wifi_make_wiphy()
368 wiphy->max_scan_ssids = 4; in virt_wifi_make_wiphy()
369 wiphy->max_scan_ie_len = 1000; in virt_wifi_make_wiphy()
370 wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in virt_wifi_make_wiphy()
372 wiphy->bands[NL80211_BAND_2GHZ] = &band_2ghz; in virt_wifi_make_wiphy()
373 wiphy->bands[NL80211_BAND_5GHZ] = &band_5ghz; in virt_wifi_make_wiphy()
374 wiphy->bands[NL80211_BAND_60GHZ] = NULL; in virt_wifi_make_wiphy()
376 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in virt_wifi_make_wiphy()
378 priv = wiphy_priv(wiphy); in virt_wifi_make_wiphy()
383 err = wiphy_register(wiphy); in virt_wifi_make_wiphy()
385 wiphy_free(wiphy); in virt_wifi_make_wiphy()
389 return wiphy; in virt_wifi_make_wiphy()
393 static void virt_wifi_destroy_wiphy(struct wiphy *wiphy) in virt_wifi_destroy_wiphy() argument
397 WARN(!wiphy, "%s called with null wiphy", __func__); in virt_wifi_destroy_wiphy()
398 if (!wiphy) in virt_wifi_destroy_wiphy()
401 priv = wiphy_priv(wiphy); in virt_wifi_destroy_wiphy()
403 virt_wifi_cancel_scan(wiphy); in virt_wifi_destroy_wiphy()
405 if (wiphy->registered) in virt_wifi_destroy_wiphy()
406 wiphy_unregister(wiphy); in virt_wifi_destroy_wiphy()
407 wiphy_free(wiphy); in virt_wifi_destroy_wiphy()
445 virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy); in virt_wifi_net_device_stop()
551 dev->ieee80211_ptr->wiphy = common_wiphy; in virt_wifi_newlink()
593 virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy); in virt_wifi_dellink()