summaryrefslogtreecommitdiff
path: root/recipes/wifistix/wifistix-modules/bad-cast.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/wifistix/wifistix-modules/bad-cast.patch')
-rw-r--r--recipes/wifistix/wifistix-modules/bad-cast.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/wifistix/wifistix-modules/bad-cast.patch b/recipes/wifistix/wifistix-modules/bad-cast.patch
new file mode 100644
index 0000000000..5f4f48c27b
--- /dev/null
+++ b/recipes/wifistix/wifistix-modules/bad-cast.patch
@@ -0,0 +1,13 @@
+Index: src_cf8385/wlan/wlan_wext.c
+===================================================================
+--- src_cf8385.orig/wlan/wlan_wext.c
++++ src_cf8385/wlan/wlan_wext.c
+@@ -1023,7 +1023,7 @@ static int wlan_txcontrol(wlan_private *
+ return -EFAULT;
+ }
+ copy_from_user(&data,wrq->u.data.pointer,sizeof(int));
+- (u32)Adapter->PktTxCtrl = data;
++ Adapter->PktTxCtrl = (u32)data;
+ }
+
+ wrq->u.data.length = 1;