Jump to content

Recommended Posts

Guest flitjes
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...