prism should theroeticalyl work again when scan is true.

origin
solomon 2002-10-31 16:33:25 +00:00
parent 2358c2d03e
commit 00cbd66332
5 changed files with 30 additions and 7 deletions

View File

@ -87,6 +87,7 @@ case "$ACTION" in
'start'|'resume')
#=======ENABLE========================================
# Do we want to init the card at all?
eval 'WLAN_ENABLE=$ENABLE_'$DEVICE
if ! is_true $WLAN_ENABLE ; then
exit 0
fi
@ -107,7 +108,13 @@ case "$ACTION" in
fi
wlan_user_mibs $DEVICE
wlan_wep $DEVICE
wlan_dot11_join $DEVICE
if [ $WLAN_AUTOJOIN = 'y' ] ; then
wlan_infra $device
else
wlan_dot11_join $DEVICE
fi
else
echo "network not found. maybe start IBSS?"
fi
else
wlan_source_config $DEVICE

View File

@ -42,6 +42,9 @@ start)
for DEVICE in $WLAN_DEVICES; do
#=======ENABLE========================================
# Do we want to init the card at all?
eval 'WLAN_ENABLE=$ENABLE_'$DEVICE
eval 'WLAN_AUTOJOIN=$AUTO_'$DEVICE
if [ $WLAN_ENABLE != 'y' ] ; then
continue
fi
@ -62,7 +65,13 @@ start)
fi
wlan_user_mibs $DEVICE
wlan_wep $DEVICE
wlan_dot11_join $DEVICE
if [ $WLAN_AUTOJOIN = 'y' ] ; then
wlan_infra $device
else
wlan_dot11_join $DEVICE
fi
else
echo "network not found. maybe start IBSS?"
fi
else
wlan_source_config $DEVICE

View File

@ -18,6 +18,7 @@ fi
for DEVICE in $WLAN_DEVICES ; do
#=======ENABLE========================================
# Do we want to init the card at all?
eval 'WLAN_ENABLE=$ENABLE_'$DEVICE
if [ $WLAN_ENABLE != 'y' ] ; then
continue
fi
@ -42,7 +43,13 @@ for DEVICE in $WLAN_DEVICES ; do
fi
wlan_user_mibs $DEVICE
wlan_wep $DEVICE
wlan_dot11_join $DEVICE
if [ $WLAN_AUTOJOIN = 'y' ] ; then
wlan_infra $device
else
wlan_dot11_join $DEVICE
fi
else
echo "network not found. maybe start IBSS?"
fi
else
wlan_source_config $DEVICE

View File

@ -346,9 +346,7 @@ wlan_infra ()
"ssid=$DesiredSSID" \
authtype=${AuthType:="opensystem"} | sed 's/\([^=]*\)=\(.*\)/\1="\2"/'`
eval $results
if [ ${resultcode:-"failure"} = "not_supported" ] ; then
wlan_dot11_join $1
elif [ ${resultcode:-"failure"} != "success" ] ; then
if [ ${resultcode:-"failure"} != "success" ] ; then
echo 'error: Autojoin indicated failure!'
return 1;
fi

View File

@ -51,7 +51,6 @@
# separated list that's assigned to WLAN_DEVICES.
WLAN_DEVICES="wlan0"
WLAN_ENABLE="y"
# Below is the list of channels to scan, when we scan.
ChannelList="01:02:03:04:05:06:07:08:09:0a:0b:00:00:00"
@ -76,7 +75,10 @@ WLAN_SCAN=n
SSID_wlan0=""
ENABLED_wlan0=y
AUTOJOIN_wlan0=y
#SSID_wlan1=""
#ENABLED_wlan1=n
#AUTOJOIN_wlan1=n
#SSID_wlan2=""
#ENABLED_wlan2=n
#AUTOJOIN_wlan2=n