wpa_supplicant 交叉编译

交叉编译 wpa_supplicant 

  指定交叉编译环境:

    CC=arm-linux-xxxxx-gcc

  运行错误 :

     wlan0: Unsupported driver 'nl80211' 

    在.config中添加支持nl80211

      CONFIG_DRIVER_NL80211=y

  编译错误:

    driver_nl80211.c:6182:23: error: too few arguments to function 'genl_ctrl_alloc_cache'

    在.config中添加libnl并且指定libnl的库和头文件路径

      CFLAGS += -I../../libnl-3.2.25/include
      LIBS += -L ../../libnl-3.2.25/lib/.libs

      CONFIG_LIBNL20=y

posted @ 2022-04-09 10:11  daiker  阅读(656)  评论(0编辑  收藏  举报