First off, thank you, adga! I had exactly the same problem. I connected a dongle usb RTL8188EUS 802.11n Wireless Network Adapter to my beloved old Raspberry Pi 2 Model B Rev 1.1 and was not working as access point. This post is the only one who brought light to my problem.
Let me explain the context: I installed OSMC years ago to mirror iphone and ipads at home to my tv, and play some movies and videos there. Currently using Kodi 19.4. Simple, practical and useful for my needings. I wanted to use it for long trips by car to have my children distracted for a while, so why not using a dongle usb to create a wifi network and let them to watch those videos? By the way, controlling usage time and network connection is another story, out of the scope of this post. My problem was latest firmware available in package firmware-realtek (version 20210315-3) didn't work. I had the same messages in hostapd and nothing was shown using "iw list" command.
Then I followed your instructions and I confirm r8189eu v4.1.2 is not working as access point.
Just to (try to) help others with the same problem, let me describe steps I followed to fix the problem:
1. Starting point
lsusb show Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
iw list empty (no results)
hostapd package 2:2.9.0-21 configured with /etc/hostapd/hostapd.conf:
Code:
interface=wlan0
#bridge=br0
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
#driver=rtl871xdrv
#driver=8188eu
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=<SSID>
wpa_passphrase=<PASSWD>
Note driver entries are useless. I also disabled bridge as I have no plans (for now) to use rasp to bridge to wired connection
2. Install new firmware:
Clone Realtek firmware from github.com : lwfinger/rtl8188eu (skipping url for forum policy reasons)
Checkout branch origin/v5.2.2.4 (note branch 4.1.x does not work)
Install kernel headers rbp2-headers-5.10.78-7-osmc
Compile code: make all
Code:
$ modinfo ./8188eu.ko |head -2
filename: /home/osmc/rtl8188eu/./8188eu.ko
version: v5.2.2.4_25483.20171222
Install: sudo make install
Code:
$ cat /etc/modprobe.d/50-8188eu.conf
blacklist r8188eu
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0
Reboot raspberry
3. Check wireless connection
Code:
$ dmesg |grep 818
[ 26.200555] 8188eu: loading out-of-tree module taints kernel.
[ 26.399650] RTW: rtl8188eu v5.2.2.4_25483.20171222
[ 26.472308] usbcore: registered new interface driver rtl8188eu
Code:
$ lsmod |grep 818
8188eu 1617920 0
cfg80211 827392 1 8188eu
Now iw list show results:
Code:
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* P2P-client
* P2P-GOosmc
Note hostapd is unmasked by defaults, so enable it (sudo systemctl enable hostapd)
Code:
hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-11-06 13:48:59 CET; 3min 42s ago
Now is just a matter to configure network and test it
4. Finally, to complete the goal of this process:
- Enable uPnP on OSMC
- Connect iPad to the new wireless network
- Install VLC in ipads and allow discover the network
- All Kodi photos and videos are available