Solved RTL8188CUS WiFi Access Point

Hi All,

I'm trying to build an Access Point with my Raspberry Pi on FreeBSD to make in the future a Free WiFi based on Tor.
I'm not a beginner so the install and config was the easy part.
I've also bought The Book of PF 3rd to help me for this task and another
But now, I can't make it work and I didn't find any solution on Google.

So, the wifi adapter is RTL8188CUS and firmware is already accepted.
I can scan network on wlan0 around me after this command ifconfig wlan0 create wlandev urtwn0.

In my book, to up the interface for hostap, I've to enter this command: ifconfig ral0 up mediaopt hostap mode 11g chan 1 nwid unwiredbsd nwkey 0x1deadbeef9.
So I change it like this: ifconfig wlan0 up mediaopt hostap mode 11g chan 1 nwid unwiredbsd nwkey 0x1deadbeef9
but I've got this
Code:
ifconfig: chan: bad value
So I've change the command but another warning appear:
ifconfig wlan0 up mediaopt hostap mode 11g nwid unwiredbsd nwkey 0x1deadbeef9 idem with urtwn0
Code:
ifconfig: SIOCS80211: Invalid argument

I've found on this website another command I've modified but still the same:
ifconfig ral0 inet 192.168.1.1 netmask 255.255.255.0 ssid freebsdap mediaopt hostap channel 4
Got this:
Code:
ifconfig: SIOCS80211: Invalid argument

I'm not very familiar with Wifi on Unix, but I've working on it a lot before wrote on this forum.
Maybe you can help me ??

Thanks
 
A couple of things to point out:
Not this:
Code:
mediaopt hostap
Use:
Code:
wlanmode hostapd

Not this:
Code:
nwkey
Code:
wepkey
Use:
WPA not WEP. WEP is not secure.

In general though, the Handbook has a bunch of good info on Wireless. It shows how to use ifconfig(8) to initially configure things as well as the persistent configuration after a reboot using /etc/rc.conf and /etc/hostapd.conf options for WPA.
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html
 
I know that, I've read the man page.
I forgot to wrote it:

ifconfig urtwn0 up wlanmode hostap mode 11g channel 1
No success:
Code:
ifconfig: wlanmode: bad value
 
If I follow the Handbook, I've got this:
ifconfig wlan0 create wlandev urtwn0 wlanmode hostap
Code:
ifconfig: SIOCIFCREATE2: Operation not supported
 
Damn, I've got my answer:
ifconfig wlan0 list caps
Code:
drivercaps=2181c001<STA,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN>
 
Very few USB Wifi adapter support hostap because they are targeted at the average consumer that will never need hostap mode. That said, I have used some USB adapters that use the run(4) driver in hostap mode. Not very successfully because the adapters tended to lock up very quickly for no apparent reason or have issues with signal quality that were only cured by a complete reboot of the machine.
 
No, you can't!! If it didn't show APMODE, you're screwed!
I take a Linksys WRT54G and put DD-WRT on it to do what I want for my WiFi.
 
Back
Top