This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI8148 + wl1271 hostapd complaining about lack of nl80211 support

Other Parts Discussed in Thread: WL1271

I’m trying to get hostapd to behave and run on my TI8148 + wl1271 system. I recompiled hostapd with nl80211 support, by adding:

 

CONFIG_LIBNL20=y

CONFIG_DRIVER_NL80211=y

 

to the .config for hostapd. Then I try to run hostapd on my target:

 

root@bullfrog-060005:/lib/firmware$ hostapd /media/sda1/hostapd.conf

Configuration file: /media/sda1/hostapd.conf

Line 2: invalid/unknown driver 'nl80211'

 

Here’s my conf file, for reference:

interface=wlan0

driver=nl80211

ssid=BATTLETOAD

channel=1

hw_mode=g

preamble=1

dtim_period=2

beacon_int=100

logger_syslog=-1

logger_syslog_level=2

logger_stdout=-1

logger_stdout_level=2

dump_file=/tmp/hostapd.dump

ctrl_interface=/var/run/hostapd

ctrl_interface_group=0

supported_rates=60 90 120 180 240 360 480 540

basic_rates=60 90 120 180 240

ssid=MAC_AP

max_num_sta=5

macaddr_acl=0

auth_algs=3

ieee80211d=0

uapsd_advertisement_enabled=1

wep_rekey_period=0

own_ip_addr=127.0.0.1

wpa_group_rekey=0

wpa_strict_rekey=0

wpa_gmk_rekey=0

wpa_ptk_rekey=0

#ap_table_max_size=255

#ap_table_expiration_time=60

eap_server=1

#disassoc_low_ack=1

ap_max_inactivity=4294967295

 

 

Any tips on why hostapd is being such a butt? 

  • Hi David,

    To use CONFIG_DRIVER_NL80211=y in hostap / wpa_supplicant, you need to enable CONFIG_NL80211_TESTMODE=y in the kernel config.

    Can you please cross check, whether it is present or not?

    If not, you need to recompile the kernel by enabling CONFIG_NL80211_TESTMODE. Then build and use hostap as you tried previously.

    Regards,

    Pandu.

  • Pandu,

    Thank-you for your post. That did indeed get me a little further. Now when I try to load hostapd, I get the following:

    hostapd /media/sda1/hostapd.conf
    Configuration file: /media/sda1/hostapd.conf
    [22570.150000] Powering off wl12xxPowering on wl12xx
    [22570.680000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    nl80211: Failed to set interface wlan0 into AP mode
    nl80211 driver initialization failed.
    rmdir[ctrl_interface]: No such file or directory
    ELOOP: remaining socket: sock=4 eloop_data=0x5c718 user_data=0x5e2e8 handler=0x2a294
    ELOOP: remaining socket: sock=6 eloop_data=0x5fbd0 user_data=(nil) handler=0x31a68

    Any ideas what might be happening now? Regardless, thank-you for helping me get a little further.

  • Hi David,

    Can you confirm whether you are able to use it station mode?

    If so, then it should straight forward to use in AP mode also.

    Can you share the output of "ifconfig -a" and "ifconfig wlan0 up"?

    Regards,

    Pandu.