Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ieee80211_iface_combination Struct Reference

#include <cfg80211.h>

Data Fields

struct ieee80211_iface_limitlimits
 
u32 num_different_channels
 
u16 max_interfaces
 
u8 n_limits
 
bool beacon_int_infra_match
 

Detailed Description

struct ieee80211_iface_combination - possible interface combination : limits for the given interface types : number of limitations : can use up to this many different channels : maximum number of interfaces in total allowed in this group : In this combination, the beacon intervals between infrastructure and AP types must match. This is required only in special cases.

These examples can be expressed as follows:

Allow STA <= 1, AP <= 1, matching BI, channels = 1, 2 total:

struct ieee80211_iface_limit limits1[] = { { .max = 1, .types = BIT(NL80211_IFTYPE_STATION), }, { .max = 1, .types = BIT(NL80211_IFTYPE_AP}, }, }; struct ieee80211_iface_combination combination1 = { .limits = limits1, .n_limits = ARRAY_SIZE(limits1), .max_interfaces = 2, .beacon_int_infra_match = true, };

Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total:

struct ieee80211_iface_limit limits2[] = { { .max = 8, .types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_P2P_GO), }, }; struct ieee80211_iface_combination combination2 = { .limits = limits2, .n_limits = ARRAY_SIZE(limits2), .max_interfaces = 8, .num_different_channels = 1, };

Allow STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total. This allows for an infrastructure connection and three P2P connections.

struct ieee80211_iface_limit limits3[] = { { .max = 1, .types = BIT(NL80211_IFTYPE_STATION), }, { .max = 3, .types = BIT(NL80211_IFTYPE_P2P_GO) | BIT(NL80211_IFTYPE_P2P_CLIENT), }, }; struct ieee80211_iface_combination combination3 = { .limits = limits3, .n_limits = ARRAY_SIZE(limits3), .max_interfaces = 4, .num_different_channels = 2, };

Definition at line 2001 of file cfg80211.h.

Field Documentation

bool beacon_int_infra_match

Definition at line 2006 of file cfg80211.h.

Definition at line 2002 of file cfg80211.h.

u16 max_interfaces

Definition at line 2004 of file cfg80211.h.

u8 n_limits

Definition at line 2005 of file cfg80211.h.

u32 num_different_channels

Definition at line 2003 of file cfg80211.h.


The documentation for this struct was generated from the following file: