You are not logged in.
Hi,
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?
Offline
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.
f.e.
PRE_UP="ifconfig wlan0 down 2>/dev/null; sleep 2; iwconfig wlan0 mode ad-hoc 2>/dev/null"
HTH
Offline
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
error..
though connect with ifconfig/iwconfig works without problems.. reading the wiki and searching the forum didnt help much.
regards
Last edited by ichbinesderelch (2010-03-27 12:38:38)
Offline
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)
Offline
There is a similar thread:
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!
Offline