Author Topic: wlan from console  (Read 3633 times)

Razzle

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
wlan from console
« on: November 15, 2004, 03:43:34 pm »
So far I couldn't figure out a way to bring up the WLAN device on my 6000W from console. There has to be a way to do it besides creating a new connection with the GUI.
And I want to be able to use iwconfig. Whatever I try to set with it, it always returns "SET failed on device wlan0 ; Function not implemented."
SL-6000W (Sharp 1.12)
SL-5500G (OZ 3.5.1)

MeaninglessNick

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
wlan from console
« Reply #1 on: November 15, 2004, 07:23:13 pm »
as root:

usbctl on 1
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=myssid  authtype=opensystem
ifconfig wlan0 up
ifconfig wlan0 192.168.2.17

You have to change at least the IP address and essid.  This is without WEP.  Presumably there is wlanctl-ng magic. Yeah, I was annoyed to have learn a new tool as well.

PS. as a trivia note, usbctl actually works as a normal user.

Razzle

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
wlan from console
« Reply #2 on: November 15, 2004, 08:23:24 pm »
Quote
usbctl on 1
Ah thank you, that's what I was missing.
For reference, I managed to bring up my wlan with WEP like this:

Code: [Select]
#!/bin/bash
usbctl on 1
sleep 1
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 dot11req_mibset mibattribute=p2CnfRoamingMode=1
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=00:00:00:00:00:00:00:00:00:00:00:00:00
wlanctl-ng wlan0 lnxreq_autojoin ssid="" authtype=sharedkey
ifconfig wlan0 up
route add default gw
« Last Edit: November 15, 2004, 08:24:25 pm by Razzle »
SL-6000W (Sharp 1.12)
SL-5500G (OZ 3.5.1)

cosinux

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • http://www.expert.ro
wlan from console
« Reply #3 on: November 16, 2004, 07:48:20 pm »
Hi Razzle,

What about bluetooth on english ROM? I saw you have a 6000W and I guess you have an english ROM.

Thanks!

Razzle

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • http://
wlan from console
« Reply #4 on: November 17, 2004, 02:45:12 am »
The english seemingly doesn't support bluetooth out of the box, probably because there is no 6000W outside of Japan officially.
I'm currently trying hard to get bluez working  
But luckily guylhem is very helpful.
For more details look here
SL-6000W (Sharp 1.12)
SL-5500G (OZ 3.5.1)

kangwang

  • Newbie
  • *
  • Posts: 1
    • View Profile
wlan from console
« Reply #5 on: November 20, 2004, 03:22:38 pm »
Hi Razzle and everyone else
            I have a  6000L, and i try to do exactly want u ar doing, but when i use ur code and try to connect, the return message is all "resultcode=success", but my zaurus did not connect to the wireless network.  Is there anything i need to change besides the ssid, my_ip and router_ip?  I am using 64 bit WEP key.    Can u give a bit more detail on the shell script u wrote if possible, i am not very familiar with shell script.
Thanks in advance
                   

MeaninglessNick

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
wlan from console
« Reply #6 on: November 20, 2004, 03:36:22 pm »
Err, also you need to replace the zeros with your WEP key. There should be
10 digits for a 64bit key, I think.

But maybe you knew that.