debugd: add SetWifiDriverDebug method
For enabling/disabling driver debug features. Implemented only for
mwifiex right now, but we could support others.
It's a bitfield/int, to support potential future expansion. We error out
for anything but 0/1 for now though.
BUG=chrome-os-partner:59342
TEST=`dbus-send --system --print-reply --dest=org.chromium.debugd \
/org/chromium/debugd org.chromium.debugd.SetWifiDriverDebug int32:0`
`dbus-send --system --print-reply --dest=org.chromium.debugd \
/org/chromium/debugd org.chromium.debugd.SetWifiDriverDebug int32:1`
Change-Id: Ibfd2a151e9aed4b3308cff3c150c0190ef287a71
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/423192
Reviewed-by: Kirtika Ruchandani <kirtika@chromium.org>
(cherry picked from commit 32ef1311553fdc69f7d67393a7374da07c8ac8a2)
Reviewed-on: https://chromium-review.googlesource.com/431416
6 files changed