You are not logged in.
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
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
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
If you are too lazy to follow the link, here is the final product.
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=30I added DHCP_TIMEOUT setting just to make sure dhcp won't fail due to slow DHCP communication
Offline
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