HowTos/WifiTosa2.6WepGpe
From OpenZaurus
< HowTos
This is for users of the OZ 3.5.4.1 (kernel 2.6) beta testing on Tosa SL-6000L
The driver for the SL-6000L's internal 802.11b "wifi" adaptor relies on code from Sharp and uses wlan-ng differently from other drivers and thus the syntax of the configuration is different.
At present, the /etc/network/interfaces file on OZ cannot be correctly managed by the GPE network configuration application - it will not set up WEP. It is believed that the Opie management page has been patched to work.
Here's an example
iface wlan0 inet dhcp
wireless_type wlan-ng
wireless_mode managed
wireless_enc on
wlan_ng_authtype opensystem
wlan_ng_key0 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key1 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key2 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key3 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wireless_essid ACCESSPOINTNAME
pre-up modprobe ohci-hcd
pre-up modprobe prism2_usb
post-down rmmod prism2_usb
post-down rmmod ohci-hcd
Note that the same config can be used with ad-hoc - just change "managed" to "ad-hoc". You can also set a static IP config:
iface wlan0 inet static
wireless_type wlan-ng
wireless_mode ad-hoc
wireless_enc on
wlan_ng_authtype opensystem
wlan_ng_key0 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key1 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key2 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wlan_ng_key3 aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
wireless_essid ACCESSPOINTNAME
gateway 192.168.100.1
broadcast 192.168.100.255
netmask 255.255.255.0
address 192.168.100.2
pre-up modprobe prism2_usb
pre-up modprobe ohci-hcd
post-down rmmod ohci-hcd
post-down rmmod prism2_usb

