]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/hostapd
Remove errormessage at hostapd channel set.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / hostapd
index 0cc95b7b4272240ffa3f9237b1a8360abf01a973..31083399b18f83ce6191fbe597f3b9e45717dd1d 100644 (file)
@@ -40,8 +40,7 @@ case "${1}" in
                elif [ -e "/sys/class/net/$INTERFACE/madwifi_name_type" ]; then
                        DRIVER="MADWIFI"
                        driver="madwifi"
-               elif [ "$(/bin/grep hostap_pci /sys/class/net/$INTERFACE/uevent)" != "" ]; then
-               #PHYSDEVDRIVER=hostap_pci
+               elif [ "$(/bin/grep hostap /sys/class/net/$INTERFACE/uevent)" != "" ]; then
                        DRIVER="HOSTAP"
                        driver="hostap"
                else
@@ -70,12 +69,12 @@ case "${1}" in
                elif [ "$DRIVER" == "HOSTAP" ]; then
                        if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
                                boot_mesg "Setting HOSTAP wlan $INTERFACE to Master mode... "
-                               # Set Prism 2.4 Cards to master mode
+                               # Set Prism Cards to master mode
                                /usr/bin/iwconfig $INTERFACE mode master > /dev/null
                        fi
                fi
 
-               /usr/sbin/iwconfig $INTERFACE channel $CHANNEL
+               /usr/sbin/iwconfig $INTERFACE channel $CHANNEL 2>/dev/null
                /usr/sbin/iwconfig $INTERFACE txpower $TXPOWER
 
                /usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &