#!/bin/sh

. /usr/share/libubox/jshn.sh

case "$1" in
        list)
                echo '{ "status" : {}, "stats": {}, "stations": {} }'
        ;;
        call)
                case "$2" in
                        status)
                                cat /tmp/wifi.ap.test2.status.data 2>/dev/null
                        ;;
                        stats)
                                cat /tmp/wifi.ap.test2.stats.data 2>/dev/null
                        ;;
                        stations)
                                cat /tmp/wifi.ap.test2.stations.data 2>/dev/null
                        ;;
                esac
        ;;
esac
