Search Linux Wireless

[PATCH 3/3] compat-wireless: remove usage of dismantle in net_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch makes use of the dismantle member in struct
net_device, this patch removes that access on older kernels.

commit 9d5d496c3464b7ad0ba942b4ada5f27c07e07079
Author: Daniel Drake <dsd@xxxxxxxxxx>
Date:   Mon Jul 30 22:58:04 2012 +0100

    libertas: don't reset card on error when it is being removed

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 patches/65-ignore-dismantle.patch |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 patches/65-ignore-dismantle.patch

diff --git a/patches/65-ignore-dismantle.patch b/patches/65-ignore-dismantle.patch
new file mode 100644
index 0000000..fde4ce2
--- /dev/null
+++ b/patches/65-ignore-dismantle.patch
@@ -0,0 +1,23 @@
+The following patch makes use of the dismantle member in struct 
+net_device, this patch removes that access on older kernels.
+
+commit 9d5d496c3464b7ad0ba942b4ada5f27c07e07079
+Author: Daniel Drake <dsd@xxxxxxxxxx>
+Date:   Mon Jul 30 22:58:04 2012 +0100
+
+    libertas: don't reset card on error when it is being removed
+
+--- a/drivers/net/wireless/libertas/main.c
++++ b/drivers/net/wireless/libertas/main.c
+@@ -592,7 +592,11 @@ static int lbs_thread(void *data)
+ 
+ 			/* Reset card, but only when it isn't in the process
+ 			 * of being shutdown anyway. */
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
+ 			if (!dev->dismantle && priv->reset_card)
++#else
++			if (priv->reset_card)
++#endif
+ 				priv->reset_card(priv);
+ 		}
+ 		priv->cmd_timed_out = 0;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux