diff options
author | Luciano Coelho <luciano.coelho@intel.com> | 2014-02-20 09:45:34 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-21 03:27:34 -0500 |
commit | b80edbc177800623dd07240e19e69c7b16ee5cba (patch) | |
tree | 5f4912322bda701498fc54e7533ad7aea5a19e21 | |
parent | 0fcf8ac5acb60839ada695b069362761f1f2da71 (diff) |
cfg80211: docbook: add interface combinations documentation
Add the ieee80211_iface_limit and the ieee80211_iface_combination
structures to docbook. Reformat the examples of combinations
slightly, so it looks a bit better on docbook.
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | Documentation/DocBook/80211.tmpl | 2 | ||||
-rw-r--r-- | include/net/cfg80211.h | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Documentation/DocBook/80211.tmpl b/Documentation/DocBook/80211.tmpl index 46ad6faee9ab..044b76436e83 100644 --- a/Documentation/DocBook/80211.tmpl +++ b/Documentation/DocBook/80211.tmpl | |||
@@ -98,6 +98,8 @@ | |||
98 | !Finclude/net/cfg80211.h priv_to_wiphy | 98 | !Finclude/net/cfg80211.h priv_to_wiphy |
99 | !Finclude/net/cfg80211.h set_wiphy_dev | 99 | !Finclude/net/cfg80211.h set_wiphy_dev |
100 | !Finclude/net/cfg80211.h wdev_priv | 100 | !Finclude/net/cfg80211.h wdev_priv |
101 | !Finclude/net/cfg80211.h ieee80211_iface_limit | ||
102 | !Finclude/net/cfg80211.h ieee80211_iface_combination | ||
101 | </chapter> | 103 | </chapter> |
102 | <chapter> | 104 | <chapter> |
103 | <title>Actions and configuration</title> | 105 | <title>Actions and configuration</title> |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index b36a822b9028..8c9ba44fb7cf 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -2616,9 +2616,12 @@ struct ieee80211_iface_limit { | |||
2616 | * only in special cases. | 2616 | * only in special cases. |
2617 | * @radar_detect_widths: bitmap of channel widths supported for radar detection | 2617 | * @radar_detect_widths: bitmap of channel widths supported for radar detection |
2618 | * | 2618 | * |
2619 | * These examples can be expressed as follows: | 2619 | * With this structure the driver can describe which interface |
2620 | * combinations it supports concurrently. | ||
2620 | * | 2621 | * |
2621 | * Allow #STA <= 1, #AP <= 1, matching BI, channels = 1, 2 total: | 2622 | * Examples: |
2623 | * | ||
2624 | * 1. Allow #STA <= 1, #AP <= 1, matching BI, channels = 1, 2 total: | ||
2622 | * | 2625 | * |
2623 | * struct ieee80211_iface_limit limits1[] = { | 2626 | * struct ieee80211_iface_limit limits1[] = { |
2624 | * { .max = 1, .types = BIT(NL80211_IFTYPE_STATION), }, | 2627 | * { .max = 1, .types = BIT(NL80211_IFTYPE_STATION), }, |
@@ -2632,7 +2635,7 @@ struct ieee80211_iface_limit { | |||
2632 | * }; | 2635 | * }; |
2633 | * | 2636 | * |
2634 | * | 2637 | * |
2635 | * Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total: | 2638 | * 2. Allow #{AP, P2P-GO} <= 8, channels = 1, 8 total: |
2636 | * | 2639 | * |
2637 | * struct ieee80211_iface_limit limits2[] = { | 2640 | * struct ieee80211_iface_limit limits2[] = { |
2638 | * { .max = 8, .types = BIT(NL80211_IFTYPE_AP) | | 2641 | * { .max = 8, .types = BIT(NL80211_IFTYPE_AP) | |
@@ -2646,7 +2649,8 @@ struct ieee80211_iface_limit { | |||
2646 | * }; | 2649 | * }; |
2647 | * | 2650 | * |
2648 | * | 2651 | * |
2649 | * Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total. | 2652 | * 3. Allow #STA <= 1, #{P2P-client,P2P-GO} <= 3 on two channels, 4 total. |
2653 | * | ||
2650 | * This allows for an infrastructure connection and three P2P connections. | 2654 | * This allows for an infrastructure connection and three P2P connections. |
2651 | * | 2655 | * |
2652 | * struct ieee80211_iface_limit limits3[] = { | 2656 | * struct ieee80211_iface_limit limits3[] = { |