diff options
author | Avinash Patil <patila@marvell.com> | 2012-05-08 21:30:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 12:46:34 -0400 |
commit | cd8440dabcfb336f00f85206c7fe1047962bd403 (patch) | |
tree | 33884b5b32535f3563c29370988510ef6fdf2fdf /drivers | |
parent | d6bffe8bb520bc1ce3333d05ce67f36dab9a61aa (diff) |
mwifiex: multi-interface support for mwifiex
mwifiex supports STA and AP interfaces which use same phy.
Indicate this to cfg80211.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 38d51910d13c..453239389d26 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -20,6 +20,23 @@ | |||
20 | #include "cfg80211.h" | 20 | #include "cfg80211.h" |
21 | #include "main.h" | 21 | #include "main.h" |
22 | 22 | ||
23 | static const struct ieee80211_iface_limit mwifiex_ap_sta_limits[] = { | ||
24 | { | ||
25 | .max = 1, .types = BIT(NL80211_IFTYPE_STATION), | ||
26 | }, | ||
27 | { | ||
28 | .max = 1, .types = BIT(NL80211_IFTYPE_AP), | ||
29 | }, | ||
30 | }; | ||
31 | |||
32 | static const struct ieee80211_iface_combination mwifiex_iface_comb_ap_sta = { | ||
33 | .limits = mwifiex_ap_sta_limits, | ||
34 | .num_different_channels = 1, | ||
35 | .n_limits = ARRAY_SIZE(mwifiex_ap_sta_limits), | ||
36 | .max_interfaces = MWIFIEX_MAX_BSS_NUM, | ||
37 | .beacon_int_infra_match = true, | ||
38 | }; | ||
39 | |||
23 | /* | 40 | /* |
24 | * This function maps the nl802.11 channel type into driver channel type. | 41 | * This function maps the nl802.11 channel type into driver channel type. |
25 | * | 42 | * |
@@ -1505,6 +1522,9 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter) | |||
1505 | else | 1522 | else |
1506 | wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; | 1523 | wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; |
1507 | 1524 | ||
1525 | wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta; | ||
1526 | wiphy->n_iface_combinations = 1; | ||
1527 | |||
1508 | /* Initialize cipher suits */ | 1528 | /* Initialize cipher suits */ |
1509 | wiphy->cipher_suites = mwifiex_cipher_suites; | 1529 | wiphy->cipher_suites = mwifiex_cipher_suites; |
1510 | wiphy->n_cipher_suites = ARRAY_SIZE(mwifiex_cipher_suites); | 1530 | wiphy->n_cipher_suites = ARRAY_SIZE(mwifiex_cipher_suites); |