From 05e1ad00f07e9765fbcef4cd7d6926413c742022 Mon Sep 17 00:00:00 2001 From: hwg Date: Sun, 17 May 2015 11:54:19 +0800 Subject: [PATCH] wifi driver rtl8188eu: solve warning in rk3368 --- .../rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c b/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c index 62ad6da683e7..f069ea4ab02e 100755 --- a/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c +++ b/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/rtw_android.c @@ -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); -- 2.34.1