Androidのセキュリティが強化されてAndroidアプリからWiFiの制御ができなくなった。 仕方がないのでPCと繋いで制御する。
$ adb shell svc wifi enable $ adb shell svc wifi disable