You are not logged in.

#1 2010-02-24 09:56:14

pedepy
Member
Registered: 2007-02-21
Posts: 198

adhoc wifi connection unstable after resume

sometimes, when i resume from hibernate, the adhoc connection i use to tether my iphone to my laptop will not "hold". it does connect fine, but sometimes it will just 'drop' after a couple seconds. sometimes it will stay connected for a few minutes but most of the time it will drop again - provided it's one of those times it decided to not work for some reason.

unload and reloading the iwl3945 module does nothing. restarting the network daemon is also useless. turning off & on my wireless interface is futile. only restarting the laptop, Windows(TM) style, solves the problem. that is, when it occurs.

i have no log whatsoever to work with; dmesg reports no errors. neither does the iphone, for that matter. google seems baffled at my query - so i turn to you guys. ..

maybe if i had some way to monitor what's going on, i would have something to start from ..

Last edited by pedepy (2010-02-24 09:57:03)


chupocabra ... psupsuspsu psu psu

Offline

#2 2010-03-20 06:33:05

pedepy
Member
Registered: 2007-02-21
Posts: 198

Re: adhoc wifi connection unstable after resume

instead of starting a 10th thread about this, i'll just bump it.

this issue is persistent and easily reproducible. i can't find anything on google other than my own forum posts can somebody please think about this for a minute and try and see what the issue might be and/or give me a suggestion as to how i could at least gather a little bit of information about what's going on?.

the problem is obviously on the "linux" side, since it will drop any adhoc connections from any other device i try it with. also, restarting the laptop is the only method that fixes the problem - and it fixes it everytime. no matter what else i try the issue remains.


chupocabra ... psupsuspsu psu psu

Offline

#3 2010-03-24 06:10:01

pedepy
Member
Registered: 2007-02-21
Posts: 198

Re: adhoc wifi connection unstable after resume

still there .. bump


chupocabra ... psupsuspsu psu psu

Offline

#4 2010-03-24 06:22:23

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: adhoc wifi connection unstable after resume

Hmm, well I do the same thing and have noticed that the connection sometimes drops too (not sure if suspend is related to it), but re-running my tethering script always fixes it.  Here's the contents of that script:

#!/bin/sh

. /etc/rc.conf
. /etc/rc.d/functions

die() {
  stat_die
  exit 1
}

if [ -n "$1" ]; then
  essid="$1"
else
  essid="<default essid>"
fi

if [ -n "$2" ]; then
  key="$2"
else
  key="<default key>"
fi

netcfg -i wlan0
stat_busy "Creating Network $essid"
ifconfig wlan0 down || die
iwconfig wlan0 mode ad-hoc essid "$essid" key "$key" channel 6 || die
ifconfig wlan0 10.3.3.3 up || die
stat_done

If that doesn't work, you may want to ask the iwl3945 devs directly if they have suggestions.

Also, if your iPhone is jailbroken, check out "iproxy" from usbmuxd in the AUR for tethering over USB.

Offline

#5 2010-03-27 21:42:58

pedepy
Member
Registered: 2007-02-21
Posts: 198

Re: adhoc wifi connection unstable after resume

i look it up ...


here's what bugs me: so far, for me, only restarting consistently and reliably solves the problem. i've tried to 'recreate' the steps of a reboot on my networking setup but i cant seem to figure out what more there could be to it other than unloading and reloading the wifi module, the network daemon, shutting down and putting back up wireless interfaces, killing and wiping all dhcp leases .... ??


chupocabra ... psupsuspsu psu psu

Offline

Board footer

Powered by FluxBB