7 echo "Starting PBC mode"
8 echo "Push button on the station within two minutes"
9 if ! $CLI wps_pbc | grep -q OK; then
10 echo "Failed to enable PBC mode"
16 echo "Enter a PIN from a station to be enrolled to the network."
17 echo -n "Enrollee PIN: "
19 cpin=`$CLI wps_check_pin "$pin" | tail -1`
20 if [ "$cpin" = "FAIL-CHECKSUM" ]; then
21 echo "Checksum digit is not valid"
22 echo -n "Do you want to use this PIN (y/n)? "
26 cpin=`echo "$pin" | sed "s/[^1234567890]//g"`
33 if [ "$cpin" = "FAIL" ]; then
34 echo "Invalid PIN: $pin"
37 echo "Enabling Enrollee PIN: $cpin"
38 $CLI wps_pin any "$cpin"
50 echo "1: Push button (activate PBC)"
51 echo "2: Enter Enrollee PIN"
52 echo "3: Show current configuration"
53 echo "0: Exit wps-ap-cli"
72 echo "Unknown command: $cmd"