diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-09-23 20:22:54 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-25 15:57:44 -0400 |
commit | 55d2e9da744ba11eae900b4bfc2da72eace3c1e1 (patch) | |
tree | a66326a7c51db3390c31a6d9b770c7860116a79d /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | 3e4c4151e56ff367fb1487ea79134eea74104077 (diff) | |
download | linux-stable-55d2e9da744ba11eae900b4bfc2da72eace3c1e1.tar.gz linux-stable-55d2e9da744ba11eae900b4bfc2da72eace3c1e1.tar.bz2 linux-stable-55d2e9da744ba11eae900b4bfc2da72eace3c1e1.zip |
rt2x00: Replace open coded interface checking with interface combinations.
Mac80211 has formal infrastructure to specify which interface combinations
are supported. Make use of this facility in favor of open coding it
ourselves.
So far we only have to specify we can support multiple AP interfaces,
no other combinations are supported.
Inspired by an earlier patch from Paul Fertser.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 09bf01ce65f4..0751b35ef6dc 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h @@ -741,6 +741,14 @@ enum rt2x00_capability_flags { }; /* + * Interface combinations + */ +enum { + IF_COMB_AP = 0, + NUM_IF_COMB, +}; + +/* * rt2x00 device structure. */ struct rt2x00_dev { @@ -867,6 +875,12 @@ struct rt2x00_dev { unsigned int intf_beaconing; /* + * Interface combinations + */ + struct ieee80211_iface_limit if_limits_ap; + struct ieee80211_iface_combination if_combinations[NUM_IF_COMB]; + + /* * Link quality */ struct link link; |