summaryrefslogtreecommitdiff
path: root/packages/wifistix/wifistix-modules/bad-cast.patch
blob: 5f4f48c27b1eadac3eb41739d9ae24c1cccc5324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;