https://bbs.archlinux.org/viewtopic.php … 21#p869921
There is a solution for manual connection there. It though may not work with the deamon net-auto-wireless. I'm checking this assumption right now!
]]>CONNECTION="ethernet"
DESCRIPTION="wireless connection to android tether"
INTERFACE=wlan0
IP="dhcp"
PRE_UP="iwconfig wlan0 essid AndroidTether mode Ad-Hoc key s:password"
Thank you ichbinesderelch for you idea. It works when running manually. I just think that I can't get the profile to run automatically at bootime using net-auto-wireless Deamon.
I think it is a bug of netcfg. What do you think about that?
]]>f.e.
PRE_UP="ifconfig wlan0 down 2>/dev/null; sleep 2; iwconfig wlan0 mode ad-hoc 2>/dev/null"
HTH
]]>I'm recently observing a problem for connecting in ad-hoc mode with netcfg
I was using this configuration to connect
more /etc/network.d/hero
CONNECTION="wireless"
INTERFACE=wlan0
PRE_UP="ifconfig wlan0 down; iwconfig wlan0 mode ad-hoc"
#QUIRKS=(prescan predown)
SCAN="yes"
SECURITY="none"
ESSID="hero"
IP="dhcp"
TIMEOUT=20
With new netcfg version, it fails to connect.
I though can connect manually to the unencrypted connection doing this:
ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid hero
dhcpcd wlan0
ANy solution for that?
]]>