如题,原本使用的是RT208的貌似 网络时断时续 本来信号挺好的 就是信号时有时无...
然后我上官方下载了最新的驱动 .....
怎么都编译不过....
下方是编译的过程:
root@android:/home/xiaosheng/桌面/STA# make
make -C tools
make[1]: 正在进入目录 `/home/xiaosheng/桌面/STA/tools'
gcc -g bin2h.c -o bin2h
make[1]:正在离开目录 `/home/xiaosheng/桌面/STA/tools'
/home/xiaosheng/桌面/STA/tools/bin2h
cp -f os/linux/Makefile.6 /home/xiaosheng/桌面/STA/os/linux/Makefile
make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/xiaosheng/桌面/STA/os/linux modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.13.0-32-generic'
CC [M] /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.o
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:513:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
^
In file included from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:54,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/xiaosheng/桌面/STA/include/os/rt_linux.h:31,
from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44,
from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:515:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
NdisMoveMemory(skb->tail, pData, DataSize);
^
In file included from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:54,
from /usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/xiaosheng/桌面/STA/include/os/rt_linux.h:31,
from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44,
from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.13.0-32-generic/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
void *memmove(void *dest, const void *src, size_t count);
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:667:20: warning: assignment makes integer from pointer without a cast [enabled by default]
pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
^
In file included from /home/xiaosheng/桌面/STA/include/rtmp_os.h:44:0,
from /home/xiaosheng/桌面/STA/include/rtmp_comm.h:69,
from /home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:32:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/home/xiaosheng/桌面/STA/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast [enabled by default]
((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:686:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:713:15: warning: assignment makes integer from pointer without a cast [enabled by default]
pOSPkt->tail = pOSPkt->data + pOSPkt->len;
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1141:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
pOSFSInfo->fsuid = current_fsuid();
^
/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.c:1142:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
pOSFSInfo->fsgid = current_fsgid();
^
make[2]: *** [/home/xiaosheng/桌面/STA/os/linux/../../os/linux/rt_linux.o] 错误 1
make[1]: *** [_module_/home/xiaosheng/桌面/STA/os/linux] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.13.0-32-generic'
make: *** [LINUX] 错误 2
root@android:/home/xiaosheng/桌面/STA#
我自己修改了两项:
修改os/linux/config.mk
代码:
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native Wpa_Supplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
求大神们解决一下......那个弱弱的问一下,源里有这个驱动不????有的话 怎么添加安装???
系统是14.04
|