wifi driver rtl8188eu: solve warning in rk3368
authorhwg <hwg@rock-chips.com>
Sun, 17 May 2015 03:54:19 +0000 (11:54 +0800)
committerhwg <hwg@rock-chips.com>
Sun, 17 May 2015 03:54:36 +0000 (11:54 +0800)
drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c

index 62ad6da683e7e18453b6b2772fa5aeef0a84ef34..f069ea4ab02e2435a0c4b9a5ce3935295ce06176 100755 (executable)
@@ -753,8 +753,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
                {
 #ifdef CONFIG_LPS
                        u8 dtim;
+#ifdef CONFIG_COMPAT
+                        u8 *ptr = compat_ptr(priv_cmd.buf);
+#else
                        u8 *ptr = priv_cmd.buf;
-                       
+#endif                 
                        ptr += 9;//string command length of  "SET_DTIM";
 
                        dtim = rtw_atoi(ptr);