could it be that the RTL8192CU driver is unable to host an AP?
I’m getting the following error message when tryting to do so:
root@osmc:/# hostapd -d -B /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x12c2648
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.
root@osmc:/#
Wifi is up, wlan0 has an IP address etc… bascially hostapd is the only thing thats missing, but it can’t get into mode(3).
On a side note: i think there should be more information in the FAQ/wiki about stuff like compiling kernel modules/drivers yourself, or information on systemd (i was very confused at first when switching from raspbmc to osmc, when my upstart scripts did nothing…). Other than that OSMC likes great already, keep up the good work!
did not really make any realy progress… i did replace the drivers with some modified realtek drivers (basically the ones you can download from their website modified so that you can compile them for the new kernels), with which i was able to actually run hostapd (i also compiled several versions of hostapd, no success with any of the versions 0.8, 2.0 and i think 2.4 or whatever the newest at the time was) and actually SEE the AP with other devices, but i was unable to connect to it.
Also tried a different (same model) dongle and another one with the RTL8188something chipset, same problem. Pretty sure this has to do with the RTL8192CU as opposed to the 8192CU drivers… but since i wasn’t able to get it running even with 8192CU (although this way i can at least see the AP), there might be more to this than JUST the drivers.
thank you for the reply cr4wler. I’m using a 8188CUS Device, would it be possible to tell me how you compiled the Realtek drives, I downloaded these Drivers and manily how to add them to hostapd, I would try it myself with the 8818.
Did you follow the included guides?
but you might have to edit the makefile, i ran into problems because of a new gcc version (add “-Wno-error=date-time” to CFLAGS), there might have been something else too, but i think they compiled with only very little modification (can’t remember exactly anymore).
if you run into problems, i can help some more, but i will be pretty busy until after this weekend and can’t guarantee that i can come back to you in a timely manner.
again though: i WAS able to compile the drivers and run hostapd without errors (or only insignificant ones), but couldn’t connect to the AP afterwards. if you manage to get it running, tell me how
hi guys, any news on that!? I’am able to start the AP, configuration testing runns fine, but I’m not able to connect to the AP, same problem as @cr4wler mentioned…
Hey,
If only I had time my friend… Almost an year past… I’m a Tank driver in the army now (1.9 years to go) …
Glad it helped you, and thank you for the kind replay.