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. 

二、文件列表:
    [email protected]:~/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)

四、测试命令:
    [email protected]:/ # iwconfig wlan0
    RTL871X: rtw_wx_get_rts, rts_thresh=2347
    RTL871X: rtw_wx_get_frag, frag_len=2346
    wlan0     unassociated  Nickname:"<[email protected]>"
              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

    [email protected]:/ # 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
    [email protected]:/ # 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

    [email protected]:/ # 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-26 18:56:38

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

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

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

wifi 驱动移植范例

RT3070wifi模块的移植  http://linfengdu.blog.163.com/blog/static/11771073201102103923846/ 平台:TI dm6441, ,linux2.6.18, wifi:RT3070 我看wifi模块上没有写是镭凌公司的,因为公司同事是在另一个公司买的,但是当我看模块的驱动手册时,看到了驱动模块是rt3070sta.ko,狗狗一下后知道了一切.于是:下载了wifi驱动. wifi驱动是DPO_RT3070_LinuxSTA_V2[1

I.MX6 Android can-utils 移植

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

全志A20 ap6210 wifi模块移植

1. 编译wifi相关功能为模块,生成bcmdhd.ko:由bcmdhd.ko的模块信息可知,该模块依赖于cfg80211.ko和rfkill.ko. 2. 写脚本,开机自动加载wifi模块. 3. 使用命令#ifconfig wlan0 up开启WIFI. 开启wifi需要加载2个固件:fw_bcm40181a2.bin 和 nvram_ap6210.txt. 根据芯片ID(ap6210内部使用bcm43362)选择固件 fw_bcm40181a2.bin(该固件名称程序中定义) nvram_

全志A20 ap6210 wifi模块移植2

1. 编译wifi相关功能为模块,生成bcmdhd.ko:由bcmdhd.ko的模块信息可知,该模块依赖于cfg80211.ko和rfkill.ko. 2. 写脚本,开机自动加载wifi模块. 3. 使用命令#ifconfig wlan0 up开启WIFI. 开启wifi需要加载2个固件:fw_bcm40181a2.bin 和 nvram_ap6210.txt(bcm43362的配置文件). 根据芯片ID(ap6210内部使用bcm43362)程序自动选择固件 fw_bcm40181a2.bin

wifi驱动移植

目标板:Hi3518 内核版本:linux3.0.8 1.修改makefile #PLATFORM = PC //注释掉 PLATFORM = HI3518 //支持平台 ifeq ($(PLATFORM),HI3518) LINUX_SRC = /root/hi3518/linux-3.0.y //内核路径 CROSS_COMPILE = /opt/hisi-linux-nptl/arm-hisiv100-linux/target/bin/arm-hisiv100nptl-linux- //工

wifi详解(五)

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

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

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

Android KitKat 4.4 Wifi移植之Wifi driver

本文讲述在Linux 3.10下Realek RTL8723A Linux Wifi 驱动的移植. Prerequisites 硬件平台:Atmel SAMA5 软件平台:Linux 3.10 + Android 4.4 Wifi模组:RTL8723AU (USB接口) Realtek RTL8723A Wi-Fi Software& Driver for Linux and Android RTL8723A_WiFi_linux_v4.1.6_7336.20130426_CCC02.zip 文