Fix hostapd bug with empty channel

This commit is contained in:
root 2017-07-03 22:24:00 +02:00
parent 3f031aaf34
commit ee242d9aba
1 changed files with 5 additions and 6 deletions

View File

@ -1843,10 +1843,9 @@ fi
function preattack {
# Check if channel is negative
if [ $CHANNEL < 0 ];then
CHANNEL=$(echo $(($CHANNEL*-1)))
if [ "CHANNEL" = "" ];then
CHANNEL=1
fi
# Config HostAPD
echo "interface=$WIFI
driver=nl80211