caiwang / board2ihost

0 stars 0 forks source link

[CLOSED] rock lite wifi module rtl8188ev #42

Open caiwang opened 9 years ago

caiwang commented 9 years ago

Issue by caiwang Tuesday Mar 03, 2015 at 04:26 GMT Originally opened as https://github.com/caiwang/ihostsrc/issues/42


https://github.com/lwfinger/rtl8188eu/issues/94

Use the 4.1.8_9499 branch. It works in encrypted mode, at least when I create an AP using NetworkManager. For this version, you should use the standard hostapd with the nl80211 driver interface for hostapd.

caiwang commented 9 years ago

Comment by caiwang Tuesday Mar 03, 2015 at 05:05 GMT


lwfinger/rtl8188eu#99

The script that I use to build this driver for a Raspberry Pi (also ARM) is

export ARCH=arm export CROSS_COMPILE=/home/finger/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi- make KSRC=/home/finger/raspberry/

The cross compile symbol should point to the location of the cross-compiler, and KSRC should point to the location of the kernel source.

caiwang commented 9 years ago

Comment by caiwang Wednesday Mar 04, 2015 at 08:42 GMT


git clone -b v4.1.8_9499 https://github.com/lwfinger/rtl8188eu.git

export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf-

make KSRC=/home/radxa/k318/linux-next/

image

image

caiwang commented 9 years ago

Comment by unissoft-bj Friday Mar 06, 2015 at 03:50 GMT


kernel 3.18里面的driver

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 16:21 GMT


在 kernel 3.06上编译 driver

先编译kernel

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 16:23 GMT


编译并替换driver

image

image image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 16:56 GMT


hostapd正常

multicast 不正常 nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)

image

image

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:02 GMT


mon.wlan0不抓包

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:04 GMT


hostapd运行时不能加虚拟网卡

iw --debug phy phy0 interface add wlan2 type monitor

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:06 GMT


关掉hostapd可以加monitor mode虚拟网卡

image

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:08 GMT


虚拟网卡不抓包

tshark -l -i wlan2 -f "subtype assoc-resp or subtype reassoc-resp or subtype probe-req or subtype disassoc" -T fields -E separator=, -E quote=d -e frame.time -e frame.protocols -e radiotap.dbm_antsignal -e ppi.80211-common.dbm.antsignal -e wlan.fc.type_subtype -e wlan.da -e wlan.sa -e wlan.bssid -e wlan_mgt.ssid

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:10 GMT


image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:14 GMT


image

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:28 GMT


promiscuous mode

image

caiwang commented 9 years ago

Comment by unissoft-bj Sunday Mar 08, 2015 at 17:52 GMT


测试过程:

1,启动hostapd image

2,抓包 image

3,用手机连hostapd的ssid,在等待ip地址过程中,退出hostapd

image

4,此时抓到一个包 image

image

image

caiwang commented 9 years ago

Comment by unissoft-bj Monday Mar 09, 2015 at 00:25 GMT


结论

lwfinger 4.1.8_9499 的8188eu驱动,可以支持标准版的hostapd。 可以创建mon.wlan0 也可以用iw命令创建monitor mode的virtual interface 但是抓不到包 原因可能是firmware不支持

从multicase失败这个情况上看,virtual interface可能抓不到probe request包。其软ap能力是通过其他方式如beacon实现的

caiwang commented 9 years ago

Comment by unissoft-bj Saturday Mar 21, 2015 at 05:36 GMT


hostapd性能测试(稳定性不如普通家用路由器)

蓝色的是rock软路由,绿色的家用路由器

image