LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wifi connection from text mode (https://www.linuxquestions.org/questions/linux-newbie-8/wifi-connection-from-text-mode-711505/)

evil_empire 03-13-2009 11:47 PM

wifi connection from text mode
 
Hi,
I haven't been able to connect to the wireless internet in text mode. I have a WEP connection at home. I know its insecure but due to hardware limitation I have to keep it like that for sometime.

I've tried wpa supplicant but failed miserably. Since I'm using WEP, I don't think I'm required to use wpa supplicant. But the simple technique of using iwconfig has failed as well.
Can anybody guide me thru this? Its more or less becoming like a dream to connect wifi from text mode. I'm loosing hope :(

I've tried,
iwconfig wlan0 essid my_essid key my_key
dhclient wlan0

few things I have noted are,
1)first I'm not associated to the AP!
2)second dhclient gets the address for my router, pings it but gets no reply

I think no 1 is causing no 2.

What could be the reason?

When I'm using wpa_supplicant, its the same. My wpa_supplicant config is as follows.

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

network={
ssid="MY_SSID"
scan_ssid=1
key_mgmt=NONE
wep_key0=2437234757
wep_tx_keyidx=0
priority=5
#auth_alg=OPEN
}

I do a
wpa_supplicant -B -Dwext -i wlan0 -c/path_to/wpa_supplicant.conf
and then
dhclient wlan0

In both of the case, first its not associated to the AP, second it shows that my router couldn't be pinged. I've also tried running wpa supplicant with -d option but couldn't figure out what was going on.

What could be the reason, what am I doing wrong? My AP doesn't use any authentication, I just have to supply the 10 digits numeric key. The ath9k driver is working fine and I can connect wifi using nm-applet.

Plzzzz Help!!!

PS: I'll post the exact log messages in the second post.

evil_empire 03-14-2009 03:05 AM

After a lot of hits and trials I've finally managed to connect wifi from the text mode both using iwconfig and wpa supplicant. I had to supply bssid for both approaches and they worked.

Now, if I could just write some scripts for them.

Thankx anyways.


All times are GMT -5. The time now is 06:35 PM.