aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-06-15 18:00:26 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-12 06:08:10 -0400
commit84efbb84cf76238faf26facf481c8675859bfaeb (patch)
tree3cc01b479a4c2db70b1b9ed59e1451d93acb5769 /include/net/cfg80211.h
parent71bbc9943883cffaf5d7a7728a4e4c50b3ac44d3 (diff)
cfg80211: use wireless_dev for interface management
In order to be able to create P2P Device wdevs, move the virtual interface management over to wireless_dev structures. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7eaaee7bb07d..aaaa3a255ed5 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1435,10 +1435,10 @@ struct cfg80211_gtk_rekey_data {
1435 * 1435 *
1436 * @add_virtual_intf: create a new virtual interface with the given name, 1436 * @add_virtual_intf: create a new virtual interface with the given name,
1437 * must set the struct wireless_dev's iftype. Beware: You must create 1437 * must set the struct wireless_dev's iftype. Beware: You must create
1438 * the new netdev in the wiphy's network namespace! Returns the netdev, 1438 * the new netdev in the wiphy's network namespace! Returns the struct
1439 * or an ERR_PTR. 1439 * wireless_dev, or an ERR_PTR.
1440 * 1440 *
1441 * @del_virtual_intf: remove the virtual interface determined by ifindex. 1441 * @del_virtual_intf: remove the virtual interface
1442 * 1442 *
1443 * @change_virtual_intf: change type/configuration of virtual interface, 1443 * @change_virtual_intf: change type/configuration of virtual interface,
1444 * keep the struct wireless_dev's iftype updated. 1444 * keep the struct wireless_dev's iftype updated.
@@ -1617,12 +1617,13 @@ struct cfg80211_ops {
1617 int (*resume)(struct wiphy *wiphy); 1617 int (*resume)(struct wiphy *wiphy);
1618 void (*set_wakeup)(struct wiphy *wiphy, bool enabled); 1618 void (*set_wakeup)(struct wiphy *wiphy, bool enabled);
1619 1619
1620 struct net_device * (*add_virtual_intf)(struct wiphy *wiphy, 1620 struct wireless_dev * (*add_virtual_intf)(struct wiphy *wiphy,
1621 char *name, 1621 char *name,
1622 enum nl80211_iftype type, 1622 enum nl80211_iftype type,
1623 u32 *flags, 1623 u32 *flags,
1624 struct vif_params *params); 1624 struct vif_params *params);
1625 int (*del_virtual_intf)(struct wiphy *wiphy, struct net_device *dev); 1625 int (*del_virtual_intf)(struct wiphy *wiphy,
1626 struct wireless_dev *wdev);
1626 int (*change_virtual_intf)(struct wiphy *wiphy, 1627 int (*change_virtual_intf)(struct wiphy *wiphy,
1627 struct net_device *dev, 1628 struct net_device *dev,
1628 enum nl80211_iftype type, u32 *flags, 1629 enum nl80211_iftype type, u32 *flags,