Connect to an ad-hoc network

  • Thread starter Thread starter flitjes
  • Start date Start date
F

flitjes

Hi,

I've been trying to connect to an ad hoc network for a week now, I can't figure out what's wrong.

A debain machine is setting up an adhoc network. I'm able to connect to it with my chromebook, windows and ubuntu machine.

I'm unable to setup wpa supplicant to connect to the network.

debian machine hosting the adhoc network:

wpa_supplicantconf
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

# use 'ap_scan=2' on all devices connected to the network
ap_scan=2

network={
ssid="SSID"
mode=1
frequency=2432
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="password"
}
/etc/network/interfaces
Code:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
#wpa-conf /etc/wpa_supplicant/wpa.conf
wpa_conf /home/flitjes/wpa_supplicant/wpa_supplicant-adhoc.conf
address 192.168.1.1
netmask 255.255.255.0

iface home inet dhcp
iface default inet dhcp
This is working correctly
Debian machine with the connect setup (the one with the troubles)
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

ap_scan=2

network={
ssid="SSID"
psk="password"
}
/etc/network/interfaces
Code:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
#wpa-conf /etc/wpa_supplicant/wpa.conf
wpa_conf /home/flitjes/wpa_supplicant/wpa_supplicant-adhoc-connect.conf
address 192.168.1.2
netmask 255.255.255.0

iface home inet dhcp
iface default inet dhcp
What should the config be to connect to this adhoc network?
I've tried everything and can't seem to figure this out. Adding and changing the network params and no combination seems to work. The simple config works when connecting to a router with WPA encryption. (commenting the ap_mode line)
Could someone help me?

Continue reading...
 
Back
Top