[PATCH] libertas: fixed kernel oops on module/card removal
Luis Carlos Cobo Rus
luisca at cozybit.com
Tue Mar 13 20:31:40 EDT 2007
fixed kernel oops on module/card removal (using dongles)
added URB debug info
Signed-off-by: Luis Carlos Cobo <luisca at cozybit.com>
---
drivers/net/wireless/libertas/if_usb.c | 2 +-
drivers/net/wireless/libertas/main.c | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/libertas/if_usb.c
b/drivers/net/wireless/libertas/if_usb.c
index 95c7782..2c55171 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -49,7 +49,7 @@ static void if_usb_write_bulk_callback(s
if (urb->status != 0) {
/* print the failure status number for debug */
- lbs_pr_info("URB in failure status\n");
+ lbs_pr_info("URB in failure status: %d\n", urb->status);
} else {
/*
lbs_deb_usbd(&urb->dev->dev, "URB status is successfull\n");
diff --git a/drivers/net/wireless/libertas/main.c
b/drivers/net/wireless/libertas/main.c
index cf36012..a691f35 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -313,7 +313,6 @@ static int wlan_dev_close(struct net_dev
lbs_deb_enter(LBS_DEB_NET);
netif_carrier_off(priv->wlan_dev.netdev);
- netif_carrier_off(priv->mesh_dev);
priv->open = 0;
lbs_deb_leave(LBS_DEB_NET);
--
1.4.3
--
Luis Carlos Cobo Rus GnuPG ID: 44019B60
cozybit Inc.
More information about the libertas-dev
mailing list