diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 18:01:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:23 -0400 |
commit | 05c914fe330fa8e1cc67870dc0d3809dfd96c107 (patch) | |
tree | df53bcab47335f3361c09478d6b1447b7d298536 /include | |
parent | 96dd22ac06b0dbfb069fdf530c72046a941e9694 (diff) |
mac80211: use nl80211 interface types
There's really no reason for mac80211 to be using its
own interface type defines. Use the nl80211 types and
simplify the configuration code a bit: there's no need
to translate them any more now.
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 | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index c81e579c17f3..7f5ea55e00f5 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -478,33 +478,6 @@ struct ieee80211_conf { | |||
478 | }; | 478 | }; |
479 | 479 | ||
480 | /** | 480 | /** |
481 | * enum ieee80211_if_types - types of 802.11 network interfaces | ||
482 | * | ||
483 | * @IEEE80211_IF_TYPE_INVALID: invalid interface type, not used | ||
484 | * by mac80211 itself | ||
485 | * @IEEE80211_IF_TYPE_AP: interface in AP mode. | ||
486 | * @IEEE80211_IF_TYPE_MGMT: special interface for communication with hostap | ||
487 | * daemon. Drivers should never see this type. | ||
488 | * @IEEE80211_IF_TYPE_STA: interface in STA (client) mode. | ||
489 | * @IEEE80211_IF_TYPE_IBSS: interface in IBSS (ad-hoc) mode. | ||
490 | * @IEEE80211_IF_TYPE_MNTR: interface in monitor (rfmon) mode. | ||
491 | * @IEEE80211_IF_TYPE_WDS: interface in WDS mode. | ||
492 | * @IEEE80211_IF_TYPE_VLAN: VLAN interface bound to an AP, drivers | ||
493 | * will never see this type. | ||
494 | * @IEEE80211_IF_TYPE_MESH_POINT: 802.11s mesh point | ||
495 | */ | ||
496 | enum ieee80211_if_types { | ||
497 | IEEE80211_IF_TYPE_INVALID, | ||
498 | IEEE80211_IF_TYPE_AP, | ||
499 | IEEE80211_IF_TYPE_STA, | ||
500 | IEEE80211_IF_TYPE_IBSS, | ||
501 | IEEE80211_IF_TYPE_MESH_POINT, | ||
502 | IEEE80211_IF_TYPE_MNTR, | ||
503 | IEEE80211_IF_TYPE_WDS, | ||
504 | IEEE80211_IF_TYPE_VLAN, | ||
505 | }; | ||
506 | |||
507 | /** | ||
508 | * struct ieee80211_vif - per-interface data | 481 | * struct ieee80211_vif - per-interface data |
509 | * | 482 | * |
510 | * Data in this structure is continually present for driver | 483 | * Data in this structure is continually present for driver |
@@ -515,7 +488,7 @@ enum ieee80211_if_types { | |||
515 | * sizeof(void *). | 488 | * sizeof(void *). |
516 | */ | 489 | */ |
517 | struct ieee80211_vif { | 490 | struct ieee80211_vif { |
518 | enum ieee80211_if_types type; | 491 | enum nl80211_iftype type; |
519 | /* must be last */ | 492 | /* must be last */ |
520 | u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); | 493 | u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); |
521 | }; | 494 | }; |
@@ -523,7 +496,7 @@ struct ieee80211_vif { | |||
523 | static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) | 496 | static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) |
524 | { | 497 | { |
525 | #ifdef CONFIG_MAC80211_MESH | 498 | #ifdef CONFIG_MAC80211_MESH |
526 | return vif->type == IEEE80211_IF_TYPE_MESH_POINT; | 499 | return vif->type == NL80211_IFTYPE_MESH_POINT; |
527 | #endif | 500 | #endif |
528 | return false; | 501 | return false; |
529 | } | 502 | } |
@@ -534,7 +507,7 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) | |||
534 | * @vif: pointer to a driver-use per-interface structure. The pointer | 507 | * @vif: pointer to a driver-use per-interface structure. The pointer |
535 | * itself is also used for various functions including | 508 | * itself is also used for various functions including |
536 | * ieee80211_beacon_get() and ieee80211_get_buffered_bc(). | 509 | * ieee80211_beacon_get() and ieee80211_get_buffered_bc(). |
537 | * @type: one of &enum ieee80211_if_types constants. Determines the type of | 510 | * @type: one of &enum nl80211_iftype constants. Determines the type of |
538 | * added/removed interface. | 511 | * added/removed interface. |
539 | * @mac_addr: pointer to MAC address of the interface. This pointer is valid | 512 | * @mac_addr: pointer to MAC address of the interface. This pointer is valid |
540 | * until the interface is removed (i.e. it cannot be used after | 513 | * until the interface is removed (i.e. it cannot be used after |
@@ -550,7 +523,7 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) | |||
550 | * in pure monitor mode. | 523 | * in pure monitor mode. |
551 | */ | 524 | */ |
552 | struct ieee80211_if_init_conf { | 525 | struct ieee80211_if_init_conf { |
553 | enum ieee80211_if_types type; | 526 | enum nl80211_iftype type; |
554 | struct ieee80211_vif *vif; | 527 | struct ieee80211_vif *vif; |
555 | void *mac_addr; | 528 | void *mac_addr; |
556 | }; | 529 | }; |