大神们好:

# ./hostapd /mnt/hostapd.conf 
Configuration file: /mnt/hostapd.conf
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Bad address
Could not enable hostapd mode for interface wlan0
hostap driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started以上是我交叉编译hostapd后,使用hostapd工具切换wifi芯片到ap模式遇到的问题,wifi芯片型号为rtl8188ftv,还请大神们帮忙,谢谢了。
编译hostapd的时候,CONFIG_DRIVER_NL80211=y 这一个我没有打开,使用的是CONFIG_DRIVER_HOSTAP=y;我的hostapd.conf配置如下:interface=wlan0
#driver=8188fu
ssid=hostapdTest
channel=1
hw_mode=g
auth_algs=1
ignore_broadcast_ssid=0
ctrl_interface_group=0
wpa=3
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
#ieee80211n=1

解决方案 »

  1.   

    后面楼主成功没有?囧,现在csdn 人气这么差了吗?
      

  2.   

    楼主 Could not enable hostapd mode for interface wlan0
    hostap driver initialization failed.
    wlan0: interface state UNINITIALIZED->DISABLED 这个问题我遇到过,我来回答一下吧,这个主要是没关闭wlan0 ,要先关闭,设置一下和udhcpd.conf一样 的IP ,就不会出现这个错误了。
      

  3.   

    1, using the driver from Realtek RTL8188EUS_linux_v5.3.9_28540.20180806.zip  package.
    2, download wpa_supplicant-v2.7 and hostapd-v2.7 from http://w1.fi/
    3, in hostapd, you must enable the nl82011 driver support.4, the Realtek FTP server is :ftp://ftp3.realtek.comuser:RTL8188E
    passwd: M6b3Er(8818EUS/ETV/8189ES)PS: the newest driver support is 5.7.6.1, you may test it if you like