GithubHelp home page GithubHelp logo

Comments (6)

mkborg avatar mkborg commented on September 18, 2024

We use hostapd with driver=nl80211 to host access point on rtl8723bu chip. It works.

from rtl8723bu.

MH6 avatar MH6 commented on September 18, 2024

Ok thanks for letting me know @mkborg

Unfortunately using the stock hostapd binary in Raspbian with driver=nl80211 doesn't even bring up the network at all. Did you have to build the rtl8723bu driver with any particular settings, i.e. CONFIG_AP_WOWLAN?

nl80211: interface wlan0 in phy phy0
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Using driver-based off-channel TX
nl80211: Add own interface ifindex 4
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Create interface iftype 6 (MONITOR)
Failed to create interface mon.wlan0: -19 (No such device)
nl80211: Failed to set interface wlan0 into AP mode
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211 driver initialization failed.

My hostapd.conf:

interface=wlan0
driver=nl80211
ssid=Pi
hw_mode=g
channel=11
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

I will keep working on the problem.

from rtl8723bu.

lwfinger avatar lwfinger commented on September 18, 2024

Make certain that configuration symbol CONFIG_IOCTL_CFG80211 is defined in your build.

from rtl8723bu.

MH6 avatar MH6 commented on September 18, 2024

@lwfinger It seems to be defined in autoconf.h

Do I need to use the CONFIG_AUTOCFG_CP flag when I build? It is set to no by default.

I as of yet have made no changes to the driver from the current repo version. Just did a git clone and make/make install.

from rtl8723bu.

lwfinger avatar lwfinger commented on September 18, 2024

Do not use CONFIG_AUTOCFG_CP. If you do, autoconfig.h will be replaced every time you run make, and every source file will need to be recompiled. That is a lot of work for nothing.

from rtl8723bu.

MH6 avatar MH6 commented on September 18, 2024

@lwfinger Yeah I realized that after the fact when I actually looked at what the flag did. Do you think its an issue with hostapd itself? I might see if I can compile hostapd from source.

Edit: Compiling hostapd from source did not change anything.

Edit 2: Like a dummy I just ran hostapd and not ./hostapd, so it was still running the old version. Running the hostapd I actually compiled worked beautifully. I've now used make install to replace the old version and I'm no longer having any problems. So thanks for your help guys.

If anyone has this problem in the future, I downloaded hostapd source from https://w1.fi/hostapd/, installed libnl-dev using

sudo apt-get install libnl-dev

and ran make inside the hostapd-2.5/hostapd folder. This was done on Raspbian running on a Raspberry Pi Compute Module.

Simple fix to a problem that has been plaguing me all day. Thanks again, and thanks for maintaining these drivers.

from rtl8723bu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.