Update 02/18/2013: it whould be a nice idea to retake this project to make it on the raspberry Pi…
Don't read furhter!!!! I've abandoned this project without reaching a solution for this. There are other places and other solutions more suitable than this.
In my fathers-in-law home there is a PC connected to the internet. However, there is no wifi router. I could do two things:
I will investigate how to do the latter, because I think that it could be useful in the future.
Most promising link:
I am using Ubuntu, so I've decided to install hostapd just out of the software center. The simpler, the better.
In the configuration file, I've changed the following lines:
ssid=Put_the_name_you_want # in my case, the country code is Spain, in your case, choose what corresponds country_code=ESP hw_mode=g # it were b by default wpa = 3 wpa_passphrase=your_password_here wpa_key_mgmt=WPA-PSK WPA-EAP
Just after saving the data, run hostapd in debug mode:
/usr/sbin/hostapd -dd /etc/hostapd/hostapd.conf
Of course, always there are problems.
I found an error
Unable to setup interface. One of the things I've tried is to start/stop the device:
ifconfig wlan0 down ifconfig wlan0 up
I've researched this point, and it seems that there must be a wpa_supplicant command that probably is failing in Ubuntu.
Following the instructions here.
It seems that the command wpa_supplicant must be run smoothly, but it doesn't.