Linux下WiFi工具wireless_tools交叉编译,及其支持生成iwconfig使用的内核配置

  1. 内核的配置:

General setup  ---> Kernel compression mode (LZMA)  --->LZMA

  [*] Networking support  ---> 

       Networking options  --->

          <*> Packet socket

          <*>   Packet: sockets monitoring interface   

          <*> Unix domain sockets

          <*> Transformation user configuration interface

          -*- Transformation migrate database

          <*> PF_KEY sockets

          [*]   PF_KEY MIGRATE

          [*] TCP/IP networking

          [*]   IP: multicasting

         <*>   Large Receive Offload (ipv4/tcp)   

         <*>   INET: socket monitoring interface

         [*]   TCP: MD5 Signature Option support (RFC2385)

         [*] Network activity statistics tracking                                      

    -*-   Wireless  ---> 

        <*>   cfg80211 - wireless configuration API

        [*]     nl80211 testmode command

        [*]     enable powersave by default

        [*]     cfg80211 wireless extensions compatibility

       <*>   RF switch subsystem support  --->

 Device Drivers  ---> [*] Network device support  --->

       [*]   Network core driver support

       <*>     Generic Media Independent Interface device support

       [*]   Ethernet driver support  --->

       <*>   PHY Device support and infrastructure  --->

   [*]   Wireless LAN  --->

       <*>   Broadcom IEEE802.11n embedded FullMAC WLAN driver

       [*]     USB bus interface support for FullMAC driver

       <*>   IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)

2、wireless_tools交叉编译:

  • 下载地址:https://hewlettpackard.github.io/wireless-tools/Tools.html
  • tar zxvf tar zxvf wireless_tools.29.tar.gz
  • cd  wireless_tools.29
  • vi Makefile ,添加修改CC = arm-hisiv400-linux-gcc     AR = arm-hisiv400-linux-ar      RANLIB = arm-hisiv400-linux-ranlib   
  • make
  • 在当前目录下回生成iwconfig和iwlist工具,复制到交叉编译的平台

3、有时候即使iwconfig和iwlist工具编译成功,但会出现wlan0 no wireless extensions,或者出现wlan0  Interface doesn't support scanning,如图:

这是内核选项没有选对对iwconfig的支持选项,这时候你就要好好检查一下你的内核配置了。

你可能感兴趣的:(工具安装移植,wifi)