diff options
author | Kiran Divekar <dkiran@marvell.com> | 2010-06-14 12:31:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-23 15:13:11 -0400 |
commit | e86dc1ca4676445d9f0dfe35104efe0eb8a2f566 (patch) | |
tree | bd39d0d4403899fb438a2e983e1b97c1ccd9b1ad /drivers/net/wireless/libertas/mesh.c | |
parent | f90754c15f47063671aea55268a9dd6a37b51492 (diff) |
Libertas: cfg80211 support
Holger Schurig's patch (https://patchwork.kernel.org/patch/64286/)
is rebased to latest wireless-testing tree.
(Includes patches from me originally posted as "libertas: fix build
error due to undefined symbol" and "libertas: unmangle capability
value". -- JWL)
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Tested-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/mesh.c')
-rw-r--r-- | drivers/net/wireless/libertas/mesh.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/mesh.c b/drivers/net/wireless/libertas/mesh.c index e385af1f4583..bc5bc1384c35 100644 --- a/drivers/net/wireless/libertas/mesh.c +++ b/drivers/net/wireless/libertas/mesh.c | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/if_arp.h> | 5 | #include <linux/if_arp.h> |
6 | #include <linux/kthread.h> | 6 | #include <linux/kthread.h> |
7 | #include <linux/kfifo.h> | 7 | #include <linux/kfifo.h> |
8 | #include <net/cfg80211.h> | ||
8 | 9 | ||
9 | #include "mesh.h" | 10 | #include "mesh.h" |
10 | #include "decl.h" | 11 | #include "decl.h" |
@@ -314,7 +315,7 @@ static int lbs_mesh_dev_open(struct net_device *dev) | |||
314 | 315 | ||
315 | spin_lock_irq(&priv->driver_lock); | 316 | spin_lock_irq(&priv->driver_lock); |
316 | 317 | ||
317 | if (priv->monitormode) { | 318 | if (priv->wdev->iftype == NL80211_IFTYPE_MONITOR) { |
318 | ret = -EBUSY; | 319 | ret = -EBUSY; |
319 | goto out; | 320 | goto out; |
320 | } | 321 | } |
@@ -369,9 +370,6 @@ int lbs_add_mesh(struct lbs_private *priv) | |||
369 | 370 | ||
370 | SET_NETDEV_DEV(priv->mesh_dev, priv->dev->dev.parent); | 371 | SET_NETDEV_DEV(priv->mesh_dev, priv->dev->dev.parent); |
371 | 372 | ||
372 | #ifdef WIRELESS_EXT | ||
373 | mesh_dev->wireless_handlers = &mesh_handler_def; | ||
374 | #endif | ||
375 | mesh_dev->flags |= IFF_BROADCAST | IFF_MULTICAST; | 373 | mesh_dev->flags |= IFF_BROADCAST | IFF_MULTICAST; |
376 | /* Register virtual mesh interface */ | 374 | /* Register virtual mesh interface */ |
377 | ret = register_netdev(mesh_dev); | 375 | ret = register_netdev(mesh_dev); |