script enhancements to support the new scan nsdcap.

This commit is contained in:
solomon 2002-11-04 14:28:38 +00:00
parent eb90970a2f
commit 3cae3f9488
4 changed files with 23 additions and 3 deletions

View File

@ -100,7 +100,8 @@ case "$ACTION" in
wlan_enable $DEVICE
#=======MAC STARTUP=========================================
if [ $WLAN_SCAN = 'y' ] ; then
wlan_supports_scan $DEVICE
if [ $? = 0 ] ; then
wlan_scan $DEVICE
if [ $? = 0 ] ; then
wlan_source_config_for_ssid "$ssid:$bssid"

View File

@ -55,7 +55,8 @@ start)
wlan_enable $DEVICE
#=======MAC STARTUP=========================================
if [ $WLAN_SCAN = 'y' ] ; then
wlan_supports_scan $DEVICE
if [ $? = 0 ] ; then
wlan_scan $DEVICE
if [ $? = 0 ] ; then
wlan_source_config_for_ssid "$ssid:$bssid"

View File

@ -56,7 +56,8 @@ fi
wlan_enable $DEVICE
#=======MAC STARTUP=========================================
if [ $WLAN_SCAN = 'y' ] ; then
wlan_supports_scan $DEVICE
if [ $? = 0 ] ; then
wlan_scan $DEVICE
if [ $? = 0 ] ; then
wlan_source_config_for_ssid "$ssid:$bssid"

View File

@ -207,6 +207,23 @@ wlan_ssid_in_list ()
return 1
}
wlan_supports_scan ()
{
# $1 == wlandev
grep 'scan' /proc/net/p80211/$DEVICE/wlandev > /dev/null
if [ $? = 0 ] ; then
return 0
fi
if is_true "$WLAN_SCAN" ; then
return 0
fi
return 1
}
wlan_scan ()
{
# $1 == wlandev