Explicitly call the functions of RF controller.

We separate the plugin API to two layers: device layer and
RF controller layer. Originally, we called the function of the
RF controller by __getattr__, which means that if the device doesn't
have the function, then we find the function from the active
controller.

But it causes bug that both layers have "Initialize" and "Terminate"
functions. The functions of the RF controller will not be called and
it is confusing to find which function is called.

Now we explicitly call the RF controller function by:
device.active_controller.Function() instead of using __getattr__, and
change "_Initialize", "_Terminate" functions optional.

BUG=chromium:713589
TEST=none

Change-Id: Ie34a71358d621b8b84b40d516aa1cde27e116bb0
Reviewed-on: https://chromium-review.googlesource.com/483260
Commit-Ready: Chih-Yu Huang <[email protected]>
Tested-by: Chih-Yu Huang <[email protected]>
Reviewed-by: Joel Kitching <[email protected]>
9 files changed
OSZAR »