Page 1 of 1

wifi-adhoc

PostPosted: Aug 18th, '15, 20:23
by telliev
Hello! Is there any way to turn my pc into a wifi-hotspot while using wifi connection? The idea is to recieve internet from a wifi-router on my pc, and from the same pc to retransmit the internet like a hotspot. Thanks ;)

Re: wifi-adhoc

PostPosted: Aug 18th, '15, 22:19
by doktor5000
Yes there is, the magic keyword is hostapd.
See e.g. https://wiki.archlinux.org/index.php/So ... cess_point or some tutorial like https://seravo.fi/2014/create-wireless- ... nt-hostapd
You can also use the forum search function for some further configuration.

edit doktor5000:
Although that depends on whether the driver for your wireless chipset supports the AP mode. You can check that as root via iw list and check the Supported interface modes section
Can you please show the output as root of
Code: Select all
lspcidrake -v
so others can check if there may be alternative drivers for your wireless chipset?

Re: wifi-adhoc

PostPosted: Aug 20th, '15, 16:52
by telliev
Great! But i'm having a hardship with that. I'm connected to my Wifi router and when i start hostapd it stops the internet to my computer and it turns it to AP. I found topics how to make a bridge from eth to wlan but im getting the signal from wlan, not from eth. Is there any way to stay connected to wlan and to have an AP at the same time?

Re: wifi-adhoc

PostPosted: Aug 20th, '15, 20:56
by doktor5000
Yes, that is possible but even more dependent on the wireless chipset you use.
Described in the arch wiki page I've linked to above:
https://wiki.archlinux.org/index.php/So ... -Fi_device

Re: wifi-adhoc

PostPosted: Aug 21st, '15, 15:26
by telliev
Thanks! I set up hostapd.conf, but.. problems came:
Using WPA, when i try to connect to my computer via my phone, it says: Incorrect password. When i switch to WEP it accepts the password but cannot get an IP.

I have these settings:
Code: Select all
interface=wlan0_ap
bridge=br0
ssid=AP
hw_mode=g
channel=11
wpa=2
wpa_passphrase=xxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

The other settings are the defaults.