![]() |
Connect to WLAN from command line
Hi!
I'd like to know is there some way to connect to WLAN from command line? I need to connect to the network right after Nokia boot. There is an only one access point. Thanks in advance. Michael |
I have not try this on maemo but you can give it a try... be care full I am not responsible if you brick your N770.
You need to edit the /etc/network/interfaces file to something like this.... Code:
|
If is secure than you need to follow aditional steps..
And if you just want to do it from xterm... ifconfig eth1 up (bring up specified interface) iwconfig eth1 mode managed key [WEP key] (128 bit WEP use 26 hex characters, 64 bit WEP uses 10) iwconfig essid "[ESSID]" (Specify ESSID for the WLAN) or iwlist scan to scan for AP. |
Hi,
Thanks a lot for your suggestions. More or less I understand how it should be done :) But I'm curious a bit regarding Nokia's file interfaces. I found that it's very strange that this file doesn't contain wlan0 device. Can you post your file, for example? |
Here is my interface file...
Code:
auto lo |
Hmmm ... My file interfaces looks the same. So, I should add some wireless-* options to the eth0 and use wlan0 to bring up network interface? Because, when I try to run
Code:
ifconfig eth0 |
Yes use wlan0
|
Well, I run following commands to bring up WLAN:
ifconfig wlan0 up # without this iwconfig gives me an error that device wlan0 not found iwconfig wlan0 enc MY_NET_KEY mode managed essid MY_NET_ID channel 6 I see that command passes without errors (I use iwevent) but IP address is not given by DHCP and nework interface is not up. What I do wrong? |
Did you install the wireless tools?
https://maemo.org/maemowiki/Applicat...e89da6ba5c2564 |
Sure. I couldn't call iwconfig and iwevent without them
|
All times are GMT. The time now is 00:22. |
vBulletin® Version 3.8.8