I'm recently observing a problem for connecting in ad-hoc mode with netcfg
I was using this configuration to connect
PRE_UP="ifconfig wlan0 down; iwconfig wlan0 mode ad-hoc"
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?
I read in the wiki that whatever you put in your PRE/POST-scripts should have a zero output or netcfg will stop connecting. You should end every command with '2>/dev/null' without the quotes.
PRE_UP="ifconfig wlan0 down 2>/dev/null; sleep 2; iwconfig wlan0 mode ad-hoc 2>/dev/null"
I have the same problem right now connecting to my android phone(i suggested essid hero comes from the hero phone ), did you find any solution on how to connect with netcfg?
my profiles for connecting to the phone looks the same, but still no result, getting
> WPA Authentication/Association Failed
though connect with ifconfig/iwconfig works without problems.. reading the wiki and searching the forum didnt help much.
Last edited by ichbinesderelch (2010-03-27 12:38:38)
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?
Last edited by manouchk (2010-12-24 17:08:51)
There is a similar thread:
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!