scan='setparam:8BE0 getparam:8BE1 turbo:0001 get_turbo:0001 mode:0002 get_mode:0002'

found=0 # Must be 6 after Search
for i in $scan
do
  first=`echo $i | cut -d ':' -f 1`
  second=`echo $i | cut -d ':' -f 2`
  line1=`iwpriv $device 2>/dev/null | grep $first`
  if [ -n "$line1" ]
  then
    line2=`echo $line1 | grep $second`
    if [ -n "$line2" ]
    then
      found=`expr $found + 1`
    fi
  fi
done
if [ $found -eq 6 ]
then
  # We found all Lines in iwpriv output
  drivername="athpci"
  candomaster="yes"
fi
unset found
unset i
unset first
unset second
unset line1
unset line2
