diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-15 18:19:54 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-08-20 07:58:21 -0400 |
commit | 98104fdeda63d57631c9f89e90a7b83b58fcee40 (patch) | |
tree | 22d0f75c2f369fd02695ea8051ddc68e6f8b8390 /net/mac80211/iface.c | |
parent | cc74c0c7d6d623d0d3f13ef64895937edb7b3177 (diff) |
cfg80211: add P2P Device abstraction
In order to support using a different MAC address
for the P2P Device address we must first have a
P2P Device abstraction that can be assigned a MAC
address.
This abstraction will also be useful to support
offloading P2P operations to the device, e.g.
periodic listen for discoverability.
Currently, the driver is responsible for assigning
a MAC address to the P2P Device, but this could be
changed by allowing a MAC address to be given to
the NEW_INTERFACE command.
As it has no associated netdev, a P2P Device can
only be identified by its wdev identifier but the
previous patches allowed using the wdev identifier
in various APIs, e.g. remain-on-channel.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index fbab7a84ca21..366d9d3e84c4 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -449,6 +449,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up) | |||
449 | case NUM_NL80211_IFTYPES: | 449 | case NUM_NL80211_IFTYPES: |
450 | case NL80211_IFTYPE_P2P_CLIENT: | 450 | case NL80211_IFTYPE_P2P_CLIENT: |
451 | case NL80211_IFTYPE_P2P_GO: | 451 | case NL80211_IFTYPE_P2P_GO: |
452 | case NL80211_IFTYPE_P2P_DEVICE: | ||
452 | /* cannot happen */ | 453 | /* cannot happen */ |
453 | WARN_ON(1); | 454 | WARN_ON(1); |
454 | break; | 455 | break; |
@@ -1146,6 +1147,8 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, | |||
1146 | case NL80211_IFTYPE_WDS: | 1147 | case NL80211_IFTYPE_WDS: |
1147 | case NL80211_IFTYPE_AP_VLAN: | 1148 | case NL80211_IFTYPE_AP_VLAN: |
1148 | break; | 1149 | break; |
1150 | case NL80211_IFTYPE_P2P_DEVICE: | ||
1151 | /* not yet supported */ | ||
1149 | case NL80211_IFTYPE_UNSPECIFIED: | 1152 | case NL80211_IFTYPE_UNSPECIFIED: |
1150 | case NUM_NL80211_IFTYPES: | 1153 | case NUM_NL80211_IFTYPES: |
1151 | BUG(); | 1154 | BUG(); |