diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2013-01-25 05:49:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-30 15:06:49 -0500 |
commit | 2acdaa7a578cf43566950a6cfb70848ff6607553 (patch) | |
tree | 833ee0445222ac8954df7ecb425c1d04ba55ca49 /drivers/net/wireless/mwl8k.c | |
parent | a246ac38cdd886bf053f67d5275a20e1a99ff586 (diff) |
mwl8k: Announce simultaneous AP-STA support on AP fw
Specify the STA support in iface_limit and
in wihpy->interface_modes
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index b17ef49f9303..0a22bb173739 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -5799,6 +5799,7 @@ fail: | |||
5799 | 5799 | ||
5800 | static const struct ieee80211_iface_limit ap_if_limits[] = { | 5800 | static const struct ieee80211_iface_limit ap_if_limits[] = { |
5801 | { .max = 8, .types = BIT(NL80211_IFTYPE_AP) }, | 5801 | { .max = 8, .types = BIT(NL80211_IFTYPE_AP) }, |
5802 | { .max = 1, .types = BIT(NL80211_IFTYPE_STATION) }, | ||
5802 | }; | 5803 | }; |
5803 | 5804 | ||
5804 | static const struct ieee80211_iface_combination ap_if_comb = { | 5805 | static const struct ieee80211_iface_combination ap_if_comb = { |
@@ -5891,6 +5892,7 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv) | |||
5891 | 5892 | ||
5892 | if (priv->ap_macids_supported || priv->device_info->fw_image_ap) { | 5893 | if (priv->ap_macids_supported || priv->device_info->fw_image_ap) { |
5893 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP); | 5894 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP); |
5895 | hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_STATION); | ||
5894 | hw->wiphy->iface_combinations = &ap_if_comb; | 5896 | hw->wiphy->iface_combinations = &ap_if_comb; |
5895 | hw->wiphy->n_iface_combinations = 1; | 5897 | hw->wiphy->n_iface_combinations = 1; |
5896 | } | 5898 | } |