[maemo-users] [maemo-users] Re: Connect to WLAN from command line
From: Pigeon pigeon at pigeond.netDate: Sat Jan 6 00:57:00 EET 2007
- Previous message: [maemo-users] Connect to WLAN from command line
- Next message: [maemo-users] Re: Connect to WLAN from command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Download the iwconfig packages, once you got them you will have the
> iwconfig iwspy iwlist etc. Look for a howto to use it. Remember
> first to ifup wlan0.
> iwlist will give you the broadcast AP, but if you want to put one
> manually you should use
> iwconfig wlan0 ssid "XYZ" key 1011010101AB
>
> Well, I installed wireless tools package and tried to use it:
I had to do something similiar. However iwconfig simply won't work
properly for some reason, I asked around a while ago:
http://www.mail-archive.com/maemo-users@maemo.org/msg01896.html
Anyway, I figured a working but dodgy way to get it working.
Firstly you have to setup the wireless connection at the usual GUI
configuration. Make sure this works.
Then I have a script that runs:
dbus-send --type=method_call --system --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:${IAP} uint32:0
where $IAP is the identifier (name) of the wireless connection you've
setup in the GUI config.
What's even worse is, I have to run that command line every 5
seconds or so (I put it in the script in a while loop to run that and
then sleep 5), as the connection daemon seems to disconnect
automatically. I think it disconnects if there's no application using
the N770 framework/lib to make network connections. So if I have some
custom software that uses the network it won't help either.
Pigeon.
- Previous message: [maemo-users] Connect to WLAN from command line
- Next message: [maemo-users] Re: Connect to WLAN from command line
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
