aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h35
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 */
496enum 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 */
517struct ieee80211_vif { 490struct 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 {
523static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) 496static 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 */
552struct ieee80211_if_init_conf { 525struct 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};