#
# Copyright (c) 2013 Qualcomm Atheros, Inc..
#
# All Rights Reserved.
# Qualcomm Atheros Confidential and Proprietary.
#


if [ "$ACTION" = "released" -a "$BUTTON" = "wps" ]; then
	local enable
	enable=`/sbin/uci -q get wsplcd.config.HyFiSecurity`

	if [ -n "$enable" -a "$enable" -ne 0 ] ; then
		echo "Push button event of 1905.1 AP Auto Configuration" > /dev/console
		echo "wps_pbc $SEEN" > /var/run/wsplc.pipe &
	fi
fi
