Change the CapabilitiesFlags property into booleans

Each bit in CapabilitiesFlags dbus property is a chassis
capability. Setting a capability overwrites other capabilities.
Read-and-update of the property results in race condition/confusion.
To tackle this, added a boolean property for each of chassis
capability. The new properties will be read and updated in ipmi
command handling code.

The original CapabilitiesFlags property will be deprecated once the
changes are made to use new boolean properties in all the repos.

The phosphor-dbus-interfaces change is in review
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/27592

Tested:

Tested this code along with the changes in settings deamon where the
new boolean dbus properties were added and default values have
been intialized.

root@intel-obmc:~# ipmitool raw 0x00 0x00
 07 22 44 66 88 aa

Signed-off-by: Karthick Sundarrajan <karthick.sundarrajan@intel.com>
Change-Id: I487a37b50bfe7d6555ff7b257b49cdb6dde781f6
1 file changed