wifi-adhoc

wifi-adhoc

Postby telliev » Aug 18th, '15, 20:23

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 ;)
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: wifi-adhoc

Postby doktor5000 » Aug 18th, '15, 22:19

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?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: wifi-adhoc

Postby telliev » Aug 20th, '15, 16:52

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?
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38

Re: wifi-adhoc

Postby doktor5000 » Aug 20th, '15, 20:56

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: wifi-adhoc

Postby telliev » Aug 21st, '15, 15:26

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.
telliev
 
Posts: 39
Joined: Mar 8th, '15, 18:38


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron