English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/broadcom-wl-util/files/wireless-broadcom.up

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2951 - (show annotations) (download)
Tue Jun 26 19:20:08 2007 UTC (6 years, 8 months ago) by tha
File size: 1388 byte(s)
Madwifi (fixing bug: #155):
 - downgraded to 0.9.2.1, because in 0.9.3.x the madwifi kernel module
   oopses in monitor mode.
 - applied debian's security fixed for 0.9.2.1, because every 
   unpatched version before 0.9.3.1 is vulnerable to three knows security
   issues (see madwifi.org).
 - converted four manual patches to the freewrt patch format
 - thx to shorty for sending a one-liner fix in the Makefile for 0.9.2.1

Aiccu (fixing a bug reported via the xen-users ml by Frank Matthiess):
 - merged fix from trunk rev #2881 for fixing a bug regarding a broken
   IP Header in the aiccu packets.

Broadcom-wl-util (fixing bug: #334):
 - qouted the wpa password in the if-<pre>up.d scripts.
   hopefully this fixes this bug. Until now I only checked that it 
   doesn't brake something that was already working before.

Freeradius (fixing bug: #321):
 - the init.d script now exports the correct library path before radiusd
   is started. otherwise the daemon fails in certain setups because some
   libraries cannot be found. thx to tg for this fix.

License:
 - updated the license file to refelect the current developer team.
   the names and the alphabetic order has been "stolen" by me from
   http://www.freewrt.org/trac/wiki/Development/Developers


1 #!/bin/sh
2 #
3 # WDS configuration script, WDS needs to be activated after bridge
4 #
5 [ "$IF_WIRELESS_TYPE" != "broadcom" ] && exit 0
6 [ "$IF_WIRELESS_MODE" != "wds" ] && exit 0
7 logger -t wireless "setting lazywds to $IF_WIRELESS_LAZYWDS"
8 [ "$IF_WIRELESS_LAZYWDS" ] && wl lazywds $IF_WIRELESS_LAZYWDS
9 logger -t wireless "adding wds nodes $IF_WIRELESS_WDS"
10 wl wds $IF_WIRELESS_WDS
11 [ "$IF_WIRELESS_SECURITY" = "wpa-psk" ] && {
12 # wpa rekeying
13 gtk_rekey=$IF_WIRELESS_WPA_GTK_REKEY
14 gtk_rekey=${gtk_rekey#0}
15 gtk_rekey=${gtk_rekey:-3600}
16 case "$IF_WIRELESS_ENCRYPTION" in
17 wep)
18 crypto_num=1
19 ;;
20 tkip)
21 crypto_num=2
22 ;;
23 aes)
24 crypto_num=4
25 ;;
26 aes+tkip)
27 crypto_num=6
28 ;;
29 esac
30 case "$IF_WIRELESS_AUTHORIZATION" in
31 psk)
32 auth=4
33 ;;
34 psk2)
35 auth=128
36 ;;
37 "psk psk2")
38 auth=132
39 ;;
40 esac
41 wl ssid $IF_WIRELESS_SSID
42 /usr/sbin/nas -P /var/run/nas.lan.pid -l $IF_WIRELESS_WDS_BRIDGE -H 34954 -i $IF_BRIDGE_IFACES -A -m $auth -k "$IF_WIRELESS_WPA_KEY" -s $IF_WIRELESS_SSID -w $crypto_num -g $gtk_rekey &
43 [ "$IF_WIRELESS_WDS_SECURITY" = "wpa-psk" ] && {
44 sleep 10 &&
45 for i in $(ip link show|awk -F : '/wds/ {print $2}'); do /usr/sbin/nas4not lan $i up auto $IF_WIRELESS_WDS_ENCRYPTION psk "$IF_WIRELESS_WDS_WPA_KEY" $IF_WIRELESS_SSID;done &
46 }
47 }
48 exit 0

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20