I've updated the kernel from 4.14.66 to 4.14.76 and rebuilt all from source to update the rest of the system at the same time.
When tried to connect the WiFi client, the router reboots with the following serial dump:
Does someone followed up on this ? i have helped package a rtl8821cu driver which shows in OpenWrt ( i built the master branch with a kernel 5.4 ) but it misses the relevant iwinfo support to have it used as an AP
No specific iwinfo support is needed, but native nl80211 support is required for hostapd to work. Furthermore device, firmware and driver must signal the appropriate feature flags (AP mode, interface combinations, regdom, etc.) to the kernel (and indirectly hostapd, via nl80211), but that's basic driver functionality.
OpenWrt doesn't really need any driver specific knowledge to support a device, all nl80211 based drivers are treated alike (nl80211 is a generic abstraction layer).
Realtek nl80211 is shitty ( hence iwinfo showing only Unknown values and OpenWrt on top of that not seeing it as an AP-capable driver), just found this for reference and will try to build it on my rebased OpenWRT tree ( after adaptation if needed): https://github.com/pritambaral/hostapd-rtl871xdrv
Hi , i am also have orange pi r1 board and i am tryin to bring wifi support . I am beginner with openwrt
So i tried your solution but didn't work. When i typed "wifi status" and "modprobe 8189es" in command line there is nothing and i confused about editing mac80211.sh
Shall i remove everything in this file and write only code below?
made the following modification in the /package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh :
for wdev in $(list_phy_interfaces "$phy"); do
ip link set dev "$wdev" down 2>/dev/null
# iw dev "$wdev" del
my kernel version:
Linux OpenWrt 4.14.99 #0 SMP PREEMPT Thu Feb 14 20:43:07 2019 armv7l GNU/Linux
Add explicit memset call to avoid potentially corrupt data. (#277)
In kernel 4.19, I saw a kernel crash where kfree was trying to free
some garbage pointer. This occurred because this structure wasn't
explicitly initialized to 0.
Now rtl8189es's ap mode works normally, but client mode still not works.
I can scan other ap, but can't save client mode settings. (Only one of the client and ap modes can be selected by Makefile?)
on older version, once saving client mode settings, client mode works normally. Buf after restarting, wifi can't run.
If you can provide some hints, I can try to fix these problems, but this is likely to be a long-term process. The driver code of realtek is not easy to read.