WEP with FreiFunk firmware (WRT54GL)
Posted: Fri Aug 25, 2006 4:10 am
I wanted to configure WEP on our WRT54GL router, running the FreiFunk firmware (v1.2.5), but unfortunately the web-interface doesn't provide any functionality for doing so. (of course! ..because it's supposed to be FREIfunk! )
however, it "should" work with those nvram settings:
(see the OpenWRT NVRAM Docs for details)
Very important:
Those settings must be applied to the broadcom driver - Unfortunately, executing the "/sbin/wifi" command should do that, but doesn't move a finger in my case.
It's necessary to pass the WEP settings on to the "wl" utility (shouldn't be). *sigh*
But here's how that's done:
(I know this is an ugly hack, but it's 5a.m. right now and I was too lazy to do some string parsing of the NVRAM variables)
If things went ok, you should see WEP in the list of the wifi-driver-capabilites, when executing "wl status":
....to be continued....
however, it "should" work with those nvram settings:
Code: Select all
nvram set wl0_wep=on
nvram set wl0_key=1
nvram wl0_auth=0
nvram set wl0_wep_bit=128
nvram set wl0_key1=s:mykeygoeshere
nvram set wl0_key2=s:mykeygoeshere
nvram set wl0_key3=s:mykeygoeshere
nvram set wl0_key4=s:mykeygoeshere
nvram commit
Very important:
Those settings must be applied to the broadcom driver - Unfortunately, executing the "/sbin/wifi" command should do that, but doesn't move a finger in my case.
It's necessary to pass the WEP settings on to the "wl" utility (shouldn't be). *sigh*
But here's how that's done:
Code: Select all
#!/bin/ash
WEP_ON=$(nvram get wl0_wep)
WEP_KEY="mykeygoeshere";
# Configure the WLAN using wl:
wl addwep 0 $WEP_KEY
wl addwep 1 $WEP_KEY
wl addwep 2 $WEP_KEY
wl addwep 3 $WEP_KEY
wl wep $WEP_ON
wl primary_key 0
/sbin/wifi
wl status
If things went ok, you should see WEP in the list of the wifi-driver-capabilites, when executing "wl status":
Capability: ESS WEP ShortSlot
....to be continued....