Lines Matching refs:dev
24 int cfg80211_wext_giwname(struct net_device *dev,
28 struct wireless_dev *wdev = dev->ieee80211_ptr;
68 int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info,
71 struct wireless_dev *wdev = dev->ieee80211_ptr;
100 return cfg80211_change_iface(rdev, dev, type, NULL, &vifparams);
104 int cfg80211_wext_giwmode(struct net_device *dev, struct iw_request_info *info,
107 struct wireless_dev *wdev = dev->ieee80211_ptr;
140 int cfg80211_wext_giwrange(struct net_device *dev,
144 struct wireless_dev *wdev = dev->ieee80211_ptr;
256 * @dev: the net device
284 int cfg80211_wext_siwrts(struct net_device *dev,
288 struct wireless_dev *wdev = dev->ieee80211_ptr;
308 int cfg80211_wext_giwrts(struct net_device *dev,
312 struct wireless_dev *wdev = dev->ieee80211_ptr;
322 int cfg80211_wext_siwfrag(struct net_device *dev,
326 struct wireless_dev *wdev = dev->ieee80211_ptr;
348 int cfg80211_wext_giwfrag(struct net_device *dev,
352 struct wireless_dev *wdev = dev->ieee80211_ptr;
362 static int cfg80211_wext_siwretry(struct net_device *dev,
366 struct wireless_dev *wdev = dev->ieee80211_ptr;
402 int cfg80211_wext_giwretry(struct net_device *dev,
406 struct wireless_dev *wdev = dev->ieee80211_ptr;
433 struct net_device *dev, bool pairwise,
437 struct wireless_dev *wdev = dev->ieee80211_ptr;
487 err = rdev_del_key(rdev, dev, idx, pairwise,
524 err = rdev_add_key(rdev, dev, idx, pairwise, addr, params);
550 err = rdev_set_default_key(rdev, dev, idx, true, true);
563 err = rdev_set_default_mgmt_key(rdev, dev, idx);
573 struct net_device *dev, bool pairwise,
579 wdev_lock(dev->ieee80211_ptr);
580 err = __cfg80211_set_encryption(rdev, dev, pairwise, addr,
582 wdev_unlock(dev->ieee80211_ptr);
587 static int cfg80211_wext_siwencode(struct net_device *dev,
591 struct wireless_dev *wdev = dev->ieee80211_ptr;
624 err = rdev_set_default_key(rdev, dev, idx, true,
642 return cfg80211_set_encryption(rdev, dev, false, NULL, remove,
647 static int cfg80211_wext_siwencodeext(struct net_device *dev,
651 struct wireless_dev *wdev = dev->ieee80211_ptr;
731 rdev, dev,
738 static int cfg80211_wext_giwencode(struct net_device *dev,
742 struct wireless_dev *wdev = dev->ieee80211_ptr;
775 static int cfg80211_wext_siwfreq(struct net_device *dev,
779 struct wireless_dev *wdev = dev->ieee80211_ptr;
788 return cfg80211_mgd_wext_siwfreq(dev, info, wextfreq, extra);
790 return cfg80211_ibss_wext_siwfreq(dev, info, wextfreq, extra);
818 static int cfg80211_wext_giwfreq(struct net_device *dev,
822 struct wireless_dev *wdev = dev->ieee80211_ptr;
829 return cfg80211_mgd_wext_giwfreq(dev, info, freq, extra);
831 return cfg80211_ibss_wext_giwfreq(dev, info, freq, extra);
847 static int cfg80211_wext_siwtxpower(struct net_device *dev,
851 struct wireless_dev *wdev = dev->ieee80211_ptr;
899 static int cfg80211_wext_giwtxpower(struct net_device *dev,
903 struct wireless_dev *wdev = dev->ieee80211_ptr;
1077 static int cfg80211_wext_siwauth(struct net_device *dev,
1081 struct wireless_dev *wdev = dev->ieee80211_ptr;
1110 static int cfg80211_wext_giwauth(struct net_device *dev,
1119 static int cfg80211_wext_siwpower(struct net_device *dev,
1123 struct wireless_dev *wdev = dev->ieee80211_ptr;
1155 err = rdev_set_power_mgmt(rdev, dev, ps, timeout);
1166 static int cfg80211_wext_giwpower(struct net_device *dev,
1170 struct wireless_dev *wdev = dev->ieee80211_ptr;
1177 static int cfg80211_wds_wext_siwap(struct net_device *dev,
1181 struct wireless_dev *wdev = dev->ieee80211_ptr;
1191 if (netif_running(dev))
1197 err = rdev_set_wds_peer(rdev, dev, (u8 *)&addr->sa_data);
1206 static int cfg80211_wds_wext_giwap(struct net_device *dev,
1210 struct wireless_dev *wdev = dev->ieee80211_ptr;
1221 static int cfg80211_wext_siwrate(struct net_device *dev,
1225 struct wireless_dev *wdev = dev->ieee80211_ptr;
1269 return rdev_set_bitrate_mask(rdev, dev, NULL, &mask);
1272 static int cfg80211_wext_giwrate(struct net_device *dev,
1276 struct wireless_dev *wdev = dev->ieee80211_ptr;
1299 err = rdev_get_station(rdev, dev, addr, &sinfo);
1312 static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev)
1314 struct wireless_dev *wdev = dev->ieee80211_ptr;
1321 if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION)
1336 if (rdev_get_station(rdev, dev, bssid, &sinfo))
1378 static int cfg80211_wext_siwap(struct net_device *dev,
1382 struct wireless_dev *wdev = dev->ieee80211_ptr;
1386 return cfg80211_ibss_wext_siwap(dev, info, ap_addr, extra);
1388 return cfg80211_mgd_wext_siwap(dev, info, ap_addr, extra);
1390 return cfg80211_wds_wext_siwap(dev, info, ap_addr, extra);
1396 static int cfg80211_wext_giwap(struct net_device *dev,
1400 struct wireless_dev *wdev = dev->ieee80211_ptr;
1404 return cfg80211_ibss_wext_giwap(dev, info, ap_addr, extra);
1406 return cfg80211_mgd_wext_giwap(dev, info, ap_addr, extra);
1408 return cfg80211_wds_wext_giwap(dev, info, ap_addr, extra);
1414 static int cfg80211_wext_siwessid(struct net_device *dev,
1418 struct wireless_dev *wdev = dev->ieee80211_ptr;
1422 return cfg80211_ibss_wext_siwessid(dev, info, data, ssid);
1424 return cfg80211_mgd_wext_siwessid(dev, info, data, ssid);
1430 static int cfg80211_wext_giwessid(struct net_device *dev,
1434 struct wireless_dev *wdev = dev->ieee80211_ptr;
1441 return cfg80211_ibss_wext_giwessid(dev, info, data, ssid);
1443 return cfg80211_mgd_wext_giwessid(dev, info, data, ssid);
1449 static int cfg80211_wext_siwpmksa(struct net_device *dev,
1453 struct wireless_dev *wdev = dev->ieee80211_ptr;
1471 return rdev_set_pmksa(rdev, dev, &cfg_pmksa);
1477 return rdev_del_pmksa(rdev, dev, &cfg_pmksa);
1483 return rdev_flush_pmksa(rdev, dev);