调试android+sdio wifi rtl8189es驱动已经成功加载,想测试一下驱动,用了如下的命令:
1. netcfg查看
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 DOWN 0.0.0.0/0 0x00001043 4c:0f:c7:1a:6e:4f
2.启动wifi :
netcfg wlan0 up
开启wlan0
再次确认wlan0
netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 UP 0.0.0.0/0 0x00001043 4c:0f:c7:1a:6e:4f //wlan0已经up了
3. 搜索wifi ap
iwlist wlan0 scanning
ssid结果就出来了:
iwlist wlan0 scanning
wlan0 Scan completed :
Cell 01 - Address: 8C:BE:BE:1B:8E:0C
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=45/70 Signal level=-65 dBm
Encryption key:on
ESSID:"EDRON"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000001187d84da
Extra: Last beacon: 40ms ago
IE: Unknown: 00054544524F4E
IE: Unknown: 010882848B961224486C
IE: Unknown: 030101
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD07000C4306000000
IE: Unknown: 2D1A6E0102FF000000000000000000000000000000000E0000000000
IE: Unknown: 3D1601050000000000000000000000000000000000000000
IE: Unknown: 3E0100
IE: Unknown: DD1E00904C336E0102FF000000000000000000000000000000000E0000000000
IE: Unknown: DD1A00904C3401050000000000000000000000000000000000000000
Cell 02 - Address: 8C:E0:81:33:8D:0C
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=47/70 Signal level=-63 dBm
Encryption key:on
ESSID:"ChinaNet-px3r"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000004b8586900b9
Extra: Last beacon: 40ms ago
IE: Unknown: 000D4368696E614E65742D70783372
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 0706434E20010D14
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1A1C181BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1601081100000000000000000000000000000000000000
IE: Unknown: DD6B0050F204104A0001101044000102103B000103104700106317D460F5CDC00BC924A880C543B191102100035A544510230004463436301024000631323
41054000800060050F2040001101100085A54452046343630100800020080103C000101
IE: Unknown: DD090010180200F02C0000
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F202010100000364000027A4000042435E0062322F00
Cell 03 - Address: 78:D9:9F:2F:78:0A
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=44/70 Signal level=-66 dBm
Encryption key:on
ESSID:"ChinaNet-TwMT"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000012aa5d5b35
Extra: Last beacon: 40ms ago
IE: Unknown: 000D4368696E614E65742D54774D54
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1601001100000000000000000000000000000000000000
IE: Unknown: DD760050F204104A0001101044000102103B00010310470010000000000000000000000000000000001021000842726F6164636F6D1023000842726F61646
53610420004313233341054000800060050F20400011011000A42726F6164636F6D4150100800020084103C000101
IE: Unknown: DD090010180200F02C0000
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
Cell 04 - Address: F4:EE:14:06:AF:04
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=45/70 Signal level=-65 dBm
Encryption key:on
ESSID:"HFWL3"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000008a5342c274
Extra: Last beacon: 40ms ago
IE: Unknown: 00054846574C33
IE: Unknown: 010882848B961224486C
IE: Unknown: 030101
IE: Unknown: 2A0104
IE: Unknown: 32040C183060
IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
IE: Unknown: 3D1601000600000000000000000000000000000000000000
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: DD07000C4307000000
Cell 05 - Address: C8:E7:D8:0D:43:DE
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=53/70 Signal level=-57 dBm
Encryption key:on
ESSID:""
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000000af316d2626
Extra: Last beacon: 40ms ago
IE: Unknown: 0000
IE: Unknown: 010882848B961224486C
IE: Unknown: 030101
IE: Unknown: 32040C183060
IE: Unknown: 33082001020304050607
IE: Unknown: 33082105060708090A0B
IE: Unknown: 05050001006803
IE: Unknown: 2A0104
IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
IE: Unknown: 3D1601000600000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD07000C4307000000
Cell 06 - Address: D4:67:E7:22:03:9F
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=44/70 Signal level=-66 dBm
Encryption key:on
ESSID:"ChinaNet-LFGz"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000002515133f9d
Extra: Last beacon: 40ms ago
IE: Unknown: 000D4368696E614E65742D4C46477A
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1601001100000000000000000000000000000000000000
IE: Unknown: DD760050F204104A0001101044000102103B0001031047001079DC9306E25DAB58E76420F999A21B361021000842726F6164636F6D1023000842726F61646
53610420004313233341054000800060050F20400011011000A42726F6164636F6D4150100800020084103C000101
IE: Unknown: DD090010180200F02C0000
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
Cell 07 - Address: D0:C7:C0:26:F9:20
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=53/70 Signal level=-57 dBm
Encryption key:on
ESSID:"HFWL"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000b4271781c7
Extra: Last beacon: 40ms ago
IE: Unknown: 00044846574C
IE: Unknown: 010882848B960C121824
IE: Unknown: 030106
IE: Unknown: 050700010000000000
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1A6E1003FFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1606071300000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD05000AEB0100
IE: Unknown: DD310050F204104A00011010440001021047001000000000000010000000D0C7C026F920103C0001011049000600372A000120
Cell 08 - Address: 98:6C:F5:5F:01:35
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=53/70 Signal level=-57 dBm
Encryption key:on
ESSID:"bbbb"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000011884dd15
Extra: Last beacon: 40ms ago
IE: Unknown: 000462626262
IE: Unknown: 010482848B96
IE: Unknown: 030106
IE: Unknown: 2A0100
IE: Unknown: 32080C1218243048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1A2C0103FF00000000000000000000000000000000000000000000
IE: Unknown: 3D1606001300000000000000000000000000000000000000
IE: Unknown: DD180050F2020101010003A4000027A4000042435E0062322F00
Cell 09 - Address: C0:61:18:FC:6E:94
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=36/70 Signal level=-74 dBm
Encryption key:on
ESSID:"boesz-01"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000036bb621180
Extra: Last beacon: 40ms ago
IE: Unknown: 0008626F65737A2D3031
IE: Unknown: 010882848B960C121824
IE: Unknown: 030106
IE: Unknown: 05050001010004
IE: Unknown: 0706434E20010D1E
IE: Unknown: 200100
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32043048606C
IE: Unknown: 2D1AEE1103FFFF000000000000000000000000000000000000000000
IE: Unknown: 3D1606071700000000000000000000000000000000000000
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101030003A4000027A4000042435E0062322F00
IE: Unknown: DD0900037F01010000FF7F
Cell 10 - Address: 08:57:00:A4:07:EA
Channel:10
Frequency:2.457 GHz (Channel 10)
Quality=48/70 Signal level=-62 dBm
Encryption key:on
ESSID:"瑗块棬鍚圭墰"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000011f407cc8
Extra: Last beacon: 40ms ago
IE: Unknown: 000CE8A5BFE997A8E590B9E7899B
IE: Unknown: 010882848B968C129824
IE: Unknown: 03010A
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2A0100
IE: Unknown: 3204B048606C
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: 2D1A6C0802FF00000000000000000000000000000000000000000000
IE: Unknown: 3D160A000000000000000000000000000000000000000000
IE: Unknown: DD0700E04C02021000
Cell 11 - Address: 38:22:D6:90:BB:90
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=50/70 Signal level=-60 dBm
Encryption key:off
ESSID:"CMCC"
Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s
18 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000010dcd43b19c
Extra: Last beacon: 40ms ago
IE: Unknown: 0004434D4343
IE: Unknown: 01088B0C129618243048
IE: Unknown: 03010B
IE: Unknown: 0706434E49010D1B
IE: Unknown: 2A0100
IE: Unknown: 3202606C
IE: Unknown: 2D1ACC111FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D160B080400000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C33CC111FFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B080400000000000000000000000000000000000000
Cell 12 - Address: 38:22:D6:90:BB:91
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=50/70 Signal level=-60 dBm
Encryption key:on
ESSID:"CMCC-AUTO"
Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s
18 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000010dcd43a7cc
Extra: Last beacon: 40ms ago
IE: Unknown: 0009434D43432D4155544F
IE: Unknown: 01088B0C129618243048
IE: Unknown: 03010B
IE: Unknown: 0706434E49010D1B
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : 802.1x
IE: Unknown: 3202606C
IE: Unknown: 2D1ACC111FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D160B080400000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C33CC111FFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B080400000000000000000000000000000000000000
Cell 13 - Address: 38:22:D6:90:BB:92
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=49/70 Signal level=-61 dBm
Encryption key:off
ESSID:"and-Business"
Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s
18 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000010dcd43ae8b
Extra: Last beacon: 40ms ago
IE: Unknown: 000C616E642D427573696E657373
IE: Unknown: 01088B0C129618243048
IE: Unknown: 03010B
IE: Unknown: 0706434E49010D1B
IE: Unknown: 2A0100
IE: Unknown: 3202606C
IE: Unknown: 2D1ACC111FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D160B080400000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C33CC111FFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B080400000000000000000000000000000000000000
Cell 14 - Address: 38:22:D6:90:B8:30
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=43/70 Signal level=-67 dBm
Encryption key:off
ESSID:"CMCC"
Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s
18 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000010dd1fb1180
Extra: Last beacon: 40ms ago
IE: Unknown: 0004434D4343
IE: Unknown: 01088B0C129618243048
IE: Unknown: 03010B
IE: Unknown: 050400010000
IE: Unknown: 0706434E49010D1B
IE: Unknown: 2A0100
IE: Unknown: 3202606C
IE: Unknown: 2D1ACC111FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D160B001700000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C33CC111FFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B001700000000000000000000000000000000000000
Cell 15 - Address: 38:22:D6:90:B8:32
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=39/70 Signal level=-71 dBm
Encryption key:off
ESSID:"CMCC-FREE"
Bit Rates:5.5 Mb/s; 6 Mb/s; 9 Mb/s; 11 Mb/s; 12 Mb/s
18 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000010dd1fb151a
Extra: Last beacon: 40ms ago
IE: Unknown: 0009434D43432D46524545
IE: Unknown: 01088B0C129618243048
IE: Unknown: 03010B
IE: Unknown: 050400010000
IE: Unknown: 0706434E49010D1B
IE: Unknown: 2A0100
IE: Unknown: 3202606C
IE: Unknown: 2D1ACC111FFF00000000000000000000000000000000000000000000
IE: Unknown: 3D160B001700000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C33CC111FFF00000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B001700000000000000000000000000000000000000
原文:http://blog.csdn.net/liuxd3000/article/details/43016573