OSDN Git Service

Add dump state for wificond interface classes
authorNingyuan Wang <nywang@google.com>
Fri, 7 Apr 2017 23:03:33 +0000 (16:03 -0700)
committerNingyuan Wang <nywang@google.com>
Thu, 20 Apr 2017 00:25:45 +0000 (17:25 -0700)
commit8ec7696f5111abb46d12a6bd1f2e27d8b8291b34
treee308f25b167104b29c59b56d83933646a3af778a
parent099ee0c764bd579899ef5fc65a4cc669c55a87c9
Add dump state for wificond interface classes

This allows wificond's ClientInterfaceImpl and
ApInterfaceImpl to dump state.

The dump state includes scan capabilities, wiphy features, and
number of current associated stations for AP mode.

This also adds the missing const keyword for IsAssociated().

Bug: 31336376
Test: compile, manual test

Sample dump output:
Current wiphy index: 0
Cached interfaces list from kernel message:
Interface index: 23, name: p2p0, mac address: 66:bc:0c:47:df:00
Interface index: 22, name: wlan0, mac address: 64:bc:0c:47:df:00
------- Dump of client interface with index: 22 and name: wlan0-------
Max number of ssids for single shot scan: 10
Max number of ssids for scheduled scan: 16
Max number of match sets for scheduled scan: 16
Device supports random MAC for single shot scan: 1
Device supports random MAC for scheduled scan: 1
------- Dump End -------
--------- 0.004s was the duration of dumpsys wificond

Change-Id: I862974af743ca6ca303dfc1a4f6c773dd5b7a03e
ap_interface_impl.cpp
ap_interface_impl.h
client_interface_impl.cpp
client_interface_impl.h
server.cpp