You are not logged in.

#1 2012-10-14 11:18:57

kalski
Member
Registered: 2010-11-02
Posts: 7

[Solved] Missing example profile for netcfg wifi Ad-Hoc network

Hi guys,

Yesterday I needed to create netcfg profile for my ad-hoc network. This seemed a non-trivial task because there was no example profile under /etc/network.d/examples from where to base my profile and also I couldn't find any tool for creating such a profile automatically.

I just wanted to share my approach in case someone hits the same situation by the time netcfg package gets an example profile for this case.

I had the ad-hoc ssid brought up by another device. Then I used on the archlinux box wifi-menu to build a profile from which to start. After not being able to start it I debugged a little bit and finally found out I need to set the ADHOC variable to 1 and WPA_DRIVER to wext(it just didn't work without explicitly setting this, although for managed mode - non adhoc - it's not an explicit requirement). Documentation of netcfg-profiles I found in its man page here.

Fortunately this proved enough so in the end I had a running netcfg wifi ad-hoc profile.

Last edited by kalski (2012-10-23 19:40:07)

Offline

#2 2012-10-14 14:19:54

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,491

Re: [Solved] Missing example profile for netcfg wifi Ad-Hoc network

Thanks for sharing your solution.
I guess you could pre-fix the thread title with [Solved] (by clicking edit on your first post), if you feel like it works smile
I add a linkback to your used profile for others searching - easier to put into context then:
  edit: link deleted, see helpful post below

Last edited by Strike0 (2012-10-14 14:44:29)

Offline

#3 2012-10-14 14:24:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Missing example profile for netcfg wifi Ad-Hoc network

If you are too lazy to follow the link, here is the final product.

kalski wrote:

For completeness I am adding the whole profile I have:

CONNECTION='wireless'
DESCRIPTION='Automatically generated profile by wifi-menu tweaked a little bit to enable ad-hoc operation'
INTERFACE='wlan0'
SECURITY='wep'  
ESSID=kalski_mobile_router
IP='dhcp'
KEY=1234567890
NETCFG_DEBUG=1
ADHOC=1
WPA_DRIVER=wext
DHCP_TIMEOUT=30

I added DHCP_TIMEOUT setting just to make sure dhcp won't fail due to slow DHCP communication

Offline

#4 2012-11-02 06:01:16

wprater
Member
Registered: 2012-10-28
Posts: 6

Re: [Solved] Missing example profile for netcfg wifi Ad-Hoc network

Thanks, Im using something very similar, however, Im also using it to create the AdHoc network.  Netcfg is spitting out errors because also trying to join the network.  Any ideas?

It's calling this command multiple times, which is failing.

# wpa_cli -i wlan0 -p /run/wpa_supplicant status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

Offline

Board footer

Powered by FluxBB