diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-12-18 19:31:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:37 -0500 |
commit | 51fb61e76d952e6bc2fbdd9f0d38425fbab1cf31 (patch) | |
tree | 09618b395aae1b91fbc8dec7ea9397a9654a9f0f /include | |
parent | 32bfd35d4b63bd63de4bb0d791ef049c3c868726 (diff) |
mac80211: move interface type to vif structure
Drivers that support mixed AP/STA operation may well need to
know the type of a virtual interface when iterating over them.
The easiest way to support that is to move the interface type
variable into the vif structure.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 24a8ad3f507..8a49c06dfd3 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -535,10 +535,12 @@ enum ieee80211_if_types { | |||
535 | * Data in this structure is continually present for driver | 535 | * Data in this structure is continually present for driver |
536 | * use during the life of a virtual interface. | 536 | * use during the life of a virtual interface. |
537 | * | 537 | * |
538 | * @type: type of this virtual interface | ||
538 | * @drv_priv: data area for driver use, will always be aligned to | 539 | * @drv_priv: data area for driver use, will always be aligned to |
539 | * sizeof(void *). | 540 | * sizeof(void *). |
540 | */ | 541 | */ |
541 | struct ieee80211_vif { | 542 | struct ieee80211_vif { |
543 | enum ieee80211_if_types type; | ||
542 | /* must be last */ | 544 | /* must be last */ |
543 | u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); | 545 | u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); |
544 | }; | 546 | }; |