'\" t .\" Title: struct ieee80211_iface_combination .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device registration .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT IEEE80211_IFA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device registration" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_ieee80211_iface_combination \- possible interface combination .SH "SYNOPSIS" .sp .nf struct ieee80211_iface_combination { const struct ieee80211_iface_limit * limits; u32 num_different_channels; u16 max_interfaces; u8 n_limits; bool beacon_int_infra_match; u8 radar_detect_widths; u8 radar_detect_regions; }; .fi .SH "MEMBERS" .PP limits .RS 4 limits for the given interface types .RE .PP num_different_channels .RS 4 can use up to this many different channels .RE .PP max_interfaces .RS 4 maximum number of interfaces in total allowed in this group .RE .PP n_limits .RS 4 number of limitations .RE .PP beacon_int_infra_match .RS 4 In this combination, the beacon intervals between infrastructure and AP types must match\&. This is required only in special cases\&. .RE .PP radar_detect_widths .RS 4 bitmap of channel widths supported for radar detection .RE .PP radar_detect_regions .RS 4 bitmap of regions supported for radar detection .RE .SH "DESCRIPTION" .PP With this structure the driver can describe which interface combinations it supports concurrently\&. .SH "EXAMPLES" .sp .if n \{\ .RS 4 .\} .nf 1\&. 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, }; 2\&. 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, }; 3\&. 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, }; .fi .if n \{\ .RE .\} .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br