I.MX6 WIFI wireless_tools 移植

/********************************************************************************
 *                    I.MX6 WIFI wireless_tools 移植
 * 说明:
 *     移植完了wifi驱动,现在要能够测试wifi驱动了,但是Android中间层好像出了点
 * 问题,所以需要有工具能够直接测试wifi功能,于是找了这个工具移植一下。
 *
 *                                              2016-6-20 深圳 南山平山村 曾剑锋
 *******************************************************************************/

一、参考文档:
    1. iwconfig的用法(转)
        http://jasy.ice.blog.163.com/blog/static/8843073020112179448868/
    2. 嵌入式开发之工具移植--wireless tools工具的移植和使用
        http://blog.csdn.net/tigerjibo/article/details/12784901
    3. 移植wireless tools (iwpriv, iwconfig, iwgetid, iwevents, iwspy, iwlist)到Android
        http://blog.csdn.net/darkengine/article/details/7024459
    4. 

二、文件列表:
    myzr@myzr:~/myandroid/external/wireless_tools.30.rtl$ ls
    19-udev-ifrename.rules         iwconfig.c       README.fr
    Android.mk                     iwevent.8        sample_enc.c
    android_readme                 iwevent.c        sample_pm.c
    CHANGELOG.h                    iwgetid.8        sample_priv_addr.c
    COPYING                        iwgetid.c        wireless.10.h
    cs                             iwlib.c          wireless.11.h
    DISTRIBUTIONS.txt              iwlib.h          wireless.12.h
    ESSID-BUG.txt                  iwlib-private.h  wireless.13.h
    fr.ISO8859-1                   iwlist.8         wireless.14.h
    fr.UTF-8                       iwlist.c         wireless.15.h
    HOTPLUG-UDEV.txt               iwmulticall.c    wireless.16.h
    ifrename.8                     iwpriv.8         wireless.17.h
    ifrename.c                     iwpriv.c         wireless.18.h
    IFRENAME-VS-XXX.txt            iwspy.8          wireless.19.h
    iftab.5                        iwspy.c          wireless.20.h
    INSTALL                        macaddr.c        wireless.21.h
    iw261_restore_full_essid.diff  Makefile         wireless.7
    iw262_restore_full_essid.diff  PCMCIA.txt       wireless.h
    iwconfig.8                     README

三、Android.mk:
    LOCAL_PATH:= $(call my-dir)
    ################## build iwlib ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwlib.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= libiw
    LOCAL_STATIC_LIBRARIES := libcutils libc libm
    include $(BUILD_STATIC_LIBRARY)
    ################## build iwconfig ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwconfig.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwconfig
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build iwlist ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwlist.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwlist
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build iwpriv ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwpriv.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwpriv
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build iwspy ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwspy.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwspy
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build iwgetid ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwgetid.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwgetid
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build iwevent ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := iwevent.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= iwevent
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)
    ################## build ifrename ###################
    #include $(CLEAR_VARS)
    #LOCAL_SRC_FILES := ifrename.c
    #LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    #LOCAL_MODULE_TAGS := optional
    #LOCAL_MODULE:= ifrename
    #LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    #include $(BUILD_EXECUTABLE)
    ################## build macaddr ###################
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := macaddr.c
    LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC
    LOCAL_MODULE_TAGS := optional
    LOCAL_MODULE:= macaddr
    LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw
    LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin
    include $(BUILD_EXECUTABLE)

四、测试命令:
    root@android:/ # iwconfig wlan0
    RTL871X: rtw_wx_get_rts, rts_thresh=2347
    RTL871X: rtw_wx_get_frag, frag_len=2346
    wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
              Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated
              Sensitivity:0/0
              Retry:off   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0

    root@android:/ # busybox ifconfig wlan0 up
    RTL871X: +871x_drv - drv_open, bup=0
    RTL871X: FW does not exist before power on!!
    RTL871X: SetHwReg8723B: bMacPwrCtrlOn=1
    RTL871X: PowerOnCheck: val_mix:0x0000063f, res:0x0000063f
    RTL871X: PowerOnCheck: 0x100 the result of cmd52 and cmd53 is the same.
    RTL871X: PowerOnCheck: 0x1B8 test Pass.
    RTL871X: Power on ok!
    RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 32108
    RTL871X: rtl8723b_FirmwareDownload: fw_ver=23 fw_subver=0000 sig=0x5301, Month=03, Date=26, Hour=14, Minute=35
    RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
    RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00070305
    RTL871X: _8051Reset8723: Finish
    RTL871X: _FWFreeToGo: Polling FW ready OK! (302, 30ms), REG_MCUFWDL:0x000706c6
    RTL871X: FWDL success. write_fw:1, 300ms
    RTL871X:  <=== rtl8723b_FirmwareDownload()
    RTL871X: HalDetectPwrDownMode(): PDN=0
    RTL871X: Set RF Chip ID to RF_6052 and RF type to 3.
    RTL871X: _init_available_page_threshold(): Enable Tx FIFO Page Threshold H:0x7a7a,N:0x7575,L:0x7575
    RTL871X: ===>phy_SwChnl8723B: Channel = 1
    RTL871X: pDM_Odm TxPowerTrackControl = 1
    RTL871X: ===>phy_SwChnl8723B: Channel = 1
    RTL871X: #### hw_var_set_opmode() -5250 iface_type(0) mode = 2 ####
    RTL871X: Using the default RF gain.
    RTL871X: MAC Address = 80:a5:89:49:6e:81
    RTL871X: -871x_drv - drv_open, bup=1
    RTL871X: start rtl8723bs_xmit_thread(wlan0)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=0 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=1 len=7
    root@android:/ # RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=2 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=3 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=4 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=5 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=6 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=7 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=8 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=9 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=10 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=11 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=12 len=7
    RTL871X: IsBtDisabled=0, IsBtControlLps=0
    RTL871X: ==>rtw_ps_processor .fw_state(8)
    RTL871X: ==>ips_enter cnts:1
    RTL871X: nolinked power save enter
    RTL871X: ===> rtw_ips_pwr_down...................
    RTL871X: ====> rtw_ips_dev_unload...
    RTL871X: rtl8723bs_hal_deinit: issue H2C to FW when entering IPS
    RTL871X: rtl8723b_set_FwPwrModeInIPS_cmd()
    RTL871X: rtl8723bs_hal_deinit  polling REG_HMETFR=0x4, cnt=1
    RTL871X: rtl8723bs_hal_deinit  polling REG_HMETFR=0x0, cnt=2
    RTL871X: rtl8723bs_hal_deinit: write rpwm=81
    RTL871X: rtl8723bs_hal_deinit  polling 0x100=0xea, cnt=1
    RTL871X: polling done when entering IPS, check result : 0x100=0xea, cnt=1, MAC_1cc=0xea
    RTL871X: <=== rtw_ips_pwr_down..................... in 80ms

    root@android:/ # iwlist wlan0 scan
    RTL871X: ==>ips_leave cnts:1
    RTL871X: ===>  rtw_ips_pwr_up..............
    RTL871X: ===> ips_netdrv_open.........
    RTL871X: rtl8723bs_hal_init: Leaving IPS in FWLPS state
    RTL871X: rtl8723bs_hal_init: write rpwm=40
    RTL871X: rtl8723bs_hal_init: polling cpwm ok when leaving IPS in FWLPS state, cpwm_orig=00, cpwm_now=80, 0x100=0x3f
    RTL871X: rtl8723b_set_FwPwrModeInIPS_cmd()
    RTL871X: SetHwReg8723B: bMacPwrCtrlOn=1
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=13 len=7
    RTL871X: ===>phy_SwChnl8723B: Channel = 1
    RTL871X: #### hw_var_set_opmode() -5250 iface_type(0) mode = 2 ####
    RTL871X: Using the default RF gain.
    RTL871X: <===  rtw_ips_pwr_up.............. in 60ms
    RTL871X: nolinked power save leave
    RTL871X: ==> ips_leave.....LED(0x00e28282)...
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=14 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=15 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=16 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=17 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=18 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=19 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=20 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=21 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=22 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=23 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=24 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=25 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=26 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=27 len=7
    RTL871X: ===>phy_SwChnl8723B: Channel = 1
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=28 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=29 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=30 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=31 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=32 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=33 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=34 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=35 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=36 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=37 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=38 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=39 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=40 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=41 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=42 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=43 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=44 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=45 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=46 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=47 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=48 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=49 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=50 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=51 len=7
    RTL871X: ===>phy_SwChnl8723B: Channel = 2
    RTL871X: IsBtDisabled=0, IsBtControlLps=0
    RTL871X: ===>phy_SwChnl8723B: Channel = 3
    RTL871X: ===>phy_SwChnl8723B: Channel = 4
    RTL871X: ===>phy_SwChnl8723B: Channel = 5
    RTL871X: ===>phy_SwChnl8723B: Channel = 6
    RTL871X: ===>phy_SwChnl8723B: Channel = 7
    RTL871X: ===>phy_SwChnl8723B: Channel = 8
    RTL871X: ===>phy_SwChnl8723B: Channel = 9
    RTL871X: ===>phy_SwChnl8723B: Channel = 10
    RTL871X: ===>phy_SwChnl8723B: Channel = 11
    RTL871X: ===>phy_SwChnl8723B: Channel = 12
    RTL871X: ===>phy_SwChnl8723B: Channel = 13
    RTL871X: ===>phy_SwChnl8723B: Channel = 1
    RTL871X: survey done event(60) band:0 for wlan0
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=52 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=53 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=54 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=55 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=56 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=57 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=58 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=59 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=60 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=61 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=62 len=7
    RTL871X: rtw_indicate_scan_done(wlan0)
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=63 len=7
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=11 seq=64 len=7
    RTL871X: IsBtDisabled=0, IsBtControlLps=0
    RTL871X: ==>rtw_ps_processor .fw_state(8)
    RTL871X: rtl8723b_c2h_packet_handler: C2H, ID=9 seq=65 len=7
    RTL871X: ==>ips_enter cnts:2
    RTL871X: nolinked power save enter
    RTL871X: ===> rtw_ips_pwr_down...................
    RTL871X: ====> rtw_ips_dev_unload...
    RTL871X: rtl8723bs_hal_deinit: issue H2C to FW when entering IPS
    RTL871X: rtl8723b_set_FwPwrModeInIPS_cmd()
    wlan0     Scan completed :RTL871X: rtl8723bs_hal_deinit  polling REG_HMETFR=0x4, cnt=1 

              Cell 01 - Address: 00:B0:C6:0F:24:B0
                        ESSID:"-AP3"
                        Protocol:IEEE 802.11RTL871X: rtl8723bs_hal_deinit  polling REG_HMETFR=0x0, cnt=2
    bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
    RTL871X: rtl8723bs_hal_deinit: write rpwm=c1

                        Bit Rates:30RTL871X: rtl8723bs_hal_deinit  polling 0x100=0xea, cnt=1
    0 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
                        IE: IEEE 802.11i/WPA2 RTL871X: polling done when entering IPS, check result : 0x100=0xea, cnt=1, MAC_1cc=0xea
    Version 1
                          RTL871X: <=== rtw_ips_pwr_down..................... in 80ms
      Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=96/100  Signal level=-66 dBm
                        Extra:fm=0003
              Cell 02 - Address: C0:61:18:FC:73:A1
                        ESSID:"ZLY-TECH"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=56/100  Signal level=-73 dBm
                        Extra:fm=0001
              Cell 03 - Address: 0C:4C:39:1A:51:B3
                        ESSID:"ChinaNet-Qh5y"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD180050F204104A00011010440001021049000600372A000120
                        Quality=73/100  Signal level=-73 dBm
                        Extra:fm=0001
              Cell 04 - Address: B8:55:10:84:A5:13
                        ESSID:"GOODSTART2"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=28/100  Signal level=-76 dBm
                        Extra:fm=0001
              Cell 05 - Address: 00:B0:C6:4F:98:27
                        ESSID:"DXYP-2015"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=96/100  Signal level=-71 dBm
                        Extra:fm=0001
              Cell 06 - Address: B0:D5:9D:58:45:14
                        ESSID:"huo"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=100/100  Signal level=-65 dBm
                        Extra:fm=0001
              Cell 07 - Address: F8:E9:03:B7:15:8A
                        ESSID:"laser309"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD180050F204104A00011010440001011049000600372A000120
                        Quality=46/100  Signal level=-75 dBm
                        Extra:fm=0001
              Cell 08 - Address: 8C:BE:BE:01:54:D2
                        ESSID:"_C"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.412 GHz (Channel 1)
                        Encryption key:on
                        Bit Rates:150 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=100/100  Signal level=-65 dBm
                        Extra:fm=0003
              Cell 09 - Address: EC:26:CA:47:D1:F6
                        ESSID:"nnnd"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=20/100  Signal level=-45 dBm
                        Extra:fm=0001
              Cell 10 - Address: 14:75:90:D5:7E:A4
                        ESSID:"worldstar-2"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=5/100  Signal level=-74 dBm
                        Extra:fm=0003
              Cell 11 - Address: B4:98:42:10:B1:3C
                        ESSID:"ChinaNet-xTSy"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:130 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD0E0050F204104A0001101044000102
                        Quality=36/100  Signal level=-73 dBm
                        Extra:fm=0001
              Cell 12 - Address: 00:87:36:09:A9:4C
                        ESSID:"\xE6\xAD\xA4\xE5\xB9\xBF\xE5\x91\x8A\xE4\xBD\x8D\xE5\xB8\xB8\xE5\xB9\xB4\xE6\x8B\x9B\xE5\x95\x86"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.437 GHz (Channel 6)
                        Encryption key:on
                        Bit Rates:150 Mb/s
                        Extra:wpa_ie=dd180050f20101000050f20401000050f20401000050f2020000
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=29/100  Signal level=-74 dBm
                        Extra:fm=0001
              Cell 13 - Address: EC:26:CA:E1:6B:17
                        ESSID:"-AP"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:144 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=36/100  Signal level=-76 dBm
                        Extra:fm=0003
              Cell 14 - Address: 90:94:E4:3B:78:D0
                        ESSID:"china"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.457 GHz (Channel 10)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd1a0050f20101000050f20202000050f2020050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : TKIP CCMP
                            Authentication Suites (1) : PSK
                        Quality=88/100  Signal level=-73 dBm
                        Extra:fm=0001
              Cell 15 - Address: A0:F3:C1:95:22:36
                        ESSID:"TP-LINK_952236"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : TKIP
                            Pairwise Ciphers (2) : CCMP TKIP
                            Authentication Suites (1) : PSK
                        Quality=32/100  Signal level=-79 dBm
                        Extra:fm=0003
              Cell 16 - Address: 14:75:90:CE:35:87
                        ESSID:"sjb"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        IE: Unknown: DD180050F204104A00011010440001021049000600372A000120
                        Quality=0/100  Signal level=-74 dBm
                        Extra:fm=0001
              Cell 17 - Address: D0:FA:1D:76:01:7B
                        ESSID:"SZSD"
                        Protocol:IEEE 802.11bgn
                        Mode:Master
                        Frequency:2.462 GHz (Channel 11)
                        Encryption key:on
                        Bit Rates:300 Mb/s
                        Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
                        IE: WPA Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Extra:
                        IE: IEEE 802.11i/WPA2 Version 1
                            Group Cipher : CCMP
                            Pairwise Ciphers (1) : CCMP
                            Authentication Suites (1) : PSK
                        Quality=0/100  Signal level=-71 dBm
                        Extra:fm=0001
        

 

时间: 2024-10-13 01:05:50

I.MX6 WIFI wireless_tools 移植的相关文章

I.MX6 AW-NB177NF WIFI 驱动移植问题

/******************************************************************************** * I.MX6 AW-NB177NF WIFI 驱动移植问题 * 说明: * 之前驱动移植,但看不到有wlan设备产生,于是感觉是wifi驱动出了问题,于是开始 * 分析厂家提供的wifi驱动,发现id对应的信息不对,经过与FAE确认之后并验证,确实是 * 这个问题导致的. * * 2016-6-20 深圳 南山平山村 曾剑锋 ***

I.MX6 Android can-utils 移植

/******************************************************************* * I.MX6 Android can-utils 移植 * 说明: * 由于最近要用到CAN,于是先移植一下can-tuils来看一下情况. * * 2016-8-1 深圳 南山平山村 曾剑锋 ******************************************************************/ 一.获取源码: https:/

wifi详解(五)

1        Android平台的Wifi模块移植要点 1.1      Wifi结构 user interface   Android WiFiService WPA_Supplicant DHD Driver Dongle Binary BCM43xxHardware   蓝色:需要修改 黑色:不需要修改   蓝色部分是为了在android环境下,支持bcm43xx芯片需要修改的部分,各个部分的功能如下: 1. User interface(用户接口层):控制和设置wifi的用户接口层

全志ap6210蓝牙驱动问题

问题描述 全志ap6210蓝牙驱动问题 编译烧写之后的现象:在设置中出现了"蓝牙"这一项,但是打开后提示:"要搜索可用设备,请打开蓝牙功能". 报错信息有: W/bt-btu ( 3035): btu_task start abort! E/BluetoothAdapterState( 3035): Error enabling Bluetooth - hardware init failed I/bt_hci_bdroid( 3035): bt_hc_worker

Linux下Wi-Fi的实现:wireless_tools和wpa_supplicant

平台为hi35XX,在Liunx下借助wireless_tools和wpa_supplicant(因为现在的无线WIFI网络大多是wpa加密.所以需要移植wpa_supplicant工具)等工具实现wifi的过程.   一.移植wireless_tools 1. 下载并编译wireless_tools     tar zxf  wireless_tools.29.tar.gz(网上下载)     cd wireless_tools.29     make     成功后会在当前目录生成iwspy

I.MX6 AW-NB177NF wifi HAL 调试修改

/************************************************************************* * I.MX6 AW-NB177NF wifi HAL 调试修改 * 说明: * 在进行Android层的wifi驱动层调试中遇到很多问题,记录一下. * * 2016-6-25 深圳 南山平山村 曾剑锋 ************************************************************************

Android下RTL8192cu WiFi模块的移植

问题描述 Android下RTL8192cu WiFi模块的移植 本人用的友善之臂的tiny210开发板,想要在Android4.0系统下移植WiFi热点功能,所用的WiFi模块是USB接口的RTL8192CU模块.移植过程中,realtek技术文档说如果要使用nl80211接口的话,需要在驱动autoconf.h头文件中定义宏CONFIG_IOCTL_CFG80211,但是定义该宏变量后,系统每次加载该驱动时就会报错并自动重启. 报错结果如下: 然而,如果不定义该宏变量,驱动虽然正确加载,但是

wi-fi-请教:在Linux3.0.8 移植usb wifi驱动rtl8189es

问题描述 请教:在Linux3.0.8 移植usb wifi驱动rtl8189es 在Linux3.0.8 移植usb wifi驱动rtl8189es, 采用的非模块加载,直接编进kernel一起烧录: 目前卡在: 不会出现 usbcore: registered new interface driver rtl8189es SDIO卡已经初始化和识卡成功: [ 3.035470] mmc1: new high speed SDIO card at address 0001 网络设备已成功初始化

I.MX6 Android 移除 Settings wifi功能

/********************************************************************* * I.MX6 Android 移除 Settings wifi功能 * 说明: * 本文主要记录如何修改Android Settings中的主选项,初衷是有些 * 设置并不是我们需要,隐藏掉还是比较好的. * * 2016-3-5 深圳 南山平山村 曾剑锋 *************************************************