diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-09-16 08:58:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-16 15:46:07 -0400 |
commit | 2ca27bcff7127da1aa7dd39cd2a6f7cb187e327f (patch) | |
tree | fae1b81c56763a53d432310b8fcbb81b9bb48d7e /net/mac80211/driver-ops.h | |
parent | 074ac8df9f93f2a35a356d92fd7f16cd846f0a03 (diff) |
mac80211: add p2p device type support
When a driver advertises p2p device support,
mac80211 will handle it, but internally it will
rewrite the interface type to STA/AP rather than
P2P-STA/GO since otherwise a lot of paths need
to be touched that are otherwise identical. A
p2p boolean tells drivers whether or not a given
interface will be used for p2p or not.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 6064b7b09e01..16983825f8e8 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -56,14 +56,14 @@ static inline int drv_add_interface(struct ieee80211_local *local, | |||
56 | 56 | ||
57 | static inline int drv_change_interface(struct ieee80211_local *local, | 57 | static inline int drv_change_interface(struct ieee80211_local *local, |
58 | struct ieee80211_sub_if_data *sdata, | 58 | struct ieee80211_sub_if_data *sdata, |
59 | enum nl80211_iftype type) | 59 | enum nl80211_iftype type, bool p2p) |
60 | { | 60 | { |
61 | int ret; | 61 | int ret; |
62 | 62 | ||
63 | might_sleep(); | 63 | might_sleep(); |
64 | 64 | ||
65 | trace_drv_change_interface(local, sdata, type); | 65 | trace_drv_change_interface(local, sdata, type, p2p); |
66 | ret = local->ops->change_interface(&local->hw, &sdata->vif, type); | 66 | ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); |
67 | trace_drv_return_int(local, ret); | 67 | trace_drv_return_int(local, ret); |
68 | return ret; | 68 | return ret; |
69 | } | 69 | } |