History log of /system/connectivity/apmanager/hostapd_monitor.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
326b6cfba5ab73c9e41a7585d1bc95871631122a 02-Sep-2015 Peter Qiu <zqiu@google.com> Re-license apmanager to Apache2

This patch automatically replaced the license on all text files from
Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as
a reference.

The license header was added to .gyp, the NOTICE was replaced with a copy
of the Apache2 license and MODULE_LICENSE_* file was updated.

BUG=23619937
TEST=grep 'Chromium OS Authors' doesn't find anything.

Change-Id: I4ade0a15ff18ab159d4a2f99525b62c780b13c89
/system/connectivity/apmanager/hostapd_monitor.h
e26578570050855a533c4df6e2b0e7c979964e5a 03-Feb-2015 Peter Qiu <zqiu@chromium.org> apmanager: expose service state through DBus

Update AP service state based on the input from hostapd monitor.
We assume hostapd failed to start when the hostapd control interface
does not get created within a reasonable time, and it is started
once the control interface is detected.

While there, update the HostapdMonitor to use WeakPtr for the tasks
that it will post, so those tasks won't run after HostapdMonitor is
destructed.

BUG=chromium:454863
TEST=Run apmanager_CheckAPProcesses
Manual Test:
1. Start an AP service
2. Verify AP service is in "Started" state using dbus-send command.
3. Stop the AP service, verify it is in "Idle" state using dbus-send
command.

Change-Id: Id6e22e9e15cd8ef815cc81ef6ae8a00e066b958b
Reviewed-on: https://chromium-review.googlesource.com/245830
Tested-by: Zeping Qiu <zqiu@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/apmanager/hostapd_monitor.h
fda548ca8f0b29834a37b83e836f4ccc3268fa1d 13-Jan-2015 Peter Qiu <zqiu@chromium.org> apmanager: monitor events from hostapd control interface

Monitor hostapd control interface for unsolicited event notifications,
such as station connect and disconnect events.

BUG=chromium:431759
TEST=USE="asan clang" FEATURES=test emerge-$BOARD apmanager
Manual Test:
1. Setup an AP service using apmanager.
2. Connect a client to the AP, verify that "Station connected" message is
in "/var/log/message".
3. Disconnect the client from the AP, verify that "Station disconnect"
message is in "/var/log/message".

Change-Id: I7410411c43db9670d7ae5e4cf4f9d83a2a2c6337
Reviewed-on: https://chromium-review.googlesource.com/240548
Trybot-Ready: Zeping Qiu <zqiu@chromium.org>
Tested-by: Zeping Qiu <zqiu@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/apmanager/hostapd_monitor.h