* [PATCH 1/5] mwl8k: defining interface combinations
@ 2012-11-06 12:53 Yogesh Ashok Powar
2012-11-06 13:44 ` Yogesh Ashok Powar
0 siblings, 1 reply; 2+ messages in thread
From: Yogesh Ashok Powar @ 2012-11-06 12:53 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, Lennert Buytenhek, Nishant Sarmukadam
AP mode support upto 8 interfaces.
Defining it using iface_combinations
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
---
drivers/net/wireless/mwl8k.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 5099e53..cb5594d 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -5617,6 +5617,18 @@ fail:
return rc;
}
+static const struct ieee80211_iface_limit ap_if_limits[] = {
+ { .max = 8, .types = BIT(NL80211_IFTYPE_AP) },
+};
+
+static const struct ieee80211_iface_combination ap_if_comb = {
+ .limits = ap_if_limits,
+ .n_limits = ARRAY_SIZE(ap_if_limits),
+ .max_interfaces = 8,
+ .num_different_channels = 1,
+};
+
+
static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
{
struct ieee80211_hw *hw = priv->hw;
@@ -5696,8 +5708,13 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv)
goto err_free_cookie;
hw->wiphy->interface_modes = 0;
- if (priv->ap_macids_supported || priv->device_info->fw_image_ap)
+
+ if (priv->ap_macids_supported || priv->device_info->fw_image_ap) {
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
+ hw->wiphy->iface_combinations = &ap_if_comb;
+ hw->wiphy->n_iface_combinations = 1;
+ }
+
if (priv->sta_macids_supported || priv->device_info->fw_image_sta)
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_STATION);
--
1.7.9.2
\n
\n
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH 1/5] mwl8k: defining interface combinations
2012-11-06 12:53 [PATCH 1/5] mwl8k: defining interface combinations Yogesh Ashok Powar
@ 2012-11-06 13:44 ` Yogesh Ashok Powar
0 siblings, 0 replies; 2+ messages in thread
From: Yogesh Ashok Powar @ 2012-11-06 13:44 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, Lennert Buytenhek, Nishant Sarmukadam
>AP mode support upto 8 interfaces.
>Defining it using iface_combinations
>
>Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Please ignore this patch.
I will resend its replacement soon.
Thanks
Yogesh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-06 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 12:53 [PATCH 1/5] mwl8k: defining interface combinations Yogesh Ashok Powar
2012-11-06 13:44 ` Yogesh Ashok Powar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.