Comments (6)
We use hostapd with driver=nl80211 to host access point on rtl8723bu chip. It works.
from rtl8723bu.
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.
Make certain that configuration symbol CONFIG_IOCTL_CFG80211 is defined in your build.
from rtl8723bu.
@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.
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.
@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)
- Cannot run dirver on OpenWRT 19.07 MT7688 HOT 10
- Kernel 4.1.15 Can only compile the driver as a module but not into the kernel? HOT 4
- Wifi unusable on Beaglebone Black Enhanced, kernel exceptions HOT 6
- Cann't be build with kernel 5.10 HOT 1
- After disconnecting from an AP, does not connect to it again. HOT 8
- Errors in make with 5.11 kernel and branch v4.3.16 HOT 2
- dumping efuse log on connecting the usb stick? HOT 1
- wifi not running realtek8723b network adapter HOT 1
- help to build inside android kernel tree HOT 3
- Driver Build Fails on Kernel 5.15-rc5: Header File net/ipx.h Removed from Kernel Source Tree HOT 1
- make install errors - Ubuntu 21 - kernel 5.13.0-27-generic - Intel(R) Celeron(R) N4020 CPU @ 1.10GHz HOT 6
- Warning: comparison of distinct pointer types lacks a cast HOT 1
- Driver error installing in kernel 5.13.0, ubuntu 21.10 HOT 5
- Currently fails with Kernel 5.18rc7 HOT 2
- compile error with linux519: incompatible-pointer-types HOT 2
- Not working in kernel 6.1.9 HOT 4
- Error "dkms autoinstall" nvidia jetson HOT 1
- compile error in 6.7rc - incompatible pointer type HOT 3
- Information for 8723bu on Fedora 40 HOT 3
- eduroam does not work with rtl8723bu, but works with rtl8xxxu from kernel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtl8723bu.